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