Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 10 months ago.
Using CAN with Nucleo-F746ZG
I am attempting to create a CAN controller using a Nucleo-F746ZG with an MCP2551 transceiver. It compiles and executes without issue. However, when I attempt to write a message to the bus, I see what appears to be a valid message on my oscilloscope, but the device I am sending the message to does not respond in any way. In addition, when I attempt to use read(), it tells me that there is a message from a random ID (0x445) whenever I call it, regardless of what the other device on the bus is doing, or even if there aren't any devices on the bus at all. In fact, if I completely disconnect any wiring from the CAN pins on the Nucleo board, it still claims that it is reading a message from 0x445. This issue persists across all 3 of my Nucleo boards.
I am fairly new to using CAN protocol, so there may be some hardware issue that I have neglected. However, I also notice that the mbed API for CAN was only recently enabled for Nucleo boards. Is there still some issue with the API that may be causing what I'm seeing?