2018-10-27 03:40 PM
I want to use CAN Bus in STM32F042F4 (TSSOP20). In the data sheet it says, CAN_RX on PA11 Pin 17, CAN_TX on PA12 Pin 18.
When trying to configure in CubeMX, CAN function is greyed out and the pinout has not PA11 and PA12. Isn't it possible to use CAN in STM32F042F4 TSSOP20 device? Best regards
Harald
Solved! Go to Solution.
2018-10-27 06:05 PM
in the cube, in the pinout tab, under ' sys ' , you can swap the pins.... to CanTxRx
2018-10-27 04:34 PM
2018-10-27 06:05 PM
in the cube, in the pinout tab, under ' sys ' , you can swap the pins.... to CanTxRx
2018-10-28 05:28 AM
Perfect! That did the job!
2022-09-02 05:09 AM
Update september 02 2022:
To enable the pins PA_11 and PA_12 as CAN RX and TX at the STM32CUBEMX 6.6.1, you can follow these steps:
Go to System core > SYS > Active the box PA11/12 insted of pins PA9/10 > Go to CONNECTIVITY clik at CAN > ACTIVATE.