Jump to content
  • 0

PmodCAN not returning good CAN data


JJ Fenstermaker

Question

We've been testing the PmodCAN transceiver with Particle Argon boards.  We're confident that we have the hardware set up right - loop back mode works flawlessly.  However when we put the device in listen only or receive mode we don't get the data we're expecting off of the CAN bus.  We're using a CAN bus analyzer for validation.  We have the part running at 125 Kbps with a 16 MHz. clock, and we're using the standard MCP_CAN library.  Any ideas as to why our data doesn't match?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Jon,

We're getting good data now but have run into two new issues

We're missing messages (we're using an analyzer to validate the data)

If we try to use a filter in the setup() function we get an assert.  It doesn't assert in the main loop but it doesn't filter data either.

Here's the code - the library and the test code.  Any ideas?

:

CAN_code.7z

Link to comment
Share on other sites

We've narrowed the issue down to a problem with extended messages - when we send them we get unpredictable results - one of the peripherals on the CAN bus powers down our system after we send the message.  We've reached out to the peripheral manufacturer for assistance.  Thanks for your reply!

We also have CAN bus analyzers - everything on the bus looks OK.

John

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...