Skip to main content
GHama.1
Associate
June 25, 2021
Question

run STM32CubeProg on Raspberry pi 4

  • June 25, 2021
  • 3 replies
  • 1654 views

I don't see ARM 32/64 bit in the system requirements of STM32CubeProg. Is it possible to get this running on like a raspberry pi 4? I am interested in CLI only

or do you have other suggestions on how i could do a flash of stm32 chip (STM32G070CB)

This topic has been closed for replies.

3 replies

KnarfB
Super User
June 28, 2021

If its just flashing, look at 3rd party code like https://github.com/stlink-org/stlink

GHama.1
GHama.1Author
Associate
June 30, 2021

I have tried stlink as well but it is 10 or 20times slower the the cubeprobrammer.

I found the solution eventually in openocd http://openocd.org/

running this had the same performance as the cubeprogrammer.

this was the command

openocd -f openocd.cfg -c "program /tmp/${filename} verify reset exit"

with this openocd config

source [find interface/stlink.cfg]
 
transport select hla_swd
 
source [find target/stm32g0x.cfg]

and we use a firmware that puts the device in readonly, to unlock it we do this

init
reset halt
stm32g0x unlock 0
stm32g0x option_load 0
sleep 200
reset run
exit

the sleep 200 took me the longest to find out, if you do not add it the command is not accepted correctly

Maxime_BELAVAL
ST Employee
April 16, 2026

Hello,
Thank you for your patience, we know this has been a long-awaited request!

We're happy to share that Raspberry Pi support for STM32CubeProgrammer will be available in June 2026 with version 2.23.

Please refer to this Developer News for more information: [Coming June 2026] Raspberry Pi support for STM32CubeProgrammer

We also encourage you to share your feedback with us by commenting on the Dev News, as it helps us prioritize future improvements and developments.

Thank you all,
Max