cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot write to Memory on STM32F071V8

kilian2399
Associate II
Posted on January 28, 2016 at 12:28

Hi,

I get the following error when trying to write to memory with the latest STLink Utility:

12:09:09 : ST-LINK SN : 48FF6E064967535727520587

12:09:09 : ST-LINK Firmware version : V2J25S4

12:09:09 : Connected via SWD.

12:09:09 : SWD Frequency = 0,9 MHz.

12:09:09 : Connection mode : Normal.

12:09:09 : Device ID:0x448

12:09:09 : Device flash Size : 64KBytes

12:09:09 : Device family :STM32F072xx/F078xx

12:09:42 : Internal command error

12:09:42 : Error occured during program operation!

12:09:42 : Programming error @: 0x00000000

Boot0 is pulled to ground with  a 10k resistor I hope this is enough.

I can write single Words to address 0x08000000 but not to address 0x00000000. I could imagine that something is blocking my write attempts, but it doesn't seem to be any FLASH protection.

If somebody could point me to the right direction I would be glad.

Regards,

Kilian

2 REPLIES 2
Posted on January 28, 2016 at 13:51

> I can write single Words to address 0x08000000 but not to address 0x00000000.

And why would you want to write to address 0x00000000 at all?

JW

Posted on January 28, 2016 at 14:04

Boot0 is pulled to ground with a 10k resistor I hope this is enough.

It would seem apparent that it isn't, and the debugger could remap what's at zero if that's part of the programming code it downloads, or if it needs to map RAM there to move the vector table, and actively refuses writes into the zero space.

As the FLASH always appears at 0x08000000 it seems unnecessary to write elsewhere.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..