cancel
Showing results for 
Search instead for 
Did you mean: 

run STM32CubeProg on Raspberry pi 4

GHama.1
Associate

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)

2 REPLIES 2
KnarfB
Principal III

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

GHama.1
Associate

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