2020-12-14 06:37 AM
I'm getting started with the CAN controller on the STM32F105. One of the first issues I'm running into is that the HAL_CAN_Init() function returns an error. It seems to time out while waiting for CAN_MSR_SLAK to be cleared. Where can I find more information about this?
Note:
Solved! Go to Solution.
2020-12-16 05:24 AM
Thanks Bouraoui. It turns out that the CAN RX and TX ports were mapped to the wrong GPIOs.
Regards,
Guy.
2020-12-14 07:47 AM
Hi @GEsch.1
To be sure regarding GPIO configuration, peripherals clock gating... You can refer to CAN example available on STM32CubeF1 firmware package via this path STM32Cube_FW_F1_V1.8.0\Projects\STM3210E_EVAL\Examples\CAN\CAN_Networking
Bouraoui
2020-12-14 10:32 AM
To my knowledge, Can init needs an ack from another device on the bus to succeed.
2020-12-16 05:24 AM
Thanks Bouraoui. It turns out that the CAN RX and TX ports were mapped to the wrong GPIOs.
Regards,
Guy.