Senior
June 18, 2018
Question
STM32F042 Is HAL_CAN_ConfigFilter() required?
- June 18, 2018
- 3 replies
- 3247 views
Posted on June 18, 2018 at 23:06
I'm trying to get an interrupt-driven CAN receiver working on a STM32F042K6- but I'm not having much luck.
I'veconfigured the CAN module in CubeMX and the code it generates makes sense to me - and seems to match theinstructions listed inthe User Manual.
However,I've seen some posts here that imply that filtering is required. I want to receive ALL messages, so I didn't bother callingHAL_CAN_ConfigFilter(). But I've since addedthat call - but I'm still not receiving anything.
Can someone help me with a simple interrupt-driven receive example?
I'mattaching a subsetof my code. It uses a callback function to set a flag that my main loop inspects. Can anyone see what I might be doing wrong?
Thanks.
Note: this post was migrated and contained many threaded conversations, some content may be missing.