pavelrevak / pystlink

Python tool for flashing and debugging STM32 devices using ST-LINK/V2
MIT License
218 stars 59 forks source link

flash:erase:verify:address:bin will raise *** Parameter error: 16384 *** when writing bin file to address which already contain data #7

Closed jxltom closed 6 years ago

jxltom commented 6 years ago

flash:erase:verify:address:bin will raise *** Parameter error: 16384 *** when writing bin file to address which already contain data

But if I using flash:verify:address:bin without erasing it, Verify error at block address will raise...

pavelrevak commented 6 years ago

and address is 0x4000?

jxltom commented 6 years ago

@pavelrevak I am using STM32F407, the address is 0x0800ec10. I am trying to write 13bytes size data and this error raised.

By the way, if the address only contains \xff data, everything is fine.

Maybe this is the problem with the address? Some address can not be overwirte? I don't know much about firmware