cancel
Showing results for 
Search instead for 
Did you mean: 

QSPI AND USB INTERFACING

Faiz Ahmed
Associate II
Posted on January 05, 2018 at 13:49

Hi,

   I am doing a Project using STM32L4 Microcontroller, keeping Reference of Available Example Codes i am able to Develop a code where i can Write and Read back the data from QSPI-Flash-Memory. 

   But my Requirement is as given below,

    1) Receive data from USB and write it on  QSPI-Flash-Memory.  

    2) Read data from QSPI-Flash-Memory and Transmit back through USB.

To do this i Re-Generated my code by enabling USB_HS_CDC mode using ST-Cubemx. but this time i am unable to Read / Write data on QSPI-Flash-Memory. 

(Note: i am getting this problem as soon as i am Re-Generating my code by enabling USB in ST-Cubemx )

please suggest me how to solve this problem.

#qspi-flash #stm32 #usb #qspi #stm32l432
2 REPLIES 2
Posted on January 05, 2018 at 16:15

In normal operation the QSPI memory should be mapped within the address space of the processor, reading it should be a matter of memcpy()ing it to you output buffering method. Writing is going to require you put the memory in a different mode, erasing blocks, and rewriting them.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on January 08, 2018 at 08:38

Thanks for your Reply Mr Clive One,

Here i am able to Write and Read QSPI Memory, but when i insert USB drivers using ST-CubeMX i am unable to Write and Read the QSPI Memory.

can u suggest me in this matter.