![]() Generate a project in CubeMX, select your board and generate the code. It has to be the real path because Clion looks into $ echo $(realpath $(which openocd))/./share/board/ for all board configurations! Be aware of that this path might not work after the next brew upgrade and you have to adjust it again. Note: /usr/local/bin/openocd doesn’t work in that case. This is the path you have to enter in Clion in the OpenOCD configuration (see Clion settings and search for OpenOCD). # will look like: /usr/local/Cellar/open-ocd/HEAD-ba0f382/bin/openocd ![]() $ brew install -HEAD open-ocd Find location of OpenOCD for CLion: $ realpath $(which openocd) # $ brew install arm-none-eabi-gcc Install OpenOCD (Open On-Chip Debugger): # builds open-ocd from source to have the latest boards available # installs a binary called "arm-none-eabi-gcc # old way only do this if the first line doesn't work Install the ARM GNU compiler toolchain via Homebrew: brew install -cask gcc-arm-embedded Hold on for now, we will continue here at the end of this tutorial. Once the App is installed it might be that you always have to start it with java -jar /Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources/StM32CubeMX in case that regular application startup doesn’t work. The installer will take care of everything. After you downloaded STM32CubeMX, extract the ZIP. If you don’t want to create an account for that, use one from bugmenot. $ brew install brew install -cask clion Install STM32CubeMXĭownload the ZIP file from their website. ![]() If you don’t have them yet, you can install Java and Clion with Homebrew. USTM32 Nucleo-L4R5ZI Development Board Install Java and Clion In this tutorial you have to install Java (required for STM32CubeMX), STM32CubeMX, Clion as IDE, the ARM GNU eabi Toolchain, and OpenOCD. If you need the same for Windows, I got your back! This tutorial should work for all STM32 based Microcontrollers with a debug interface (JTAG) that is supported by OpenOCD. I’ve managed to setup programming and debugging a STM32 Nucleo-L4R5ZI development board with Jetbrains Clion IDE on my Mac. Setup Jetbrains Clion IDE with STM32CubeMX project for development on STM32 Microcontrollers – Mac
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |