I'm trying to develop a CAN interface but don't have my boards yet. I have one board with a K66 on it and I was wondering if I can tie CAN0 Tx to CAN1 Rx, and CAN1 Tx to CAN0 Rx and be able to communicate via CAN to each other (CAN1 <--> CAN0). I tried it but when I send from CAN1 to CAN0 (haven't tried it the other way) I see on the scope the same pattern repeating about every 20mS even though I only send once. In the CAN0 interrupt, the interrupt is caused by ESR1 reg STFERR (stuff error) bit, which also keeps repeating, not by a message box interrupt. I'm using the CAN demo code as a base for my testing, so I'm pretty certain both CAN's are being configured properly.
I'm thinking I can't do my testing this way for some reason, but want to verify this one way or another.
Thanks,
Larry
已解决! 转到解答。
Hi Larry DeMuth,
If you want to communicate via CAN to each other (CAN1 <--> CAN0), external CAN transceiver is needed.
Due to there is no CAN transceiver on FRDM-K66F board, the flexcan examples in SDK_2.4.1_FRDM-K66F are in loopback mode.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello
Actually, there is a "cheat" you can use to build a small CAN network.
The physical layer isn't really differential CAN, but for connecting two controllers together it works great. You can't connect it to other genuine CAN networks. You need CAN transceivers for this.
Here is my lab describing this technique: on page 4: needs only a couple of diodes and a resistor.
This usually means the ACK signal is not put on the bus. This is described on page 35 under
Have fun !
Bob Boys
Arm
California
Hi Larry DeMuth,
If you want to communicate via CAN to each other (CAN1 <--> CAN0), external CAN transceiver is needed.
Due to there is no CAN transceiver on FRDM-K66F board, the flexcan examples in SDK_2.4.1_FRDM-K66F are in loopback mode.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------