Stuck when trying to put FCCU into config state

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

Stuck when trying to put FCCU into config state

2,732 Views
jlim
Contributor II

Hi, I am using the MPC5744P microcontroller and Lauterbach for debugging. I am having an issue where FCCU is not able to transition to config state.

 

This happens only when I have the watch window open in TRACE32 to observe a variable and run the program after doing 'in target reset'. I have attached a file that contains my FCCU initialization function.

 

When I read the fault status registers before config state, I get the value 65536 for the  FCCU_NCF_S0 register indicating " System RAMs uncorrectable ECC error "

 

I greatly appreciate any help with this. Thank you.

Original Attachment has been moved to: FCCU_Initialization.c.zip

Labels (1)
Tags (3)
0 Kudos
Reply
6 Replies

2,461 Views
lmonologue
Contributor I

Hi,John

   Do you solve this problem?

0 Kudos
Reply

2,461 Views
jlim
Contributor II

It was due to an MEMU System RAM fault. If I clear the fault by writing 1 to the corresponding bits of the MEMU_ERR_FLAG  register, we can put FCCU in the CONFIG state.
  The  MEMU fault might have to do with the lauterbach debugger reading the variables before running the ram initialization routine.

Hope this helps.

2,461 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello John,

1. Before making FCCU transition to CONFIG state you must have all faults cleared in FCCU.NCFSx registers.

2. As soon as you ask state change to CONFIG the FCCU starts its own watchdog which has very short timeout, therefore it is not possible to debug (step trough) FCCU in CONFIG state. As soon as it expires it Aborts the state.

Would be very nice if you specify at least microcntroller before any discussion starts.

Peter

0 Kudos
Reply

2,461 Views
jlim
Contributor II

Hello Peter, as you can see from my code, I am clearing the fault status registers before putting FCCU in CONFIG state. It aborts even if I am not debugging or stepping through the FCCU code.

I have mentioned the microcontroller(MPC5744P) in my post.

Would the " System RAMs uncorrectable ECC error " fault prevent it from entering config state?

0 Kudos
Reply

2,461 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Yes you are most probably clearing it, but you are not reading NCFSx registers after clearing.

Therefore you cant be sure the status registers are cleared.

use for example

while (NCFSx != 0);

So you will be sure the status registers are cleared.

Any FCCU fault (ECC error for example) can prevent FCCU state change.

Peter

0 Kudos
Reply