OpenOCD fails to program STM32L152D flash.

Hi

-I’m using openOCD 0.6.1

-In our project we have bought two stm32l152d-eval boards.

-On one board board openOCD fails to program the flash.

-Programming the flash works when using “STM32 ST-Link Utility”.

-The flash size reported is strange on both (I have seen this on another post).

Initialization Commands in Eclipse:

monitor reset halt

monitor soft_reset_halt

monitor soft_reset_halt

monitor halt

monitor wait_halt

monitor poll

monitor flash probe 0

monitor flash erase_sector 0 0 31

monitor soft_reset_halt

I would like to attach logs but don’t see any attach button.

Regards,

dml72

Hi

The issues seems to be the same as already mentioned in the post:

“Flashing STM32l Discovery Board hangs/fails”

That is it is releated to a blank flash. If I first program the flash using “STM32 ST-Link Utility”, and then start the debugging session, then it works.

Regards,

dml72

we have a patch that should fix these issues on our gerrit server - http://openocd.zylin.com/1125

It should be merged very soon, but if you are able to test that would be great.

Cheers

Spen