Author Topic: What is the best free IDE for the STM32 mixrocontrollers ?  (Read 12938 times)

0 Members and 1 Guest are viewing this topic.

Offline endevor100

  • Contributor
  • Posts: 23
  • Country: us
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #50 on: March 11, 2018, 11:21:29 am »
I've been using the Eclipse package aimed at C/C++ Developers with minimal pain and suffering. If you are interested in a book to help you install and manage the toolchain I really liked Mastering STM32 on learnpub: https://leanpub.com/mastering-stm32. The author calls the version of the book 0.25 so it's a bit rough arouditing goes.
 

Offline Gixy

  • Regular Contributor
  • *
  • Posts: 188
  • Country: fr
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #51 on: March 11, 2018, 07:31:54 pm »
did you read previous posts?  8)
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 606
  • Country: gb
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #52 on: March 11, 2018, 09:12:07 pm »
a bit rough arouditing goes.
'arouditing'     :o
 

Offline Vasi

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ro
    • Visual Pin Configurator for Nucleo L152RE - produces SPL code.
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #53 on: March 31, 2018, 02:40:52 am »
I was amazed to see how easy is to set up Visual Studio Code for Linux as an IDE for STM32, using also the Cortex Debugger extension. After proper setup, all you need is to generate Makefile projects with STM32CubeMX and Low Level driver. You can install also the Arduino extension from Microsoft (requires Arduino IDE 1.8.x to be already installed on your home folder) from which you can use the serial console or for rapid prototyping.  I tried Atollic and it works well for me in Linux Fedora and that means also debugging but now I prefer the VScode solution.

https://community.st.com/thread/48130-visual-studio-code-with-cortex-debugger-package

BTW. no "platformio" infestation.
« Last Edit: March 31, 2018, 02:50:11 am by Vasi »
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 2875
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #54 on: March 31, 2018, 04:09:29 am »
I was amazed to see how easy is to set up Visual Studio Code for Linux as an IDE for STM32, using also the Cortex Debugger extension. After proper setup, all you need is to generate Makefile projects with STM32CubeMX and Low Level driver. You can install also the Arduino extension from Microsoft (requires Arduino IDE 1.8.x to be already installed on your home folder) from which you can use the serial console or for rapid prototyping.  I tried Atollic and it works well for me in Linux Fedora and that means also debugging but now I prefer the VScode solution.

https://community.st.com/thread/48130-visual-studio-code-with-cortex-debugger-package

BTW. no "platformio" infestation.
Can VSCode work without Cube involvement?
 

Offline Vasi

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ro
    • Visual Pin Configurator for Nucleo L152RE - produces SPL code.
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #55 on: March 31, 2018, 05:48:06 am »
Can VSCode work without Cube involvement?

Yes, definitely, but you must rely on Makefile, no matter which code you have.
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 2875
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #56 on: March 31, 2018, 06:14:49 am »
Can VSCode work without Cube involvement?

Yes, definitely, but you must rely on Makefile, no matter which code you have.
How does debugging work then? Can I step into the code, peek into peripheral registers, or even manipulate memory on the fly?
 

Offline Vasi

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ro
    • Visual Pin Configurator for Nucleo L152RE - produces SPL code.
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #57 on: March 31, 2018, 06:20:44 am »
Step into the code, breakpoints, see the registers, don't know about manipulating memory on the fly, but the Cortex-Debug extension is on the github, https://github.com/Marus/cortex-debug , read the readme from there.
 

Offline lewiss66

  • Newbie
  • Posts: 4
  • Country: fr
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #58 on: April 14, 2018, 03:56:38 am »
Have you heard about Sloeber?
http://eclipse.baeyens.it/
This is an IDE eclipse based. I downloaded the stm32duino libraries package and it worked for my stm32f103c8 bluepill named board.
What I like about Sloeber Eclipse IDE is that it is arduino C++ oriented, meaning easy to implement codes and then you can use print() and read() arduino commands plus the serial monitor to communicate right out of the box!

(Do not need as well stlinkV2 since after downloading the arduino specific bootloader it allows to directly communicate via on board USB device..)

I'm not sure if Truestudio allow all that options or maybe it has changed but not for free!

The only drawback of sloeber is that the debbuger is not really already working.
What do you think of it vs atollic?
« Last Edit: April 14, 2018, 04:04:05 am by lewiss66 »
 

Offline Vasi

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ro
    • Visual Pin Configurator for Nucleo L152RE - produces SPL code.
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #59 on: April 14, 2018, 05:58:25 am »
As an Arduino IDE, the Visual Studio Code is great. TrueStudio now is a dedicated IDE to STM32 development, with truly professional tools. It it will continue to be developed by ST.M. so it will be the one to recommend.
 

Offline lewiss66

  • Newbie
  • Posts: 4
  • Country: fr
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #60 on: April 14, 2018, 04:25:36 pm »
As an Arduino IDE, the Visual Studio Code is great. TrueStudio now is a dedicated IDE to STM32 development, with truly professional tools. It it will continue to be developed by ST.M. so it will be the one to recommend.
Yes VS is not totallt free to be able to use the full package. Neither Truestudio if you want to be able to use the serial monitor or it has changed now.

Envoyé de mon LG-H850 en utilisant Tapatalk

 

Offline Vasi

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ro
    • Visual Pin Configurator for Nucleo L152RE - produces SPL code.
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #61 on: April 15, 2018, 03:53:21 am »
1. When I say Visual Studio Code (which can be used with Arduino extension and that include also a serial terminal), I don't say Visual Studio IDE. The first is free, cross platform and with no limits, the second is commercial and Windows only - do your research.

2. TrueStudio today is completely free, full featured (including all the professional features), no restrictions - again, do your research.
 
The following users thanked this post: newbrain

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 1524
  • Country: us
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #62 on: November 11, 2018, 07:49:53 pm »
bump. 

I'm in the same boat now.  I have the Mastering STM32 Toolchain up and running, but I'm not super happy with the STM32CubeMX workflow since I'm going to have to regenerate the Cube code while I work out configuration issues and all that copying isn't very friendly.
This toolchain is essentially outlined here: http://www.eevblog.com/forum/microcontrollers/what-do-you-think-of-this-stm32-toolchain-10-software-installations/
Full Toolchain setup in sample pdf for the book: http://samples.leanpub.com/mastering-stm32-sample.pdf

Any disadvantages to the ST owned TrueStudio vs the pieced together MasteringSTM32 toolchain?
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 1524
  • Country: us
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #63 on: December 19, 2018, 10:32:29 pm »
Just a quick update...

I've been running the now ST Owned Atollic TrueStudio since that last post.  Very happy with this toolchain and it's integration to STM32CubeMX and debugging setup.  This is WAY more straightforward than the thing in "Mastering STM32".  The whole idea of needing a custom python script to translate between STM32CubeMX and Eclipse is a little insane.

While Mastering STM32 is still a really good reference for everything else, anyone picking it up now should just skip all that stuff about setting up your toolchain from scratch and just run TrueStudio.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1273
  • Country: 00
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #64 on: December 20, 2018, 03:34:01 am »
While Mastering STM32 is still a really good reference for everything else, anyone picking it up now should just skip all that stuff about setting up your toolchain from scratch and just run TrueStudio.

Mastering STM32 is NOT good for mastering STM32. It's good for mastering the HAL.

I tried to set up Eclipse and the toolchain following the steps in the book and I was not able to get it working.
Then I downloaded and installed System Workbench and everything worked out of the box.
I used one of the Nucleo devkits to learn to master the STM32.

I use CubeMX to help me to setup the clocks and pinmux etc. but I never use the code produced by it.
I don't use and I don't link the HAL. It's a bit harder in the beginning but then you really learn how to program the STM32.
I wrote my own libs for serial port, I2C, SPI. I use interrupts, DMA and the ADC. I believe it's the only way to write lean and efficient code.

I never use the debugger. If something doesn't work as expected, I print messages/values to a serial port or I manipulate a gpio pin to track interrupt service routines.

The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 

Offline radioactive

  • Regular Contributor
  • *
  • Posts: 94
  • Country: us
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #65 on: December 20, 2018, 04:30:59 am »
Also, GCC compiler is troublesome in some cases.
How so?
I'd like to know that too. I have not run into problems for the past >10 years of using GCC for ARM.

Same here.  GCC for ARM been working good for about 10 years for me as well.  In the beginning,  I used crosstool-ng to fetch/compile the environment, but these days the launchpad version, that appears to have been recently taken over by ARM works great (it has worked great for some years now).   Just need that, a linker script, Makefile, and Vi.  GCC served me well for Stellaris, NXP (back when they had downloadable peripheral libraries), and STM32.

Up until recently, I just used the "legacy" stm32 libraries for the stm32 M4 parts.  Just started using CubeMX to get things configured/initialized since I am switching to M7 cores.   I had troubles on my first try with the CubeMx/F7 series, but H7 seems to be going very smooth (and very fast!) other than some issues I'm having with HAL / spi drivers.  (could only get the interrupt driven functions to work).
 

Offline zelea2

  • Contributor
  • Posts: 10
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #66 on: January 16, 2019, 07:47:58 am »
I'm surprised nobody mentioned Rowley Crossworks
https://www.rowley.co.uk/arm/index.htm
The license for non-comercial use is just 150$ and it has support for a lot of ARM processors and boards.
The compiler is GCC or LLVM based and the IDE is very fast and responsive (written in C++).
I particularly like the debugging interface and all the supported targets: St-Link/V2, Segger J-Link etc.
It also includes an ARM simulator.
 

Offline ehughes

  • Frequent Contributor
  • **
  • Posts: 330
  • Country: us
Re: What is the best free IDE for the STM32 mixrocontrollers ?
« Reply #67 on: January 16, 2019, 07:56:12 am »
Segger Embedded Studio
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf