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.

osal_start_timerEx() /event Problem

Other Parts Discussed in Thread: Z-STACK

Hello

I would like to set an event out of an ISR,with a time delay

it works without timeout when i use osal_set_event(

HAL_ISR_FUNCTION( myPort1Isr, P1INT_VECTOR ){

...

...

uint8 err = osal_set_event( sapi_TaskID, MY_HANDLE_ADC_TASTER_EVT );

...

}

 

BUT when i use

uint8 err = osal_start_timerEx(sapi_TaskID, MY_XY_EVT, 25);

instead of 

uint8 err = osal_set_event( sapi_TaskID, MY_XY_EVT );

 

another osal_start_timerEx function in the Programm gets Problem with it and returns NO_TIMER_AVAIL

 

is there a limit of timers? or a limit of timers per taskID ?

is my Heap full... where and how can i check this? Schouldn't it manage the heap itself?

it seams like the salAddTimer( function in the timerEx function could not do the osal_mem_alloc( without failure....

What else Could be the Problem, and how can i fix it?

 

i use the Z-Stack 1.4.3 with the CC2430F128

The Memory usage is(in the .map file of the List Folder):

110 329 bytes of CODE  memory
      18 bytes of DATA  memory (+ 83 absolute )
   7 278 bytes of XDATA memory (+  2 absolute )
     223 bytes of IDATA memory
       8 bits  of BIT   memory

 

Than you for any advice !

Gringo