Posted on May 17, 2011 at 13:59I assumed that I was initializing CAN1 before CAN2. Bad assumption. Turns out that I was initializing CAN2 before CAN1, and before the CAN1 peripheral clock was enabled. Thanks for the reminder.
Posted on May 17, 2011 at 13:58Hi, I use the following code, executed every power-up, to verify that the IWDG is programmed and enabled: /* make sure hardware watchdog is enabled */ option = FLASH_GetUserOptionByte (); if (option & FLASH...
Posted on May 17, 2011 at 13:58I might be missing something here, but I'm not sure how you are mapping TIM4_CH1 to T1. How are you doing this? By default, TIM4_CH1 is mapped to PB6, and TIM4_CH2 is mapped to PB7. My guess is you have to connect th...
Posted on May 17, 2011 at 13:58Hey Michael, I've used the following code before to make a 32-bit capture by counting overflows and avoiding race conditions with the update (overflow) interrupt. Hope it helps. void TIM4_IRQHandler (void) { u32...