/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / systick & App handler call freq

Username:     
Password:     
             

Forum

# 1   2010-05-26 15:48:17 systick & App handler call freq

diabolo38
Member
Registered: 2010-03-12
Posts: 50

systick & App handler call freq

On the stm32-Primers2 manual
4.2.4 Periodic timer2 interrupt
value of 3 doc say 1.5KHz systick freq i do mesure 66ms period =>15Hz
value of 4 doc say 2KHz systick freq i do mesure 50ms period =>20Hz

ther's basicaly a /100 ratio is this any normal ? does circle only call the handler once every 100 systick ?

Offline

 

# 2   2010-05-26 17:46:24 systick & App handler call freq

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: systick & App handler call freq

Hm. Lets see...

Here it is (menu.c, line 74):

Code:

s32 Appli_Divider = MENU_DIVIDER;

Which is (menu.c, line 32):

Code:

#define MENU_DIVIDER    100

So i guess you're right

Last edited by ntrf.zns (2010-05-26 17:47:38)

Offline

 

# 3   2010-05-26 19:11:52 systick & App handler call freq

diabolo38
Member
Registered: 2010-03-12
Posts: 50

Re: systick & App handler call freq

You get it wink  i 've been looking at the systick  programming and the scheduler source but things where ok there  (despite system freq is set to be 8MHz with /8  precaler it get rigts for 64MHz CLK cpu freq)

So the manual is confusing and wrong :

STM32-Primer2 User Manual- 4.2.3 Application scheduler  :

Once an application is run (usually through a menu selection), CircleOS will first call an initialization
routine for the application, then will repeatedly call the application handler$1

i'll have to fix this 20Hz is definitively to slow for my application handler need at least 50Hz thanks for getting me the file and line wink

Offline

 

# 4   2010-05-26 19:38:25 systick & App handler call freq

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: systick & App handler call freq

You can register your own systick-level handler and register it with UTIL_SetSchHandler. Thats if you do care about compatibility.

Offline

 

# 5   2010-05-26 20:58:32 systick & App handler call freq

diabolo38
Member
Registered: 2010-03-12
Posts: 50

Re: systick & App handler call freq

Oh yes it will be a better way,  it leave  menu stuff runnng  at a lower rate, 
but as i did already changed os for lcd w/o fsmc (i2c on ext con) , fs for create dir , about to disable audio record/playback  (spi on  ext-connector)  keep dma to over stuff mems will be not used and likely shutdown as well  ... So i definitively don't care much about full compatibility.

Last edited by diabolo38 (2010-05-26 21:01:02)

Offline

 

Board footer