2012-02-11 07:27 AM
Hi!
I just started using the STM32F4 discovery board with Keil development environment, and I have a small problem, that I can not program the flash memory of the microcontroller using the Load button. In Keil Build output window, there is no error message, just one line saying: Load ''C:\\Keil\\ARM\\Boards\\ST\\STM32F4-Discovery\\Blinky\\Flash\\Blinky.AXF'' But then nothing happens, LD1 on board lights up green for a split second, and it turns then red again, and the microcontroller stays in a kind of turned off state, until I press reset button. And then it continues the original program. However when I push the Debug button it automatically updates the flash memory, so flash programming is working, and is available, it is just confusing, that if I want to download the program in microcontroller I always have to start, and end the debug session. What am I doing wrong?2012-02-11 07:47 AM
With a lot of search I found this:
http://www.keil.com/support/docs/3547.htmInformation in this knowledgebase article applies to:
When using the ST-LINK driver for downloading and debugging an STM32 Discovery board, the Load and Erase controls in µVision don't appear to do anything.
CAUSEThe ST-LINK driver from STMicroelectronics does not support separate Load and Erase functions.
RESOLUTIONTo download the device, just start the debugger. The ST-LINK driver automatically erases and downloads the device when you start the debugger.
Well it seems that this is still not supported...2012-02-11 07:50 AM
And the solution is here on this website:
http://arm4fun.com/index.php?option=com_content&view=article&id=7:how-to-used-st-link-utility-to-download-hex-file-from-keil-uvision&catid=1:2010-07-22-17-08-36&Itemid=4&lang=en Edit: Tried, and it works!