How to Increase fifo bytes in S12ZVML12 CAN UDS Bootloader

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

How to Increase fifo bytes in S12ZVML12 CAN UDS Bootloader

1,305 Views
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 Kudos
Reply
2 Replies

1,272 Views
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 Kudos
Reply

1,244 Views
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 Kudos
Reply