cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK programming code to external Flash fail

Peter Chang
Associate III
Posted on May 11, 2018 at 03:48

I use ST-LINK utility V4.2 to program a code to external flash, always fail.

Attachment is my code. it include embedded code(start at 0x08000000) & external flash code (start at 0x90000000).

Platform : STM32L496G-DISCO

External Flash : MX25R6435F

0690X00000602VqQAI.bmp
6 REPLIES 6
Posted on May 11, 2018 at 04:19

Use the Cube Programmer, the ST-LINK Utility v4.2.0 is very flaky with external memory, and not the active development path.

http://www.st.com/en/development-tools/stm32cubeprog.html

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

0690X0000060B7PQAU.png

Then why the marketing status is Active?

Posted on May 11, 2018 at 08:40

It works for the most part. I'm saying from observation that development effort has forked, the branch that has development resources behind it is the Cube Programmer, moving forward migrate to that.

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

Cube Programmer got same problem.

0690X0000060B99QAE.png
Posted on May 11, 2018 at 12:20

Unfortunately don't have an STM32L496G-DISCO here. Would recommend checking if you can program/manipulate the QSPI via the HAL examples, and if there are any solder bridge or component related changes.

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

HAL example access external Flash O.K.