2 years, 4 months ago.

Does this discover board provide CAN Support?

I was looking at the board diagram for the Disco-L476VG board and I couldn't find any pin descriptions for CAN support which is available on the STM32L476VG MCU. I see the pinnames.c file for this target board in the mbed os source tree call out specific pins be used for CAN, however based on the board diagram I don't see those pins even being exposed.

Is CAN operations supported on this discover board?

Thanks, Ajay

Question relating to:

The 32L476GDISCOVERY helps users to develop and share applications with the STM32L4 ultra-low-power microcontrollers.

2 Answers

2 years, 4 months ago.

Hello, STM32L476VG can handle CAN. Basically it is available on this microcontroller.

But the related pins are connected to USB and gyroscope. They are not wired to any connector of the board. This means that you will not be able to use the CAN without any hw modification.

The refer to Peripheralpin.c:

MBED_WEAK const PinMap PinMap_CAN_RD[] = {
    {PB_8 , CAN_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_CAN1)}, // warning: pin used by gyroscope
    {PA_11, CAN_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_CAN1)}, // warning: pin used by USB
    {NC,    NC,    0}
};
 
MBED_WEAK const PinMap PinMap_CAN_TD[] = {
    {PB_9 ,  CAN_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_CAN1)},
    {PA_12,  CAN_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_CAN1)},
    {NC,    NC,    0}
};

Kind regards

Thanks Armelle for your response. So let me get this right, we cannot use the CAN interface unless we make h/w modifications to the board? What about PB_9 and PA_12 based on the peripheralpins.c file?

Thanks, Ajay

posted by Ajay Kashyap 30 Apr 2018
2 years, 4 months ago.

The award-prevailing, move-curricular virtual getting to know service for teachers and scholars that makes each lesson memorable. Supporting the transport of the National Curriculum and the successful integration of digital media into teaching and learning My coursework help UK.

Providing more than 23,000 digital media resources for all topics across basis to Key stage 2, Discovery schooling espresso is a weekly updating, curated mastering carrier that may be used flexibly inside training, to match any teaching fashion.