Hi,
I'm able to program successfully the SPI flash on demo board (W25X20CL). I built a custom board with another SPI flash on board (AT25DF011) which is declared as supported.
I keept the same pin connections as in demo board (please, see attached pdf file) and same pin configuration in SmartSnippets:
CLK = P0_0
CS = P0_3
MISO = P0_5
MOSI = P0_6
SPI_WORD_MODE = 8-bit
SPI_SMN_MODE = Master Mode
SPI_POL_MODE = SPI clock initially low
SPI_PHA_MODE =数据有效较低的边缘
SPI_MINT_EN = Disabled
SPI_CLK_DIV = 2
From the logical poin of view all looks fine in my opinion, but I'm not able to read/erase/burn the flash.
I tried to exchange MISO and MOSI lines too: it looks I can read the device, but again it is not pobbile to erase/burn.
Are there any hardware/software possible workaround I've forgotten?
Thank you for the reply.
Regards,
Giancarlo
Hi gperroni,
I suppose that you mean that you are using the Smart Snippets Toolbox in order to program the device and the flash programmer tool, is that correct ? I dont see anything wrong with the connections on the schematic. And the flash that you are using is supported from the the flash programmer that the Toolbox supports. Have you checked this with an analyzer to check what might go wrong on the bus ? Also have you tried if you can properly write when executing fw ? Being able to read properly but not write or burn sounds like an issue with the WP signal or perhaps something wrong with the WRITE_ENABLE command, can you make sure that it is send before attempting an erase or a write, since the flash programmer invokes that command before executing any of the above transactions.
Thanks MT_dialog