haitomatic commented on PR #17161: URL: https://github.com/apache/nuttx/pull/17161#issuecomment-3461292131
@tinnedkarma , after testing, I encounter this weird issue with corrupted frame received from upperhalf. I would say about 10% defection. The CAN ID is always either corrupted to 0x0 or 0xC2008020. I initially tried with netpkt_copyout and current use netpkt_getdata but both have the same issue. ``` saluki> ifup can0 ifup can0...OK saluki> cansend can0 123#deadbeef [CPU2] mpfs_transmit: TX Frame: ID=0x123, DLC=4 [CPU2] mpfs_transmit: TX Debug: cf.can_id=0x123, msg_id=0x48C0000, shifted=0x24600000, DLC=4 [CPU2] mpfs_transmit: TX HW Write: addr=0x2010C020, ID_reg=0x24600000, data_high=0xDEADBEEF, data_low=0x0 [CPU0] mpfs_transmit: Sending CAN message (ID: 0x123, DLC: 4) via buffer 0 saluki> saluki> saluki> saluki> saluki> saluki> cansend can0 123#deadbeef [CPU0] mpfs_transmit: TX Frame: ID=0x0, DLC=0 [CPU0] mpfs_transmit: TX Debug: cf.can_id=0x0, msg_id=0x0, shifted=0x0, DLC=0 [CPU0] mpfs_transmit: TX HW Write: addr=0x2010C020, ID_reg=0x0, data_high=0x0, data_low=0x0 [CPU1] mpfs_transmit: Sending CAN message (ID: 0x0, DLC: 0) via buffer 0 saluki> saluki> saluki> cansend can0 123#deadbeef [CPU1] mpfs_transmit: TX Frame: ID=0x123, DLC=4 [CPU1] mpfs_transmit: TX Debug: cf.can_id=0x123, msg_id=0x48C0000, shifted=0x24600000, DLC=4 [CPU2] mpfs_transmit: TX HW Write: addr=0x2010C020, ID_reg=0x24600000, data_high=0xDEADBEEF, data_low=0x0 [CPU0] mpfs_transmit: Sending CAN message (ID: 0x123, DLC: 4) via buffer 0 saluki> saluki> saluki> cansend can0 123#deadbeef [CPU0] mpfs_transmit: TX Frame: ID=0x123, DLC=4 [CPU0] mpfs_transmit: TX Debug: cf.can_id=0x123, msg_id=0x48C0000, shifted=0x24600000, DLC=4 [CPU1] mpfs_transmit: TX HW Write: addr=0x2010C020, ID_reg=0x24600000, data_high=0xDEADBEEF, data_low=0x0 [CPU0] mpfs_transmit: Sending CAN message (ID: 0x123, DLC: 4) via buffer 0 saluki> saluki> cansend can0 123#deadbeef [CPU0] mpfs_transmit: TX Frame: ID=0x123, DLC=4 [CPU2] mpfs_transmit: TX Debug: cf.can_id=0x123, msg_id=0x48C0000, shifted=0x24600000, DLC=4 [CPU3] mpfs_transmit: TX HW Write: addr=0x2010C020, ID_reg=0x24600000, data_high=0xDEADBEEF, data_low=0x0 [CPU3] mpfs_transmit: Sending CAN message (ID: 0x123, DLC: 4) via buffer 0 ``` <img width="710" height="672" alt="image" src="https://github.com/user-attachments/assets/b13ce31c-84b0-4278-9618-d9367d03ae30" /> -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
