cancel
Showing results for 
Search instead for 
Did you mean: 

Openocd not able to flash a discovery board

Javier1
Principal

UNEXPECTED ID code?, the discovery board is original.

the onboard stlink is updated to latest version.

If i google this Error, i get people trying to flash ST clone mcus, but mine is original.

0693W00000Y8fnkQAB.png 

This is my openocd.cfg file:

source [find interface/stlink.cfg]
transport select hla_swd
set WORKAREASIZE 0x2000
source [find target/stm32f1x.cfg]
 
#reset_config srst_only srst_push_pull srst_nogate
#connect_assert_srst
 
adapter srst delay 100
adapter srst pulse_width 100
bindto 0.0.0.0
 
init
targets
reset halt
#program bootloader.bin verify
program /stm32f0-discovery_ledblink/build/stm32f0-discovery_ledblink.bin 0x08000000 verify reset exit
reset
shutdown

we dont need to firmware by ourselves, lets talk
1 ACCEPTED SOLUTION

Accepted Solutions
Javier1
Principal

okay i found the issue was in the openocd.cfg file

source [find target/stm32f1x.cfg]

 

should be

source [find target/stm32f0x.cfg]

we dont need to firmware by ourselves, lets talk

View solution in original post

1 REPLY 1
Javier1
Principal

okay i found the issue was in the openocd.cfg file

source [find target/stm32f1x.cfg]

 

should be

source [find target/stm32f0x.cfg]

we dont need to firmware by ourselves, lets talk