This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

system tick setup for 100 Hz interupt

Other Parts Discussed in Thread: CC2538, CC2538-SW

I've been trying to understand how systick works because i need to set up a 100 Hz interrupt timer. I'm using the cc2538EM and SmartRF06 Evaluation Board. Some of the code I'm using is

SysCtrlIOClockSet(SYS_CTRL_SYSDIV_32MH);

SysTickPeriodSet(SysCtrlIOClockGet() / TICKS_PER_SECOND); // Tick per second= 100
SysTickEnable();
SysTickIntEnable();

also when i run and pause it says no source available for 0x13bc. i could really use some clarification with this as far as the ins and outs and how to properly set up. i'm trying to port FAT32 file system from elmchan 

  • Andres,

    Please refer to sys tick IAR project (systick_int.eww) in CC2538 foundation software  : http://www.ti.com/tool/cc2538-sw . It is fairly straightforward to use system ticks : important steps -  set sys tick reload register ( ex: sys clock/100 for 100Hz) , enable sys tick interrupt , enable sys tick

    Saurabh

  • i don't think my systick interrupt is working correctly. when i hover the cursor over:

    IntAltMapEnable(); 

     SysTickIntDisable();

    " Error: cannot load from non primitive location " is displayed in the value  box. i have all the necessary header files in the same project folder as well