2013-04-05 08:26 AM
Hello,
Am trying tocompile STM32 examples in linux but i want to know if i have to install some drivers so that the linux can recognize it. Best Regards, Dorra2013-04-05 12:45 PM
Am trying to compile STM32 examples in linux but i want to know if i have to install some drivers so that the linux can recognize it.
Suggest a Google search, if that doesn't provide any hits then assume you're on your own. I've built STM32 examples using a GNU/GCC (ARM cross-compiler) command and make, but not under Linux in this case.
2013-04-06 05:28 AM
You can try the driver you find there:
Last time I tried it more than a year ago, it used som additional stuff from Atollic (startup code, gdb server).2013-04-13 03:04 PM
This guy created his own libraries or something. He can use eclipse and c++ and linux with his stm. He provides it all free with instructions on his site.
I've implemented most of my code with stdlib but would really rather be using c++. If you dont mind using another lib check out his site2013-04-15 01:59 AM
gcc works like charm. Or to be more exact arm-none-eabi-gcc which can be found in CodeSourcery is the way to go.
You only need CodeSourcery+openocd+TextEditor to compile, run&debug in Ubuntu. I suggest you also download directly from websites, as official repros might be quite a bit outdated.2013-04-15 07:15 AM
2013-04-18 02:15 PM
i'm doing basic things by using :
arm-none-eabi from :https://launchpad.net/gcc-arm-embedded
(depack and add the /bin path to $PATH)and, as a template for empty projects : git clone git://github.com/jeremyherbert/stm32-templates.gitwhich conveniently reunites all the st incs & src from the FW file in the same place.(just remove the -Os from the makefile, this is causing some weird problems) to load the bin, use the texane tool (https://github.com/texane/stlink
) or directly from gdbin one term : openocd --file /usr/local/share/openocd/scripts/board/stm32f4discovery.cfgin another run :$arm-none-eabi-gdb main.elf...
(gdb)target extended-remote :3333...(gdb)monitor reset init...(gdb)load(...uploads the bin...)(gdb)runyeset voila :)