cancel
Showing results for 
Search instead for 
Did you mean: 

How to program external flash "QSPI Flash -N25Q128A" using STM32CubeProgrammer Or STLink Utility

Nikunj Patel
Associate III

Hello All,

I am using "STM32F746G-DISCO" Kit and i would like to program the GRAPHICS DATA on external flash.

i compile my firmware in Release Mode, I need to load program externally using STLink Or STM32Cube Programmer.

I need to program external flash for storing GRAPHICS DATA.

Can you please provide step by step guide to program external flash.

Can you please confirm, is there any problem to program external flash when using "STM32F746G-DISCO" board.

I found link below, it describe that problem in program external flash.

https://community.st.com/s/question/0D50X0000BwlaQ0SQI/cant-program-for-stm32f746gdisco-using-stm32stlinkultility

please do needful for me.

Regards,

Nikunj Patel

2 REPLIES 2

Either tool should be able to program the external memory, you would need to select the External Loader for the Discovery Board.

See Manual for instructions on selecting/programming external memory. Click on COG icon to select the external loader

https://www.st.com/content/ccc/resource/technical/document/user_manual/group0/76/3e/bd/0d/cf/4d/45/25/DM00403500/files/DM00403500.pdf/jcr:content/translations/en.DM00403500.pdf

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

Hi Clive,

First, i am very thankful for supersonic reply.

I have already done the procedure that describe in document.

I have performed below steps:

  1. Open the "STM32CubeProgrammer".
  2. Connect the "STM32F746G-DISCO"discovery board to computer using an USB-cable & connect the "STM32F746G-DISCO" with "STM32CubeProgrammer" by clicking on "Connect" button.
  3. Select the "External Loader" menu & Select the "N25Q128A_STM32F746G_DISCO".
  4. Select the "Erasing & Programming" menu & Browse the ".hex" file.
  5. Click on the "start programming" Button.
  6. I receive the all the success message POP-UP.

But still not getting correct result.

I have a doubt that external flash are not programmed.

If i compile my firmware in DEBUG mode then its works fine. when compile using Release mode and programmed using external programmer its fails.

Please, Let me know, if i missed some configuration or i followed the wrong steps.

Please confirm the below link i have found from WEB.

https://community.st.com/s/question/0D50X0000BwlaQ0SQI/cant-program-for-stm32f746gdisco-using-stm32stlinkultility

Regards,

Nikunj Patel