Flash doesn't work in extend sleep mode

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
liufeng-blue
Offline
Last seen:9 months 3 weeks ago
Joined:2018-07-02 06:44
Flash doesn't work in extend sleep mode

我使用dsp演示,和我found that flash is not work. i am trying to save the device's bond information.when i use bond_db_store_ext(),the device will be disconnected.
i hope you can help me to use the flash.i set da14580 in extend sleep mode.can you tell me that how to use flash in extend mode.

here is the program:

void spi_flash_peripheral_init(void)
{
spi_FLASH_CS_Pad.pin = SPI_CS_PIN;
spi_FLASH_CS_Pad.port = SPI_GPIO_PORT;
// Enable SPI & SPI FLASH

spi_init(&spi_FLASH_CS_Pad, SPI_MODE_8BIT, SPI_ROLE_MASTER, SPI_CLK_IDLE_POL_LOW, SPI_PHA_MODE_0, SPI_MINT_DISABLE, SPI_XTAL_DIV_8);

//detected_spi_flash_device_index = spi_flash_auto_detect();

// if(detected_spi_flash_device_index == SPI_FLASH_AUTO_DETECT_NOT_DETECTED)
// {
// The device was not identified.
// The default parameters are used (SPI_FLASH_SIZE, SPI_FLASH_PAGE)
// Alternatively, an error can be asserted here.
spi_flash_init(SPI_FLASH_DEFAULT_SIZE, SPI_FLASH_DEFAULT_PAGE);
// }

spi_flash_release_from_power_down();

spi_cs_low();

spi_cs_high();
}

Keywords:
Device:
PM_Dialog
Offline
Last seen:10小时26分钟前
Staff
Joined:2018-02-08 11:03
Hi liufeng-blue ,

Hi liufeng-blue ,

Could you please clarify if you are using a custom board or any of our development boards? In case you are working on our DKs, could you please make sure that you have correctly placed on the board? I would suggest you to have a look at the appropriate user manual. In case you are using a custom board, which SPI flash you have? The SPI Flash is not working only with the DSPS firmware? Did you try to test it with the SPI peripheral example of the SDK in order to make sure that is working? This example is located in the DA1458x_SDK\5.0.4\projects\target_apps\peripheral_examples\spi path of SDK folder.

Thanks, PM_Dialog

liufeng-blue
Offline
Last seen:9 months 3 weeks ago
Joined:2018-07-02 06:44
Hi PM_Dialog

Hi PM_Dialog
i am using the flash W25X10.it works fine under the spi_flash demo in SDK5.0.4.i am using a custom board.but i can't let it work in DSPS demo.i guess whether spi_flash is turned off.here is my test program.i download the program in flash and use the program to erase the flash.i see the flash is erased successfully under the spi_flash demo but not work in the DSPS demo.can you give me some advise about how to use the flash correctly.

//global initialise
system_init();

spi_flash_peripheral_init();

spi_cs_low();

spi_cs_high();

// Erase flash
spi_flash_chip_erase();

Thanks , liufeng-blue

PM_Dialog
Offline
Last seen:10小时26分钟前
Staff
Joined:2018-02-08 11:03
Hi liufeng-blue ,

Hi liufeng-blue ,

Could you please check if you have correctly configured the SPI Flash pins in the user_periph_setup.h / .c files?

Thanks, PM_Dialog