i'm using STM32F730 and trying to use CAN in LOOPBACK mode. i'm using HAL_CAN for programming and STM32MXcube for configuration purpose. The transmission is successful (TXOK0=1 and RQCP0=1) but i'm unable to observe any activity in receiver FIFO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-23 6:17 AM
i have attached my code.
i have not configured any filters till now, as i'dont want to use them. is it necessary to configure them for receiver purpose.
plz guide me where i'm wrong. is there any problem with my bit timing. i have used 120ohm resistor at transreciever end.
if i switch to normal mode it results in TXOK0=0 and TERR0=1 and acknowledgement error code (03).
plz guide me, i'm stuck here with no breakthrough.
Solved! Go to Solution.
- Labels:
-
CAN
-
STM32CubeMX
-
STM32F7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-24 4:07 AM
Thanks all,
it was the filter initialization, which i have missed in my code. Basically , it was the FIFO assignment which was required and i have achieved using
"canfilterconfig.FilterFIFOAssignment= CAN_RX_FIFO0;"
Thanks to the following online links, which proved useful
https://www.youtube.com/watch?v=NS3eeZPUDns
and
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-24 4:07 AM
Thanks all,
it was the filter initialization, which i have missed in my code. Basically , it was the FIFO assignment which was required and i have achieved using
"canfilterconfig.FilterFIFOAssignment= CAN_RX_FIFO0;"
Thanks to the following online links, which proved useful
https://www.youtube.com/watch?v=NS3eeZPUDns
and
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-24 4:13 AM
Now i've only one doubt that in normal mode, i'm getting TCOK0=0 and acknowledgement error, after transmission. why TCOK0=0? is it is because of acknowledgement error or transmission failed due to some reasons. i have attached my code for reference
