Flash的介绍Ti官方的开发手册其实讲的很清楚了,也比较简单。
主要是几个点配置的时候要注意:
- The state of the LOCKSEG bit is toggled when a 1 is written to it. Writing a 0 to LOCKSEG has no effect.
-
MERAS ERASE Erase Mode 0 1 Segment erase 1 0 Mass erase (all main memory segments) 1 1 LOCKSEG = 0: Erase main and information flash memory.
LOCKSEG = 1: Erase only main flash memory.
Q:
- demo例程中对flash的写操作没有看到擦除假写入操作?
是写之前自动擦出了吗?不会吧?暂时先不管,先按擦除的写。后面再订正