2021-06-25 12:10 AM
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)
2021-06-28 06:38 AM
If its just flashing, look at 3rd party code like https://github.com/stlink-org/stlink
2021-06-30 04:55 AM
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