We are using the SPI Flash MX25R1635F, which is 16Mbit.
When erasing the flash from SmartSnippet I get the error message "SPI Memory erasing failed".
I then started investigating the cause. I build the jtag_programmer_585.bin from the SDK, where I set the SPI FLASH default values to match the MX25R1635F :
#define MX25R1635F_SIZE 2097152 // 0x1000000Mbit / 8 = 0x200000 = 2097152 Mbyte
#define MX25R1635F_PAGE 256
#define SPI_FLASH_DEFAULT_SIZE MX25R1635F_SIZE // SPI Flash memory size in bytes
#define SPI_FLASH_DEFAULT_PAGE MX25R1635F_PAGE // SPI Flash memory page size in bytes
I guess the above is needed, since the SDK flash programmer does not autodetect our Flash, and instead of adding our flash to the autodetect array, it was easier to add it as a default setting.
Now I tried the flash erase command(complete erase) from SmartSnippet again, and I still get the same error.
Next I added a breakpoint in the 'ACTION_SPI_ERASE' switch-case, so that I could read the result variable from the ACTION_SPI_ERASE. The returned result is 0, so everything is good, and the FLASH does get erased. The spi_flash_chip_erase() does not timeout, even that we are using a 16Mbit flash, which takes longer to erase. However, now I observed that SmartSnippet outputs the error message "SPI Memory erasing failed." before the spi_flash_chip_erase() returns, so I am guessing, that it is a timeout inside SmartSnippet, which generates the error message, and not the jtag_programmer_585.bin
Could you confirm my conclusion, that it is an internal timeout inside SmartSnippet, which is causing the error, and if 'yes' is there a way for me to change the timeout setting in SmartSnippet?