STM32F407启用二级加密后,就没法使用模拟EEPROM了?

2020-01-07 19:23发布

如题。

发现开启Flash二级加密后,芯片的flash擦写函数就失效了,没法在片内Flash模拟EEPROM保存数据了。。。,这个坑也太大了吧?

大家也是这个情况吗?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
31条回答
n_cell
1楼-- · 2020-01-08 14:41
zhifeng 发表于 2019-6-12 11:52
开启Flash二级加密后 如何恢复?

没法恢复,这个是永久的,不可逆的,开启后就再也没法通过JTAG仿真,没法通过片外Flash或RAM启动,很多功能都永久失效了,送到ST原厂也没办法
sme
2楼-- · 2020-01-08 20:18
n_cell 发表于 2019-6-12 11:53
这个不是重点,重点是没法用了。。

ST很多新出的型号都有二级加密功能的,像F0或F3系列的,都有可能会用 ...

F0手册里没有提到二级加密不能擦写。

Level 2: no debug
In this level, the protection level 1 is guaranteed. In addition, the CortexM0 debug capabilities are disabled. Consequently, the debug port (SWD), the boot from RAM (boot RAM mode) and the boot from System memory (boot loader mode) are no more available.
In user execution mode, all operations are allowed on the Main Flash memory. On the contrary, only read and program operations can be performed on the option byte. Option byte are not accessible for erase operations.
flash3g
3楼-- · 2020-01-08 20:57
zhifeng 发表于 2019-6-12 11:52
开启Flash二级加密后 如何恢复?

不可逆操作
hongfadg
4楼-- · 2020-01-09 00:03
 精彩回答 2  元偷偷看……
SUPER_CRJ
5楼-- · 2020-01-09 03:08
hongfadg 发表于 2019-6-12 12:26
请问 各位大哥  如何开启 二级加密,,多谢!

小老弟,操作选项字节就可以了。
看Flash那一块。加密芯片。
n_cell
6楼-- · 2020-01-09 07:08
sme 发表于 2019-6-12 12:19
F0手册里没有提到二级加密不能擦写。

Level 2: no debug

F407的手册也是这样写的,但是开启二级加密后,Flash就没法擦写了。

没开启二级加密前,模拟EEPROM是正常的

一周热门 更多>