How to Configure fifo bytes in s32k144 CAN UDS Bootloader

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

How to Configure fifo bytes in s32k144 CAN UDS Bootloader

873 Views
y_rohit
Contributor I

Hi,

Following code i took from "multi_cyc_fifo.h" file in S32K144 UDS CAN Bootloader.

"""

#define FIFO_NUM (3u)

#define TOTAL_FIFO_BYTES (500u+99u)

"""

My question is that , from where did the value (500u + 99u) come??

What is the calculation to find TOTAL_FIFO_BYTES??

Thanks

 

 

0 Kudos
Reply
1 Reply

855 Views
nxf10035
NXP Employee
NXP Employee

Hi,

     #define FIFO_NUM (3u)

     #define TOTAL_FIFO_BYTES (500u+99u)

    The FIFO_NUM is the max FIFO channels. The TOTAL_FIFO_BYTES is the total size for the FIFO. The size including max message data size + manage header data. It means that:

TOTAL_FIFO_BYTES = FIFO_NUM * (manage header data) + every FIFO channels max data length

 

Best Regards!

0 Kudos
Reply