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
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!