cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F030 cant be flshed with openOCD

andreaslehmi9
Associate II

I'm tring to work with a STM32F030F4. Unfortunately I didn't manage to flash the application on the controller.

  • I'm using openOCD with a ST-Link.
  • I use the following to start openOCD: openocd.exe -f interface\stlink-v2.cfg -f target\stm32f0x.cfg
  • I now use Telnet to talk to openOCD.

I do the following sequence:

 

Open On-Chip Debugger
> halt
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0xc1000003 pc: 0xfffffffe msp: 0xffffffd8
> mdw 0x08000000 30
0x08000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
0x08000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
0x08000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
0x08000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff

> flash fillw 0x08000000 0xAA55AA55 4
device id = 0x10006444
flash size = 16kbytes
Verification error address 0x08000000, read back 0xffffffff, expected 0xaa55aa55

> mdw 0x08000000 30
0x08000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
0x08000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
0x08000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
0x08000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff

 

It seems that everything is fine as the communication with the chip works fine. Never the less I can't flash my application on the chip.

What could be the reason for that?
Could there be something missing on the hardware?

I'm using a selfmade board with:

  • VDD and VDDA connected directly.
  • Rst connected to a RC with 10k and 100nF
  • Boot is connected directly to GND
  • No external cristal

This are the Optionregister: 0x1ffff800: 00ff55aa 00ff00ff 00ff00ff 00ff00ff ffffffff ffffffff ffffffff ffffffff

This is the factory setting!

Thanks,

Drewle

0 REPLIES 0