2011-03-14 11:53 AM
While problem
2011-05-17 05:27 AM
if(SysTick_Config(SystemCoreClock / 360000) ) // 5ms interrupts
returns an error that cant load it ; any solution for 5ms interrupt? I am using the new library 3.4.
X = 200, You asked the value of X if(SysTick_Config(SystemCoreClock / 200) ) // 5ms interrupts or if(SysTick_Config(360000) ) // 5ms interrupts
2011-05-17 05:27 AM
2011-05-17 05:27 AM
Perhaps your clocks are not as you expect. Would suggest you toggle a GPIO in your SysTick IRQ, and measure that on a scope. Should see a 500 Hz signal (period 2ms, 1ms High, 1ms Low).
Check you input clocks. Check internal clocks and settings. Use MCO pin. Make sure your project has the correct target, and that any model settings are correct. ZIP up a complete project example, and post it as an attachment. Personally I'd use the following construct starttick = systicker; while((systicker - starttick) < 3000);2011-05-17 05:27 AM