when enable Flexcan enhanced fifo, how not to use restricted MB number in EBTresos

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

when enable Flexcan enhanced fifo, how not to use restricted MB number in EBTresos

1,415 Views
DennyZhang
Contributor III

Hi, NXP Developer team,

I have some questions about enhanced fifo.


Background: 

Using FlexCAN0 on the S32K312, we need to receive 73 extended ID messages and 17 J1939TP messages, and transmit 15 extended ID messages.
The S32K312 provides only 64 Mailboxes (MBs). To ensure data continuity for J1939TP, 17 dedicated MBs are allocated exclusively for them.
This leaves 47 MBs for the remaining messages, of which 41 MBs are used for receiving the 73 extended ID messages, leaving only 6 MBs available for transmission.

Under a 70% CAN bus load during testing, no frame loss was observed on the receive side, but significant frame loss occurred on some transmit messages.
To address the lack of available transmit MBs, Enhanced FIFO was introduced to extend the mailbox capacity.

Ags_0-1746760661667.png

 

Phenomenon:
When Enhanced FIFO is enabled, some Mailboxes (MBs) become unusable. I assigned 25 short-cycle messages to Enhanced FIFO for reception, and the remaining messages were assigned to MBs configured in Full or Basic receive mode. However, some receive messages experienced noticeable frame loss, and transmit frame loss was not improved either.

According to the S32K312_0P09C Errata, the MBs affected by Enhanced FIFO must still be configured because the EB tool requires consecutive numbering of MBs. Therefore, I configured those MBs in Full mode, and set the filter code to 0 and filter mask to 0x1FFFFFFF.

Additionally, I observed that after enabling Enhanced FIFO, the interrupt execution time increased from 30 µs to 40 µs, and I'm not sure if this is related to the frame loss issue.

Ags_3-1746773160276.png

 

Ags_2-1746773125016.png

 

 

Question 1:
When Enhanced FIFO is enabled, how can the restricted Mailboxes be disabled using EB tresos? For example, if these MBs are used for receiving or transmitting, how should they be disabled or excluded from use?

Question 2:
If Enhanced FIFO is not enabled, approximately how many messages can each Mailbox receive?

0 Kudos
Reply
7 Replies

1,343 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) as far as i know ERR052438 will be addressed by RTD in next release (6.0.0).

2) using ID masking/filterring single MB can receive all std or ext messages.

BR, Petr

0 Kudos
Reply

1,340 Views
DennyZhang
Contributor III

hi, PetrS

  Regarding the second question, when I sent 8 extID messages, frame loss occurred during sending. I'm not sure how many messages received or sent can accommodate without frame loss. 

  Looking forward to your reply, thanks.

Ags

0 Kudos
Reply

1,334 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if using single MB for reception of multiple messages then for each message received you need to read data out, otherwise you lost old one. There is no buffering/accomodation on regular MBs.

BR, Petr

0 Kudos
Reply

1,331 Views
DennyZhang
Contributor III
hi,PetrS!
I called the interrupt service function of FLEXCAN in autosar and read the data. Both sending and receiving use one message for multiple messages. Frame loss during sending may be related to the interruption of resource scheduling. Perhaps the mailbox was in a busy state during the sending process, resulting in the sending failure and frame loss.
Ags
0 Kudos
Reply

1,338 Views
DennyZhang
Contributor III

sorry, I missed important information. These eight messages are all in one mailbox.

0 Kudos
Reply

1,328 Views
DennyZhang
Contributor III

this picture list transmit lose number, detail log is below file

Ags_0-1747303396736.png

 

0 Kudos
Reply

1,352 Views
DennyZhang
Contributor III

hi, nxp team, could you help me answer this question.thanks.

0 Kudos
Reply