共5条
1/1 1 跳转至页
AVR,APP,boot AVR的APP和boot区的加密位编程了就不能清除吗?
![](http://uphotos.eepw.com.cn/jackwang/thumb/avatar.jpg)
问
为什么我设置成禁止其他区读写后,再想设置为允许就不成功呀?
用的是引导区程序设置的。
如果软件有问题那设置禁止其他区读写的时候也应该不成功对吧?
请大侠门帮忙!谢谢
答 1: 这是对的,看看这个The application and Boot Loader section CAN be protected on different levels. There are
four levels of protection for both sections. A short description of the modes follows.
Note that once programmed (cleared), it is impossible to unprogram the bits again without
using serial or parallel programming. For instance, to implement an application that
is to be updated once, set Boot Lock mode 1 on the Application section, and mode 4 on
the Boot Loader section. This prevents the application from accessing the Boot Loader,
while giving the Boot Loader full access to update the application section. Once
updated, the Boot Loader would set mode 3 on the Application section, thus blocking all
further access.
To program the Boot Lock bits, load the R0 Register with the correct bits, set the BLBSET
and SPMEN bits in the SPMCR Register and execute the SPM instruction within
four cycles. The contents of the Z-register are ignored.
Using the LPM instruction instead of the SPM instruction will read the bits.
Table 1. Boot Lock Modes
Mode Bits Description
Mode 1 11 Full read/write access
Mode 2 10 No write access
Mode 3 00 No write access and no read access (data or interrupt execution) from the
other section.
Mode 4 01 No read access (data or interrupt execution) from the other section.
用的是引导区程序设置的。
如果软件有问题那设置禁止其他区读写的时候也应该不成功对吧?
请大侠门帮忙!谢谢
答 1: 这是对的,看看这个The application and Boot Loader section CAN be protected on different levels. There are
four levels of protection for both sections. A short description of the modes follows.
Note that once programmed (cleared), it is impossible to unprogram the bits again without
using serial or parallel programming. For instance, to implement an application that
is to be updated once, set Boot Lock mode 1 on the Application section, and mode 4 on
the Boot Loader section. This prevents the application from accessing the Boot Loader,
while giving the Boot Loader full access to update the application section. Once
updated, the Boot Loader would set mode 3 on the Application section, thus blocking all
further access.
To program the Boot Lock bits, load the R0 Register with the correct bits, set the BLBSET
and SPMEN bits in the SPMCR Register and execute the SPM instruction within
four cycles. The contents of the Z-register are ignored.
Using the LPM instruction instead of the SPM instruction will read the bits.
Table 1. Boot Lock Modes
Mode Bits Description
Mode 1 11 Full read/write access
Mode 2 10 No write access
Mode 3 00 No write access and no read access (data or interrupt execution) from the
other section.
Mode 4 01 No read access (data or interrupt execution) from the other section.
共5条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
5月直播——【探索边缘智能的未来——直播盛宴即将开启!】 | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
【有奖活动】智能可穿戴设备AR/VR如何引领科技新潮流! | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 |
打赏帖 | |
---|---|
换逻辑分析仪_STM32F103认识串口F103相关的知识认识被打赏18分 | |
“DFRobot盖革计数器模块评测”了解电离辐射对人体的危害被打赏8分 | |
“DFRobot盖革计数器模块评测”了解盖革计数器和电离辐射危害被打赏18分 | |
换逻辑分析仪_STM32F103_HAL库PWM呼吸灯被打赏23分 | |
换逻辑分析仪_STM32F103_(寄存器)PWM呼吸灯被打赏20分 | |
换逻辑分析仪STM32F103HAL库定时器被打赏13分 | |
换逻辑分析仪_STM32F103_(HAL库)驱动GPIO操作,点亮LED被打赏13分 | |
【分享评测,赢取加热台】+拆解一个儿童的python编程主控板被打赏20分 | |
【分享评测,赢取加热台】+拆解一个共享充电宝被打赏20分 | |
【换取手持数字示波器】+自制的STC无线调试器被打赏17分 |