How to Increase fifo bytes in S12ZVML12 CAN UDS Bootloader

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to Increase fifo bytes in S12ZVML12 CAN UDS Bootloader

1,307 次查看
MaxC00
Contributor I

while the application is set to receive in transfer data a block of 128 bytes, is it possible increase up to 1024 byte.  

I do this modifications but does not works:

#define TOTAL_FIFO_BYTES (4000u) (was 800u)

#define RX_TP_QUEUE_LEN (1050u) (was 150u)

Is it necessary change some other define?? or is not possible.

Thanks

0 项奖励
回复
2 回复数

1,274 次查看
nxf10035
NXP Employee
NXP Employee

Hi,

    Default bootloader have 4 FIFO channels for transfer data as: Driver --> TP, TP-->UDS, UDS --> TP and TP --> driver. If increase the max received message length, should increase the FIFO channel size driver -- > TP and TP --> UDS. In addition, should modify the max UDS store message length and fls module the max program size.

    Hope this can help you. 

Best regards!

0 项奖励
回复

1,246 次查看
MaxC00
Contributor I

Hi,

thank you for reply, I have tried to increase the FIFO channel size and now the block sent by CAN is received correctly.

Unfortunately the received data are not programmed in the Flash.

Following the code I saw the Flask_app is tuned for a 128 bytes bloks. The received length is cast to a uint8. I think it is necessary a deep review to increase the buffer size over 128 bytes.

Best regards!

0 项奖励
回复