Posted on May 17, 2011 at 13:13Hi All, I *think* what is happening is that occasionally an external interrupt occurs after global interrupts are disabled and before they are re enabled. Once they are re enabled, although the interrupt source is stil...
Posted on May 17, 2011 at 13:05Cool. I've rewritten the TIM_Prescaler code to read Code: TIM_Prescaler = X - 1; Same for TIM_Period. At least this helps me remember how it works! I wish some of these intricacies were documented in the FWLib doco. Ch...
Posted on May 17, 2011 at 13:05I have my STM32 running at 72 MHz, and APB1 at 36 MHz. I have a PWM output running with the expected output frequency configured as; Code: /* Selects the internal clock for TIM2 */ TIM_InternalClockConfig(TIM2); TIM_...
Posted on May 17, 2011 at 13:05Thanks fastmapper. Your analysis of Figure 7 is different from mine... The diagram says ''If (APB1 prescaler = 1) x1 else x2''. Or is my copy wrong? In code I have; Code: /* HCLK = SYSCLK */ RCC_HCLKConfig(RCC_SYSCLK_...
Posted on May 17, 2011 at 13:02With a little nudge from ST technical support, I solved this mystery. In the FWLib, in CAN_Init() there is a bit of code that looks like; Code: /* Wait the acknowledge */ <BR> <BR> for(WaitAck = 0x400; WaitAck > 0x0; W...