STM32L1系列内部FLASH写之前是要擦除地,擦除后内容是00,你可以使用STLINK utility看看。
Program memory Fast Word Write
This operation is used to write a word to the program memory, assuming that it was
previously erased. To do so:
• Unlock the FLASH_PECR register
• Unlock the Program memory
• Write a word to a valid address in the program memory. This activates a programming
phase |