请问LM4F230中Flash Memory Protection Read Enable的位清零了以后,禁止相应的块读取,
是不是就自己的程序中也不能把它作为数据读取,因而不能用来保存常量、变量的初始值等数据了呢?
还是只是禁止外部读取?谢谢
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.
Flash Memory Protection Read Enable的位清零了以后,对应block只能执行程序,不能被读取。尝试读取一个读保护的block是被禁止的,并会产生一个bus fault。
自己的程序也不能读取 读保护的block。
Datasheet中对此有对应的描述:“Care must be taken not to store required data in a Flash memory block that has the associated FMPREn bit cleared”。
LM4F230片上有2K的EEPROM,可以用来存放用户需要的数据。
用C语言就能设置禁止读的属性,不仅仅是只能用禁止JTAG的方法来防止程序被读出,请参考下边的例程。