NXP S32K1XX busoff related issue

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

NXP S32K1XX busoff related issue

926 Views
Tomzhang1
Contributor I

   I met a question,  when  S32K118  ECU enter busoff interrupt , I want to clear mesage buffer in flexcan.

I tried some function , such as FLEXCAN_DRV_AbortTransfer and FLEXCAN_ClearRAM. Such action will cause reset, and busoff cannot go on. If I don't clear the buffer. After bus off recover, flexcan will send unintended frame which  influence  judgement of busoff recovery time.

  So could you provide a useful interface function which can clear message buffer.

  Thank you very much!

 

0 Kudos
Reply
1 Reply

894 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Tomzhang1

I have already repplied to you another of your same topic.

you can use FLEXCAN_DRV_Deinit,then -> FLEXCAN_DRV_Init,the bus off count is incremented by one,and the time base for fast and slow recovery is adjusted according to the bus off count.

0 Kudos
Reply