LPC55S06 CAN: error after several hours of operation

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

LPC55S06 CAN: error after several hours of operation

649 Views
clkunde
Contributor II

Hi friends.

II am working in a project using the follow environment:
- LPC55S06JHI48 MCU
- MCUXpresso IDE v11.7.1 [Build 9221] [2023-03-28]
- SDK_2.x_LPC55S06 v3.10

After several hours of operation (about 10 to 12 hours) an interrupt error happens, as the picture below show.

clkunde_0-1687441500468.png

It seems some pointer is null. To be honest I don't know if the problem is in mcan driver or freertos.

Do you have any idea what could be going on?

Thank you!

0 Kudos
Reply
2 Replies

609 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls check your application code and check where the assert(expr) is located and check the condition expr. In the case, abnormal happens.

BR

XiangJun Rong

 

0 Kudos
Reply

604 Views
clkunde
Contributor II

Hi XiangJun Rong.

Look the last picture again with the stack error.

Now look the picture below with the assert in fsl_assert.c.

clkunde_0-1687784131089.png

failedExpr = 0xa738 "fsl_mcan.c:1315 : NULL != pRxFrame"

My code is simple. A file can_evt.c with the callback implementation

clkunde_1-1687784265767.png

and a file can_rx_task.c with the task tha read the CAN frame

clkunde_2-1687784398193.pngclkunde_3-1687784451096.png

The problem is coming from the CAN interrupt. But like the driver describe, I do not develop any code inside the interrupt. I need to register a callback to get the signals. May be some problem in the SDK driver?

Thanks

0 Kudos
Reply