Menu

#9 CANfestival timer

v1.0 (example)
open
nobody
None
3
2025-02-24
2025-02-24
Arathi
No

I am integrating CANfestival stack on STM32 controller.
My system clock is 96Mhz and timer i have configured for 5usecs
//#define MS_TO_TIMEVAL(ms) ((ms)200)
//#define US_TO_TIMEVAL(us) ((us)
1/5)
so with above setting and my heartbeat producer value set to 2sec. it is not working as expected.
heartbeat is produced every ~15ms.
Can someone please help me in getting timer setting proper so that HB works as expeted?
Thanks

Discussion


Log in to post a comment.

MongoDB Logo MongoDB