TI中文支持网
TI专业的中文技术问题搜集分享网站

CC2530 Bootloader有没有什么方法可以把它设置成只读的(0x0000~0x1FFF),防止意外把bootloader写死?

Z-Stack CC2530 Bootloader有没有什么方法可以把它设置成只读的(0x0000~0x1FFF),防止意外把bootloader写死?

da qin zheng sheng:

可以,需要把前边4页设置为写保护就可以了,仔细阅读英文手册。在最后的相关16字节存储部分修改。

Viki Shi:

可以通过smart flash programmer设置lock debug来进行写保护,或者根据手册设置:
The flash memory is organized as a set of 1 or 2 KB pages. The 16 bytes of the upper available page contain page-lock bits and the debug-lock bit. There is one lock bit for each page, except the lock-bit page which is implicitly locked when not in debug mode. When the lock bit for a page is 0, it is impossible to erase or write that page. When the debug lock bit is 0, most of the commands on the debug interface are ignored. The primary purpose of the debug lock bit is to protect the contents of the flash against read-out.
The Flash Controller is used to write and erase the contents of the flash memory.

user4682018:

回复 da qin zheng sheng:

谢谢你的回复,我再看一下文档怎么操作

user4682018:

回复 Viki Shi:

好的,谢谢ViKi!!

赞(0)
未经允许不得转载:TI中文支持网 » CC2530 Bootloader有没有什么方法可以把它设置成只读的(0x0000~0x1FFF),防止意外把bootloader写死?
分享到: 更多 (0)