cancel
Showing results for 
Search instead for 
Did you mean: 

Blinky Flash load/debug with MDK-ARM

tonyyu
Associate II
Posted on July 13, 2013 at 01:32

Board: STM324x9I-eval

Tools : MDK-ARM uvision 4.72.10.0

Issue: 

When compiling/loading/debug either blinky or RTX_blinky. 

when target set to ''STM32F439 RAM'', everything works fine. I can run, step, etc. 

but if target set to ''STM32F439 Flash''. When uVision try to load/debug, the eval board LCD display flashing and resetting, then go back to original the ST demo program. Of course the blinky program is not run, the breakpoint is not trigger.

I saw there is a post in 2012 that stated using hex file to program. It will be really bothersome if we need to do this in order to debug.

Regards,

Sink 

#flash #mdk-arm #blinky
4 REPLIES 4
Posted on July 13, 2013 at 02:38

Make sure a) you have the tools set up to ''Load Application at startup'' and ''Update target before Debugging'', and b) that you either use the 2M Flash algorithm or 2x 1M at the two bank addresses.

You can further check that the IROM addresses for the Target are correct (in FLASH), and use the Flash menu to Erase and Program the device.

Are you using an ST-LINK, J-LINK or U-LINK? How are you configuring these, and the flash algorithms?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
tonyyu
Associate II
Posted on July 15, 2013 at 23:29

Hi, 

Really appreciate your help.

How do I know if it's 2M algorithm or 2x1M? Sorry about the novice question. I came from TI/CCS environment. Not too familiar with this.

Following is the error message. 

Load ''C:\\Keil\\ARM\\Boards\\ST\\STM324x9I-EVAL\\Blinky\\Flash\\Blinky.axf'' 

No Algorithm found for: 08000000H - 08000E53H

Erase skipped!

and pop up a windows with 

''Error:Flash Download failed - ''Cortex-M4''

I use embedded ST-Link.

Please see the image0690X00000603GVQAY.jpg0690X00000603GQQAY.jpg0690X00000603AYQAY.jpg

Posted on July 15, 2013 at 23:42

0690X00000605VhQAI.png
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
tonyyu
Associate II
Posted on July 16, 2013 at 00:38

many, many thanks.

problem solved. 

Sink..