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:

Affordable and flexible platform to ease prototyping using a STM32L432KCU6 microcontroller.

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.

Accepted Answer

Thank you very much. I have tested it and it works now. As for transceiver I will use an MCP2561.

I appreciate your time to reply.

posted by Bruno Senzio-Savino 22 Oct 2018
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!

Thank you Jay for useful info.

Best regards, Zoltan

posted by Zoltan Hudak 23 Oct 2018