I would like to know how to add the CAN receive function for CAN_6 in SPC582B Discovery Board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-23 2:43 AM
In the SPC582B Discovery Board (QFP64 package), I need to use CAN_6_RX and CAN_6_TX which are in the uC pin 63 and 64. But when I used the CAN Test Application, I cannot find the CAN Driver related to the CAN_6. How would I program the CAN_6 protocol receive function? I have already done the complete and error-free code for CAN_2 and CAN_1. Hope to hear from you soon.
Solved! Go to Solution.
- Labels:
-
SPC5 Automotive MCUs
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-24 1:49 AM - edited ‎2023-11-20 4:49 AM
Hello ,
You can configure your CAN_6 by using the Pinmap
I think that CAN_6 is configurable from MCAN3 Subsystem 1
cf screenshot
Best regards
Erwan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-24 1:49 AM - edited ‎2023-11-20 4:49 AM
Hello ,
You can configure your CAN_6 by using the Pinmap
I think that CAN_6 is configurable from MCAN3 Subsystem 1
cf screenshot
Best regards
Erwan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-24 3:30 AM
Dear Erwan,
Thank you for the help. I have already done this part and now I'm stuck at the CAN test code. When I test the internal loopback code it's working as the reference manual. But when I try the CAN_2 and CAN_6, CAN_2 is working (receiving and transmitting) finely with the uC pin 52 and 53 with FIFO0 (as the CAN test code). When when I change the rxreceive function (void mcanconf1_rxreceive(uint32_t msgbuf, CANRxFrame crfp)) to the CAN_6 it does not work with the PF2 and PF3 pins in the board. CAN_6 does not give me any CAN frames. But CAN_2 does. I put 250 Kbps as the speed and gave a standard CAN ID and data. Hope you can help me with that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-24 4:55 AM - edited ‎2023-11-20 4:49 AM
Can you also tell me how to enable the following CAND10-CAND20 in the can_lld.c?
