STM32F446 wrong internal CAN RX/TX pins

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
mkopitovic
Posts: 7
http://meble-kuchenne.info.pl
Joined: Sun Dec 13, 2020 9:15 pm
Has thanked: 1 time
Been thanked: 3 times

STM32F446 wrong internal CAN RX/TX pins

Post 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
cubeMX.jpg (77.18 KiB) Viewed 1491 times
in flowcode is
flow.jpg
flow.jpg (72.23 KiB) Viewed 1491 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

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: STM32F446 wrong internal CAN RX/TX pins

Post by BenR »

Hello,

Many thanks for letting us know, hopefully that is now sorted for you via the Help -> Library Updates.

mkopitovic
Posts: 7
Joined: Sun Dec 13, 2020 9:15 pm
Has thanked: 1 time
Been thanked: 3 times

Re: STM32F446 wrong internal CAN RX/TX pins

Post by mkopitovic »

Thanks a lot for the quick response and corrections now CHAN tx works perfectly :D :D ,
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
logic2 log.jpg (67 KiB) Viewed 1453 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
Attachments
can RX.fcfx
(16.31 KiB) Downloaded 61 times

mkopitovic
Posts: 7
Joined: Sun Dec 13, 2020 9:15 pm
Has thanked: 1 time
Been thanked: 3 times

Re: STM32F446 wrong internal CAN RX/TX pins

Post by mkopitovic »

Please sorry my mistake PLLM was set wrong, now when I set it to PLLM = /10 everything looks ok

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: STM32F446 wrong internal CAN RX/TX pins

Post 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.

Post Reply