On the mc9s12hy64 ,The flash address from 0xFE00 to FFFF, when I erase this page ,the MCU is Locked

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

On the mc9s12hy64 ,The flash address from 0xFE00 to FFFF, when I erase this page ,the MCU is Locked

1,174件の閲覧回数
hongjianzhang
Contributor III

I want to develop a bootloader ,I want to update the entry address of the app, but when I erase the address of this page, the MCU will be locked, can this page be erased safely?  

ラベル(1)
タグ(3)
0 件の賞賛
返信
2 返答(返信)

975件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

Hi,

It is absolutely normal behavior. The addresses described in data sheet at Table 15-3. Flash Configuration Field shows that 3_FF0C contains flash configuration field. The field is copied to FSEC register during reset. So if you erase this address to FF then you set security of the MCU. You should immediately rewrite the flash field do unsecured state before reset. Note that there is a bootloader you can use AN4258 for your purposes.

http://www.nxp.com/assets/documents/data/en/application-notes/AN4258.pdf

SW files

http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4258SW.zip

BTW; It is not standard and suitable approach to erase last sectors of the flash because there could be affected reset vector.

Best regards,

Ladislav

0 件の賞賛
返信

975件の閲覧回数
hongjianzhang
Contributor III

Thank you for your advice, I'll try to use it

0 件の賞賛
返信