Skip to main content
SMcGr
Associate II
December 9, 2019
Question

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

  • December 9, 2019
  • 1 reply
  • 795 views

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

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
December 9, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..