McNeight / CAN_Library

Multiplatform Arduino library for supporting the native CAN controller on Due (SAM3X) and Teensy 3.1 (K2X) as well as MCP2515 through SPI
Other
95 stars 43 forks source link

can SAM3X8E losing a frame #17

Open autoprog opened 1 year ago

autoprog commented 1 year ago

Hi, I have a problem with losing 1 frame, on SAM3X8E I get packets of 256 frames. problem is the loss of 1 frame (eventually).

receive file ex: read(256)...ok read(256)...ok read(255)...bad <---cause the processing to stop read(256)...ok

tried with con0.init() library I tried direct mode can_init(CAN0, 84000000, bd). send receiver ok, but sometimes miss 1 frame, I use fifio buffer, I tried 2 types (fifo or Queue ).

I thought it might be CAN_BR =00142211, 500k /12xtal

if anyone has any new ideas.

thanks.