2021-10-23 6:17 AM - last edited on 2025-10-27 6:55 AM by Andrew Neil
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.
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.
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
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
2021-10-24 4:13 AM