12 months ago.
Does this Nucleo board provide CAN Support?
I was looking at the board diagram for the Nucleo-L476RG board and I find pins that seem to support CAN, however based on the peripheralpins.c these serve as alternate function pins. I am not sure what that means. We purchased the discover board which has the same STM MCU, but doesn't have the CAN pins exposed on the board. So before buying this board for testing I just want to make sure the CAN functionality is available on the board not just on the MCU STM32L476.
Question relating to:
11 months, 4 weeks ago.
Mbed provides CAN support for this board. As indicated in the pinout pictures and the
PeripheralPins.c file a CAN interface can be setup either at pins PB_8, PB_9 or PA_11, PA_12 (but not both in one program). In mbed this is done simply by creating a CAN object:
CAN myCAN(PB_8, PB_9); // RD pin name, TD pin name //CAN myCAN(PA_11, PA_12); // RD pin name, TD pin name
Then the CAN controller built into the MCU gets configured and connected either to pins PB_8, PB_9 (or PA_11, PA_12). But remember that in order to build a complete CAN node you have to add also a stand alone CAN transceiver (for example an MCP2551 chip) which is neither built into the STM32L476 MCU (neither to other than LPC11C2X series mbed enabled MCUs) nor installed on the board!
For more details have a look at:
To post an answer, please log in.