cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie easy portable compilation toolchain? Like arduino-cli?

SebCanet
Associate II

Hi,

I try to work on Nucleao L476RG, and I cannot compile.

I'm from Arduino world, I'm looking for something all-in-one like their arduino-cli.

  • I tried with gcc but I cannot compile, find right arguments, and it take more than 1Gb installation
  • I tried with compilation provided by use of Mbed_installer_v0.4.10.exe, but it needs mbed-os and aks for more than 1Gb of download.
  • I tried STM32CubeProgrammer_CLI but Ithink it's not the right tool
  • I tried arduino-cli with data from STM32Duino (https://github.com/stm32duino) and it works, but I would like to use toolchain from ST.

Is there any simple toolchain from ST ?

Many thanks.

This discussion is locked. Please start a new topic to ask your question.
5 REPLIES 5
andy2399
Senior

You can use either STM32CubeIDE (https://www.st.com/en/development-tools/stm32cubeide.html) or Atollic TrueStudio (https://atollic.com/truestudio/) which I prefer but is depricated. If you don't have STM32CubeMX (https://www.st.com/en/development-tools/stm32cubemx.html) then you should get that also.

Andy

SebCanet
Associate II

Thanks for answering, but I'm looking for is just compiling code, create .bin or .hox to upload. Not a total IDE.

berendi
Principal

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

Just unpack the .zip anywhere, it should work.​ Of course you need a few arguments, because it can't tell on its own which MCU series do you have.

waclawek.jan
Super User

Rudimentary examples using gcc from pack linked to by berendi on my website efton.sk/STM32 - while they are for the 'L476 Disco rather than Nucleo, they should be fairly easy to port, and the basic blinky has a Nucleo variant too.

JW

SebCanet
Associate II

Many thanks! And how do you know what arguments do you have to use?

I see it in your c.bat file, how can you find this ?