cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L462CE with external SPI flash

AP_040
Senior

W25Q16JVSNIQ winbond external SPI is attached to my STM32L462CE MCU. I want it to store some data so how can I do it? can you please provide some example code for this.

7 REPLIES 7
AP_040
Senior

I need to erase, write and read operation in External Quad SPI memory so how can I do that?. Is there any specific driver available for it?. Can anybody help me on this?.

Review BSP examples for the L4 DISCO and EVAL boards supporting QSPI, and with demo and example code.

STM32Cube_FW_L4_V1.13.0\Drivers\BSP\STM32L476G_EVAL\stm32l476g_eval_qspi.c

STM32Cube_FW_L4_V1.13.0\Projects\32L496GDISCOVERY\Examples\QSPI\QSPI_MemoryMapped

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

Thanks... Clive!!! I will go through it and if found any issue, I update you.

AP_040
Senior

Hello Clive,

I have made a simple demo program to read Device Id of W25Q16JV External SPI flash. But, it is given me zero value in device id. So, can you look at once in my snippet code and tell me what is the issue?

AP_040
Senior

Any mistake in the sample code?

Hard to say, looks reasonable, don't have hardware to replicate.

Have you stuck a scope or logic analyzer on the signals and checked them?

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

I am unable to access the external SPI flash. I do not have an idea how to work with the external SPI flash. So, can you please help on this. Where is the issue on hardware or software?