Can't write to CM4 core
- 5 replies
- 1443 views
I have an stm32h745zit6 on my own board, where I can write correctly to the CM7 section (0x0800 0000 to 0x080F FFFF range) but not to the CM4 section (0x0810 0000 to 0x081E FFFF range), I also can't do a full erase of the chip, and it will give me an "Error: Mass erase operation failed.Please verify flash protection" error.
What my suspicion is that the option bytes at some point got messed up, but when reading the option bytes from memory the values don't make a lot of sense, and there are more bytes than what in the reference manual is indicated. (I attached the option bytes as a reference.)
To my knowledge I didn't write these option bytes, and don't have another one available now to test on as well, anything that I can do? As indicated, I do have access to the CM7 core, so I could write the default values to the option bytes, but would rather confirm here before messing stuff up and would need to know how to do this correctly.
Best, Hans
