cancel
Showing results for 
Search instead for 
Did you mean: 

[FYI] STM32CubeMX on Raspberry Pi

koendv
Associate II

FYI: To run the cube on raspberry:

Download and install Oracle java 1.8.0, arm32 hard float

cd /opt; tar xvf jdk-8u251-linux-arm32-vfp-hflt.tar.gz

Download and unzip STM32CubeMX

unzip en.stm32cubemx_v5-6-1.zip

Start installer

/opt/jdk1.8.0_251/bin/java -jar ./SetupSTM32CubeMX-5.6.1.exe

Execute STM32CubeMX from install directory

/opt/jdk1.8.0_251/bin/java -jar ./STM32CubeMX

2 REPLIES 2
berendi
Principal

Next challenge: make STM32CubeIDE work by replacing the toolchain shipped with it with one compiled for the Pi, and openocd with a variant that turns the Pi into a debugger probe.

koendv
Associate II

Thank you. Running openocd on raspberry using the gpio pins to connect to target is not a challenge; it is a command line option. Compiling cube generated sources on raspberry is installing arm-none-eabi-gcc and asking cubemx to generate output for "Makefile".