BAF configuration

cancel
Showing results for 
Search instead for 
Did you mean: 

BAF configuration

214 Views
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

Labels (1)
0 Kudos
3 Replies

25 Views
NXP Employee
NXP Employee

Hi,

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

BAF configuration

Regards,

Martin

0 Kudos

25 Views
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 Kudos

25 Views
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 Kudos