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.
6 years, 2 months ago.
CAN support for this board
Hi everyone. I was wondering if the MBED library supports CAN on this board as well. Thanks
Question relating to:
2 Answers
6 years, 2 months ago.
Hello Bruno,
According to the info in the files below it seems that mbed os-5.10.1 supports CAN for the NUCLEO-L432KC board:
https://github.com/ARMmbed/mbed-os/blob/master/targets/targets.json
https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC/PeripheralNames.h
https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC/PeripheralPins.c
However, be aware that an additional CAN transmitter (as for example MCP2551) is needed (like for many other mbed boards) to connect the on-chip CAN controller to a CAN bus.
6 years, 2 months ago.
@Zoltan Hudak
The MCP2551 is an outdated 5v transceiver and not recommended for new designs (As stated by Microchip) I had some prior problems with it functioning abnormally.
Recommend going with the TI SN65HVD230 instead. Haven't had a problem with this chip yet.
@Bruno
What Zoltan said is true, it has CAN TX/RX on Pin D2 / D10 respectively but will need a transceiver to function properly. Recommend using a TI SN64HVD230 with a SOIC-8 breakout board.
Good luck!