Skip to main content
SebCanet
Associate II
March 26, 2020
Question

Newbie easy portable compilation toolchain? Like arduino-cli?

  • March 26, 2020
  • 5 replies
  • 1118 views

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 topic has been closed for replies.

5 replies

andy2399
Senior
March 26, 2020

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
SebCanetAuthor
Associate II
March 26, 2020

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

berendi
Principal
March 26, 2020

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
March 26, 2020

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
SebCanetAuthor
Associate II
March 27, 2020

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 ?