This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
吐槽下C2000的擦除操作,居然是FLASH存储单元全部变0,然后再变1,擦除过程断电大概率锁死。
The erase process first programs all cells as zeroes and then removes the charge from the bits in the sector until all bits are erased. If the execution stops after the CSM locations are rogrammed as zeroes but before the charge is removed, it will become permanently locked.
更好的设计应该是全部写入特定非0密钥(如0xCCCC)锁死。避免擦除断电锁死的杯具。
当然,用我的XBOOT那种可以自我擦除的方式也可以,解密过程完全不需要知道密钥,全部写0也没关系。