Skip to main content
AP_040
Senior
February 6, 2019
Question

STM32L462CE with external SPI flash

  • February 6, 2019
  • 5 replies
  • 999 views

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.

    This topic has been closed for replies.

    5 replies

    AP_040
    AP_040Author
    Senior
    February 7, 2019

    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?.

    Tesla DeLorean
    Guru
    February 7, 2019

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

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

    AP_040
    AP_040Author
    Senior
    February 7, 2019

    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
    AP_040Author
    Senior
    February 8, 2019

    Any mistake in the sample code?

    Tesla DeLorean
    Guru
    February 8, 2019

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

    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?