Page 1 of 1
STM32F446 wrong internal CAN RX/TX pins
Posted: Mon May 02, 2022 7:57 pm
by mkopitovic
Dear
it seems to me that on the internal CAN component on the STM32F446RET6 chip CAN1_RX and CAN1_TX have been replaced according to the STM32CubeMX
- cubeMX.jpg (77.18 KiB) Viewed 1528 times
in flowcode is
- flow.jpg (72.23 KiB) Viewed 1528 times
PB8 should be CAN1_Rx
PB9 should be CAN1_Tx
Since Flowcode does not give an option in the drop menu to change, is there is another option to swap RX and TX pins
thanks
Re: STM32F446 wrong internal CAN RX/TX pins
Posted: Wed May 04, 2022 10:07 am
by BenR
Hello,
Many thanks for letting us know, hopefully that is now sorted for you via the Help -> Library Updates.
Re: STM32F446 wrong internal CAN RX/TX pins
Posted: Thu May 05, 2022 2:53 pm
by mkopitovic
Thanks a lot for the quick response and corrections now CHAN tx works perfectly
,
but I can't get anything on RX.
NI-CAN (as a sender) sends a message properly, if I put pin B8 as input I detect the signal, but Can1::CheckRx(0) is always 0.
- logic2 log.jpg (67 KiB) Viewed 1490 times
Looking at Cubemx there is a possibility to enable CAN1 Rx0 and RX 1 interrupt but this possibility does not exist in Flowcode (maybe is interrupt enabled automatically after initialization CAN component I don't know
)
Should there be an interrupt for internal CAN communication similar to Uart or not?
Many thanks
Re: STM32F446 wrong internal CAN RX/TX pins
Posted: Thu May 05, 2022 11:35 pm
by mkopitovic
Please sorry my mistake PLLM was set wrong, now when I set it to PLLM = /10 everything looks ok
Re: STM32F446 wrong internal CAN RX/TX pins
Posted: Fri May 06, 2022 4:27 pm
by BenR
Hello,
Excellent glad it's working for you now many thanks for letting us know.
We can certainly investigate adding a CAN RX interrupt for you if this would be useful.