cancel
Showing results for 
Search instead for 
Did you mean: 

USART flashing on windows

izua
Associate II
Posted on September 29, 2010 at 04:45

Has anyone succeeded in flashing the discovery board over USART on windows?

I have tried [url=http://tuxotronic.org/wiki/projects/stm32loader]stm32loader[/url] (python) which wrote the bin file correctly (verified via ST-Link later), but the program does not start (set boot0 = 0, reset chip) and the FLASHLoader Utility, which doesn't even recognize the STM32F100 (no pages displayed) and can only set the read/write protect.

However, [url=http://code.google.com/p/stm32flash/]stm32flash[/url] (C) works on linux. I svned it out, compiled it, use the demo hex and after flashing and a reset, it started blinking. I don't want to/can't use linux as a development/desktop OS though.

1 REPLY 1
infoinfo968
Associate II
Posted on September 29, 2010 at 10:45

I had no problems with stm32flash and linux either. The board should run the flashed code when you remove the BOOT0 fix and reset it.

There are several versions of the python loader about, I think. I don't know if any of them have implemented the 'execute' protocol like stm32flash does ?

I do recall reading somewhere that someone had attached some code in a forum for the stm32flash utility that made it compatible with Windows (this should be fairly trivial to do). You could try searching for that.

The other thing you could check is to flash it using stm32loader and then use stm32flash's 'execute' command stm32flash /dev/ttyS0 -g 0x0