How run program automatically for MPC5554 after Reset or Power On

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

How run program automatically for MPC5554 after Reset or Power On

Jump to solution
1,867 Views
Bahus
Contributor I
I work with Wind River Workbench 2.6

I does:
    1. Load program in Internal Flash (0x00004000)
    2. Write RCHW (0x065a) at 0x00004000, because main() placed 0x00004030
    3. Power off
    4. Power on

Program don`t run.
Why?
How work Boot Assist Module Program?
Please help...

P.S
    The Program is correct (running on target by Workbench)
0 Kudos
1 Solution
892 Views
ronco
NXP Employee
NXP Employee
I'm not familiar with using WorkBench but I suspect you can launch the debugger and have the MPC5554 stop at the RESET vector (don't run any initialization code) then read the various registers configured by the Reset Configuration Word data to make sure these registers are indeed getting set properly.  If they are getting set properly, start stepping through your code in flash and see how far you get, but if these registers are not set properly then review your method for programming the RCHW.

View solution in original post

0 Kudos
1 Reply
893 Views
ronco
NXP Employee
NXP Employee
I'm not familiar with using WorkBench but I suspect you can launch the debugger and have the MPC5554 stop at the RESET vector (don't run any initialization code) then read the various registers configured by the Reset Configuration Word data to make sure these registers are indeed getting set properly.  If they are getting set properly, start stepping through your code in flash and see how far you get, but if these registers are not set properly then review your method for programming the RCHW.
0 Kudos