Forum: µC & Digital Electronics ChibiOS on the STM32F4-Discovery

von Ale (Guest)

Rate this post
not useful

I got a STM32F4-Discovery board and wanted to test some ready to use 
code. I stumbled upon the ChibiOS and its STM32F4 support. I compiled 
the sources under macos x, with a self-built gcc, and flashed with a 
self-compiled stlink utility. The demo does not run. The flashing tols 
says that flashing was sucessful (!).
Now, I can read the demo with this flashing utility and re-flash it, and 
it still works.
I found this 
post, where the author claims that he got it working with the windows 
flashing tools and not in linux (ok I used MacOS X).

Have someone tried ChibiOS on the Discovery ? which tools/flash 
utilities have you used ?

Could you post a working compiled file for me to compare ?


: Moved by Moderator
von vampire (Guest)

Rate this post
not useful

von Alejandro P. (alejandro_p)

Rate this post
not useful
Thanks vampire.

I found that the stflash utility flashed the hex file as if it were a 
binary, i.e. it did not interpret it as an hex file. I flashed the 
binary and the demo ran.



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.