szafonimateusz-mi opened a new pull request, #16421:
URL: https://github.com/apache/nuttx/pull/16421

   ## Summary
   
   Fix frame reception when CANFD is not enabled and there are many message in 
the RX buffer.
   
   The previous implementation assumed that the size of the data in the RX 
buffer is constant, which is not true. Fortunately, the amount of data in the 
buffer can be easily read from frame->fmt.rwcnt.
   
   ## Impact
   
   fix CAN CTU FD when used in non CANFD mode.
   
   ## Testing
   
   CAN network simulated on host doesn't lose frames:
   - qemu-x86 with canctufd and candump tool
   - qemu-arm and canctufd runs simple CAN node with socketcan
   - arm and canctufd runs simple CAN node with char dev
   - sim runs simple CAN node with socketcan
   - sim runs simple CAN node with char dev
   
   <img width="1921" alt="image" 
src="https://github.com/user-attachments/assets/6b5827f3-f1c4-4a42-bdbb-4611414b471d";
 />
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to