Skip to content

STM32F1 CAN: Incorrect AF number for PB_8/PB_9 CAN pins #3474

@bcostm

Description

@bcostm

Description


Bug

Target
NUCLEO_F103RB

Toolchain:
ALL

Expected behavior
CAN is working when PB_8/PB_9 pins are used.

Actual behavior
PB_8/PB_9 pins are not connected to the CAN peripheral.


Enhancement

Change the AF number to 10 instead of 1 on PB_8/PB_9 pins in PinMap_CAN_RD/TD tables in PeripheralPins.c file.

Add "case 10" in pin_function() in pinmap.c

See Bill's answer in
https://developer.mbed.org/questions/76094/how-to-use-STM32F103RB-CAN/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions