SPC5748G MCU stuck problem question.

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

SPC5748G MCU stuck problem question.

2,907 Views
cskwon
Contributor I

Hello everyone,

We are currently installing the product in the field using the SPC5748G.

SPC5748G uses functions such as CAN communication, UART, SDIO, GPIO, and is operated using RTOS.

There are situations in which MCU becomes stuck in some fields.

It operates to reset when an operation error or OS problem occurs in the source code, but when a field check is performed due to a problem, the MCU just stops

The problem is that the RTOS is not even in a suspended state.

MCU's GND is connected to F-G, is there any situation where H/W will become stuck due to external disturbance or noise?

I want to be honest.

thank you

Best Regards

0 Kudos
Reply
7 Replies

2,902 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

From your description I am not able to say where is the issue.

MCU's GND is connected to F-G, is there any situation where H/W will become stuck due to external disturbance or noise?

Sure, almost any situation when you violate datasheet specification will lead to unexpected behavior.

Have a look at RGM FES/DES registers and also FCCU NCFSx content to see the root cause of your issue after it happen.

Best regards,

Peter

0 Kudos
Reply

2,889 Views
cskwon
Contributor I

Thank you for answer.

Problems occur only in the field.

I connected a T32 to solve the problem, but if I connect a T32, the problem does not occur.

If you connect T32 after a problem occurs, you cannot see the internal registers unless you do a System Reset, so it is impossible to check.

Symptom is not reproduced even when viewing data in SCI through FTDI Driver.

After posting the original question, I activated SWT and applied it to the field, but the same problem occurred over the weekend.

Please excuse me.

0 Kudos
Reply

2,886 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

It is common that once the issue occur, FCCU is set to go into alarm state and all FCCU NCFSx as well as RGM FES/DES registers are stored into NVM memory by application.

This way you can always analyze the faults in your system after each reset.

Analyzing fault in your SW after reset is must, I expect you are doing it. Otherwise I cant see how you can have safety system.

But as you say, with connected debugger you are not able to reproduce the issue. So the issue is asynchronous to application. Most probably some interrupts overcome, stuck in loop, some timing issue, or some external event (but this would lead to reset).

Once your device is stuck are you able then attach with debugger? Or the device is permanently in reset?

but when a field check is performed due to a problem, the MCU just stops

What should I imagine under this sentence? It is stuck in reset? Is it running loop? In an exception?

Best regards,
Peter

0 Kudos
Reply

2,883 Views
cskwon
Contributor I

hello

There was a problem in the field today, so I checked it out.

I will check the above question by connecting JTAG additionally.

Let me explain what happened at the site today.

1. When the RESET pin is shorted to GND while the MCU is stuck, the MCU does not reset.

2. I didn't take the T32, so I couldn't see the internal register.

3. All peripheral I/Os connected to SPC5748G were set to LOW.
(I don't know if a problem occurs during booting when I reset by executing the SystemSoftwareReset() function every 24 hours.)

 

//////////////////////////

#define FEATURE_MC_ME_KEY (0x5AF0U)
#define FEATURE_MC_ME_KEY_INV (0xA50FU)

void SystemSoftwareReset(void)
{
MC_ME->MCTL = FEATURE_MC_ME_KEY;
MC_ME->MCTL = MC_ME_MCTL_TARGET_MODE(0x00) | FEATURE_MC_ME_KEY_INV;
}

///////////////////////////

Can you tell me how to check FCCU NCFSx and RGM FES/DES NVM memory as answered above?

I am currently using a T32.

Thank you always.

Best Regards

0 Kudos
Reply

2,877 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Can you tell me how to check FCCU NCFSx and RGM FES/DES NVM memory as answered above?

If you are storing the content of those registers during fault (alarm state of FCCU) then simply read out those values from NVM ( the location where you store them during fault).

Best regards,

Peter

0 Kudos
Reply

2,872 Views
cskwon
Contributor I

hello.

Thank you for answer.

If you are storing the content of those registers during fault (alarm state of FCCU) then simply read out those values from NVM ( the location where you store them during fault).

1. How do I save FCCU's Alarm to NVM?

2. If you have a related example code, please share it.

3. If it is automatically saved in NVM, please let me know which memory address to look at.

thank you

Best regards

0 Kudos
Reply

2,867 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

1. How do I save FCCU's Alarm to NVM?

Hmm, FCCU Alarm is a state of FCCU state machine. You can read more in reference manual : 76.8.2 FSM description

petervlna_0-1658314916222.png

 

2. If you have a related example code, please share it.

Yes, have a look at my AN and examples:

https://community.nxp.com/docs/DOC-329719

3. If it is automatically saved in NVM, please let me know which memory address to look at.

It is on user to store any content he like to any kind of memory. But it is expected that safety relevant content is preserved in NVM by user for fault analyzes. Please consult it with your safety architect / expert.

Best regards,

Peter

0 Kudos
Reply