1973172_en-US

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

1973172_en-US

1973172_en-US

S32K344 RTD5.0 trigger UsageFault when D_CACHE Enabled

Hi there,

I created a Uart project using RTD5.0, If D_CACHE is enabled, and called Lpuart_Uart_Ip_AsyncReceive() before send. It will trigger UsageFault.

UsageFault.jpg

If i undefined the D_CACHE_ENABLE Macro, It works fine.

or,

If i comment Lpuart_Uart_Ip_AsyncReceive() , the uart can send data normally, but can not receive any data now.

ss.jpg


so, How should I solve this problem?

Thanks!

Here is my S32DS 3.5 with RTD 5.0 project.


回复: S32K344 RTD5.0 trigger UsageFault when D_CACHE Enabled

The root cause of this problem has been found. the thread stack is too small caused the context to be corrupted.

回复: S32K344 RTD5.0 trigger UsageFault when D_CACHE Enabled

here is my project.


Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 04:11 PM
Updated by: