Here are my sketchy notes on what I did to set up build, debugger and flash tools on Ubuntu. If anyone wants to see more detailed steps, let me know:
Starting from loading Ubuntu 14.04 64bit, aka Trusty for amd64. You need to install gcc build tools for ARM.
Ubuntu has a standard package for gcc-arm-none-eabi, but it is missing the stdlib++ which breaks the firmware build.
I loaded gcc tool chain "amd64 build of gcc-arm-none-eabi 4-8-2014q2-0trusty10 in ubuntu trusty RELEASE" from:
https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded/+build/6128656
Download the file gcc-arm-none-eabi_4-8-2014q2-0trusty10_amd64.deb and install it:
sudo dpkg -i gcc-arm-none-eabi_4-8-2014q2-0trusty10_amd64.deb
You should be able to do a complete build from the top of the rusefi-code/firmware directory to create output files in the build/ directory.
Another tool set is the Texane's stlink package available from github:
https://github.com/texane/stlink
https://github.com/texane/stlink/blob/master/doc/tutorial/tutorial.pdf
This includes st-util to set up a gdb server connection to the Discovery board via usb. The tutorial explains how to set up gdb and flash firmware in gdb.
It also includes a command line st-flash firmware update tool, but for some reason, the st-flash tool does not work for me. I have not looked into what's wrong there.
But there is another gui based firmware update tool, qstlink2 available from here:
https://launchpad.net/~fpoussin/+archive/ubuntu/ppa
More information is available here:
http://hackaday.com/2011/10/17/how-to-develop-for-stm32-discovery-boards-using-linux
Development on Ubuntu
Re: Development on Ubuntu
I cant get the st-flash utility to work either. I thought it must be a bad cable or something. It says that the flash is successful, but the board just sits there with the red light on. Thanks for posting the info on the gui tool, I'll give that a try!
- AndreyB
- Site Admin
- Posts: 14327
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Development on Ubuntu
Board sits with red led on? One close to the buttons? That could be firmware fatal error. Can you try connecting to console on microusb? Can you try resetting config to default with a jumper wire?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: Development on Ubuntu
not that one, just the pwr, and the com. sorry, i should have been more specific.
It was working fine when I was flashing with windows, but all my windows computers are dead at the moment, so I was trying with linux.
It was working fine when I was flashing with windows, but all my windows computers are dead at the moment, so I was trying with linux.
Re: Development on Ubuntu
I have a Linux mint and windows 8.1 machine.
What do you guys suggest would be the easiest and stable platform for firmware development on the stm32?
Thanks
What do you guys suggest would be the easiest and stable platform for firmware development on the stm32?
Thanks
- AndreyB
- Site Admin
- Posts: 14327
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Development on Ubuntu
I have a feeling that windows would be easiest.Auteka wrote: What do you guys suggest would be the easiest and stable platform for firmware development on the stm32?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: Development on Ubuntu
Windows it is then I will start installing.