Skip to main content
koendv
Associate II
June 6, 2020
Question

[FYI] STM32CubeMX on Raspberry Pi

  • June 6, 2020
  • 2 replies
  • 2008 views

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

This topic has been closed for replies.

2 replies

berendi
Principal
June 7, 2020

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
koendvAuthor
Associate II
June 7, 2020

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".