Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What software do you guys use!?? #48

Closed
SpacePokemon opened this issue Aug 22, 2018 · 6 comments
Closed

What software do you guys use!?? #48

SpacePokemon opened this issue Aug 22, 2018 · 6 comments

Comments

@SpacePokemon
Copy link

SpacePokemon commented Aug 22, 2018

First of all, thank you guys for your work!

I am new to embedded and I was wondering what software you guys use to program STM32.

I tried to use Atollic TrueSTUDIO but I am getting thousands of errors from the original code which I am having hard time to resolve.

However, I successfully flashed/unlocked my board using ST-Link Utility with the hex file that you guys provided.

Thanks in advance!!

@drbytes
Copy link

drbytes commented Aug 22, 2018

I use Keil, it talks to the STLINKv2 and compiles and flashes (called download) the board.

@LeoDJ
Copy link
Collaborator

LeoDJ commented Aug 22, 2018

Normally, on Linux, I use VS Code as an editor and just the plain make with arm-none-eabi-gcc installed.

Even on Windows, I use the Linux subsystem and compile it using make there too. Together with VS Code and ST-Link Utility.

Just make sure you don't run on gcc version 6, because nothing will compile correctly (you will get a binary, but the board will do weird things or nothing at all, better to not try it). Either verison 4 or 7 is tested to work okay.

I for my part installed gcc 7 using from the team-gcc-arm-embedded PPA like this, because my Ubuntu 18.04 came with the incompatible version 6:

sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa 
sudo apt update 
sudo apt install gcc-arm-embedded 

There are currently efforts of compiling this project with platform.io too (#43), so I'll probably use that in the future. But for now, make works fine enough for me.

PS: as far as I am aware, Niklas is using just plain make too, so that's what this project is optimized for.

@LeoDJ LeoDJ closed this as completed Aug 22, 2018
@SpacePokemon
Copy link
Author

Thank you all!!!
I will try them out and find the one that fits me!!

@btsimonh
Copy link
Contributor

platform.io also works; look at the latest pull request. It's really easy to use (on windows) - does pretty much everything for you; although debugging alludes me as yet.

@SpacePokemon
Copy link
Author

@btsimonh
I just gotta say, platform.io is awesome!!!
Btw did you have any luck debugging with this?

@btsimonh
Copy link
Contributor

not yet; and I've now moved to an RPiZeroW inside the board, so it gets more complex.
When I tried to debug in platformio, it said I had to login to platform.io. did that, then it failed with something else....
However, do check my repo - i've just pushed a pretty updated version with in an easy ascii protocol for examining internals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants