共5条
1/1 1 跳转至页
AVR,APP,boot AVR的APP和boot区的加密位编程了就不能清除吗?
问
为什么我设置成禁止其他区读写后,再想设置为允许就不成功呀?
用的是引导区程序设置的。
如果软件有问题那设置禁止其他区读写的时候也应该不成功对吧?
请大侠门帮忙!谢谢
答 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 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
vscode+cmake搭建雅特力AT32L021开发环境被打赏30分 | |
【换取逻辑分析仪】自制底板并驱动ArduinoNanoRP2040ConnectLCD扩展板被打赏47分 | |
【分享评测,赢取加热台】RISC-V GCC 内嵌汇编使用被打赏38分 | |
【换取逻辑分析仪】-基于ADI单片机MAX78000的简易MP3音乐播放器被打赏48分 | |
我想要一部加热台+树莓派PICO驱动AHT10被打赏38分 | |
【换取逻辑分析仪】-硬件SPI驱动OLED屏幕被打赏36分 | |
换逻辑分析仪+上下拉与多路选择器被打赏29分 | |
Let'sdo第3期任务合集被打赏50分 | |
换逻辑分析仪+Verilog三态门被打赏27分 | |
换逻辑分析仪+Verilog多输出门被打赏24分 |