cancel
Showing results for 
Search instead for 
Did you mean: 

How to down load extern flash MX25LM51245G to 32L4R9I-Discovery?

Michael Fan
Associate II

0693W000001pKnTQAU.png0693W000001pKnYQAU.png0693W000001pKnJQAU.png0693W000001pKnEQAU.jpgHi,

I have a 32L4R9I-Discovery and i want to download Touchgfx demo to it, but when i program Touchgfx hex, ST-LINK Utility report error, i know i neet to download extern flash MX25LM51245G, but i can't find hex on the Internet,so i open MX25LM51245G project and want to program creat hex by Keil5,but when i program the KEIL 5 report much error.

So how can i program MX25LM51245G project to creat hex, or can someone give me MX25LM51245G hex so that i can use Touchgfx demo, the 32L4R9I-Discovery is still not work.:sad_but_relieved_face: .

Thank you very much for all your help!

5 REPLIES 5

The External Loader code should be pre-built, and selectable under the "External Loader" tab or panes in ST-Link Utilities and STM32 Cube Programmer

STM32CubeProgrammerV2.2.0\bin\ExternalLoader\MX25LM51245G_STM32L4R9I-DISCO.stldr

Projects built in Keil should also be directly flashable by picking the Flash Algorithm via the Options -> Debug Settings ->Flash Download Tab

0693W000001pKxEQAU.jpg

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

I find the Flash Algorithm in Flash Download Tab,but when i download to it,the Keil report a error:Cannot Load Flash Programming Algorithm.And why do you have so many options in your Flash Download Tab?

Thanks.0693W000001pKylQAE.png0693W000001pKygQAE.png

Select 0xA000 for the size of the "RAM for Algorithm", the loaders are bigger

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

I have selected 0xA000 for the size of the "RAM for Algorithm", but when I download again, the Keil report another error,:Flash Timeout.Reset the Target and try it again. I connect 32L4R9I-Discovery by usb-stlink.

I find my flash Download Tab shows MX25LM51245G_STM32L3R9I_EVEAL not MX25L51245G_STM32L3R9I_DISCO,Could it be the problem here?

Picked the wrong algorithm, need to Remove, and go back and Add the right one.

Could otherwise be an issue with the version of MDK, the pack, or the selections made when creating the project.

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