Utility of protecting flash ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Utility of protecting flash ?

4,873 次查看
Gizzzmo
Contributor I
I've seen the FPROT byte in the datasheet but i wonder what's his utility. Is it necessary to protect some areas of the flash ?

Thx
标签 (1)
0 项奖励
回复
5 回复数

873 次查看
rhinoceroshead
Contributor I
It's there so you can erase the Flash without erasing a bootloader (if you use one), and also so that you don't accidentally erase your program if you have buggy code that erases Flash.
0 项奖励
回复

873 次查看
rhinoceroshead
Contributor I
You can do anything except program and erase Flash in the addresses protected by the FPROT register.
 
You CAN still erase that Flash if you use the BDM.
0 项奖励
回复

873 次查看
Gizzzmo
Contributor I
This protection works if the code is executed from the flash ? from the ram ?

If i disable the protection will the interrupt vector table still be write protected ?

Thx
0 项奖励
回复

873 次查看
rhinoceroshead
Contributor I
This protection works regardless of where code is being executed from.  If you disable this protection, the interrupt vector table is NOT write protected and can be programmed using the Flash programming algorithm for that particular device.
0 项奖励
回复

873 次查看
Gizzzmo
Contributor I
To be more accurate, i want to know what can't i do in a protected area.
0 项奖励
回复