BAF configuration

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

BAF configuration

2,295 次查看
vladstoica
Contributor III

Hello,

 

I am making a firmware update in flash memory of MPC5748G, and I am writing in a different sector a new startup code, text code, etc. I want to modify the BAF configuration so after a reset it will start from the new sector and not from the old one. What registers should I modify for that?

 

Thanks,

 

Vlad

标签 (1)
标记 (3)
0 项奖励
回复
3 回复数

2,106 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

I think this question has been already answered in this thread.

BAF configuration

Regards,

Martin

0 项奖励
回复

2,106 次查看
vladstoica
Contributor III

Hello,

Thank you. Also is there a way in wich I could reset the board from code (let's say from phase 1 or 2) ?

Thanks,

Vlad

0 项奖励
回复

2,106 次查看
martin_kovar
NXP Employee
NXP Employee

Hi Vlad,

use this code to do software functional reset:

ME.MCTL.R = 0x00005AF0;

ME.MCTL.R = 0x0000A50F;

Also look at the SS_SOFT_FUNC bit in FESS register in RGM module, which determines if software reset will be short (PHASE1 and PHASE2 are skipped) or long (reset starts from PHASE1).

Regards,

Martin

0 项奖励
回复