Open kfessel opened 1 year ago
it's probably happening due to the 2nd tx mailbox beeing used if the first one is in use but they are send by priority (if 1st has something the second one is delayed)
maybe the is a fifo mode somwhere in that can controler
Description
sending a group of multiple can frames shows a strange packet reordering issue
Steps to reproduce the issue
to
tests/drivers/candev/
$ CAN_DRIVER=MCP2515 BOARD=same54-xpro make flash
into term
CFLAGS +="-DCANDEV_MCP2515_DEFAULT_BITRATE=250000"
Expected results
listening on the can bus
candump can0
I should receive:Actual results
packet 5 and 1 are missing "Failed to send CAN-message!"
packets 6 and 7 and 2 and 3 are mixed up
The issue is very timing dependent a simple puts in between each frame like
puts("frame send")
works around the problem ( may therefor not showup with faster data rates or slower mcu (same54 is used )Versions
current riot/master