Skip to main content
samiassaad
Associate III
March 14, 2011
Question

While problem

  • March 14, 2011
  • 13 replies
  • 1766 views
Posted on March 14, 2011 at 19:53

While problem

    This topic has been closed for replies.

    13 replies

    samiassaad
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:27

    Thank you alot Clive 

    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.

    Regards

    samiassaad
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:27

    Thank you alot , please check the attachment.

    Tesla DeLorean
    Guru
    May 17, 2011
    Posted on May 17, 2011 at 14:27

    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);

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..