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
in flowcode is
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
STM32F446 wrong internal CAN RX/TX pins
-
- Posts: 7
- http://meble-kuchenne.info.pl
- Joined: Sun Dec 13, 2020 9:15 pm
- Has thanked: 1 time
- Been thanked: 3 times
-
- Matrix Staff
- Posts: 1753
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 445 times
- Been thanked: 605 times
Re: STM32F446 wrong internal CAN RX/TX pins
Hello,
Many thanks for letting us know, hopefully that is now sorted for you via the Help -> Library Updates.
Many thanks for letting us know, hopefully that is now sorted for you via the Help -> Library Updates.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- 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
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. 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
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. 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 67 times
-
- 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
Please sorry my mistake PLLM was set wrong, now when I set it to PLLM = /10 everything looks ok
-
- Matrix Staff
- Posts: 1753
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 445 times
- Been thanked: 605 times
Re: STM32F446 wrong internal CAN RX/TX pins
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel