BAF configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BAF configuration

1,254 Views
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

Labels (1)
0 Kudos
3 Replies

1,065 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

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

BAF configuration

Regards,

Martin

0 Kudos

1,065 Views
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 Kudos

1,065 Views
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 Kudos