Electronics > Microcontrollers
IDE for STM32F303RE & similar, 64bit Linux (Mint)
fourtytwo42:
Hello all, I am having a frustrating time trying to find an IDE for these chips having given up on Mchip PIC.
I am a bare metal programmer (in C or Assembler) and have tried the following :-
openSTM32 I last used 2018ish and it now seems abandoned (no updates) so unsafe ?
Arduino horrible, seems like basic, no information on libraries or how the chip has been setup (not even the clock speed), lots of nasty macro's/functions for doing i/o with no idea whats in them, doesn't look any use at all for realtime ?
CUBEide downloaded it, probably made mistake in numerous nonsensical installation questions as it will not generate code from GUI (not that I need it too). Tried uninstall but on re-install complains "command not found" in installation script and hangs up, remains same even when re-downloaded, doesn't seem very usable any idea's ?
So there we have it a potentially useful chip series but no usable IDE, anybody out there with any suggestions (for free IDE's) ?
Regards
iMo:
The best/fastest stm32 rtos with linux, imho
https://www.chibios.org/dokuwiki/doku.php
The author is an STM guy, afaik..
voltsandjolts:
First, forget about IDE's and just setup a command line compiler system. Then use an editor of your choice.
https://github.com/ataradov/mcu-starter-projects
https://github.com/cpq/bare-metal-programming-guide
For programming and debugging I use Segger J-Link and Segger Ozone. For me this was the key to escape from IDEs. There are many other options for programming and debugging.
nctnico:
STM32CubeIDE should just work on Linux. Maybe it is a matter of following the installation instructions? Are all the prerequisite packages installed? To add a datapoint: I have zero problems running Eclipse based IDEs on Linux (Debian 11).
newbrain:
As ntcnico says, Eclipse based IDEs, so also STM32CubeIDE, should work on Linux, I never had problems with their installation...but my doctor told me to stay away due to my blood pressure.
Millions of flies developers like Visual Studio Code.
I am one of them, it's the only editor that managed to replace emacs for me.
As it is in the middle between a text editor and a full blown IDE, you still need to follow voltsandjolts's advice and set up a CLI toolchain.
This will give you complete freedom if/when you decide to switch to another editor or platform.
I use both Windows (10, 11) and Linux (mint - my main OS, fedora kde) machines, and share embedded projects with a Mac based friend.
I have nothing host-system specific in my projects and they compile and link cleanly as long as teh rigth tools are available.
I mostly use llvm/clang with picolibc and Cmake/ninja, but a more common gcc/newlibnano/make toolchain is perfectly fine.
Once the the toolchain is setup, integration in VSC is quite easy: add the extensions for C/C++, the one for your preferred build system (Cmake/ninja integration with VSC is really good), the cortex-debug extension for target debugging (works with openocd or pyocd inheriting their wide probe and target support, and also with J-link native debug server) and you are set (there are many customization options - some json file editing is probably needed).
I haven't yet tried Microsoft's own Embedded Tools extension (I have a working setup and I'm lazy) but I might in the future.
I know another extension exists, specifically for STM32: stm32-for-vscode, but I have not tried that either as I also use other vendors and architectures.
VSC also natively support git, there are extensions to improve on this: gitlens is probably the most feature rich, I use gitgraph which is more than enough for my purposes.
Remember to disable telemetry, alternatively there's always VS Codium, the version of VS Code unencumbered by Microsoft's non-free stuff. You might have to jump through some hoops to get all the extensions.
TBH, VSC latest fascination with AI worries me a bit, but at least copilot is still an optional extension...
Navigation
[0] Message Index
[#] Next page
Go to full version