cancel
Showing results for 
Search instead for 
Did you mean: 

How to Erase/Program external flash chip using SPI protocol with STM32L4xx MCU?

SMcGr
Associate II

Hello,

I am trying to erase/flash program an external W25X40CLSNIG flash chip with various STM32L4xx host chips using SPI protocol. Up until now I have been referencing STM32l4xx_hal_spi.c source file for ways to perform such a task but was curious if there was an alternative method to doing this. Any information or insight would be extremely helpful. Thanks.

Steve

1 REPLY 1

The command functionality should be described in the Winbond datasheets for the part.

Most have migrated to QSPI/QuadSPI solutions.

The QSPI peripheral would work with the W25X40 in Dual mode.

Still need to implement the Erase/Write as commands to the part, and waiting for status register to report completion.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..