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.

SEM_pend() timeout problem



Hello ,

I am using :

6457dsp

Code Composer Studio 3.3.82.13

Integreted Development 5.98.0.939

Bios 5.41.10.36

Code Generation Tools v6.0.8

I am using a SEM_pend function within a low priority task.

When the task is posted from an HW inttrupt it works just fine.

I want to add a timeout on the pend operation.

If i put '0' as the timeout parameter the function return FALSE as written in the spec.

If I put anything else (not '0') than the function never returns. (even when i put just 1 tick).

There are 2 tasks in this projects and they have switched just fine so the OS tick must be working .

the CLock Manager is active with the following options:

Object Memory = IRAM

CPU Interrupt = HWI_INT14

Timer Selection = Timer 0

Enable CLK Manager = TRUE

Use High Res time for internal timings = TRUE

Enable high resolution timer = TRUE

Specify input clock rate = FALSE

Reset Timer and TIMMODE = TRUE

Timer Mode = 32bit unchained

Microsec/int = 999.9960

Directly Configure on-chip timer register = FALSE

 

The HW interrupt 14 activated the CLK_F_isr

The SW interrupt has KNL_swi which activated _KNL_run.

 

10X Eran.

 

  • Hi,

    Have you confirmed the CLK_F_isr function is running. You can set a breakpoint on the symbol.

    Todd

  • I have put a BK and it is not running.

    Actually the SRIO intterupts have also not been running when i configured them in the .tcf file (graphical configuration). i have used the csl to configure them and hook them with their functions.

     

    It seems that all the interrupts that are automatically configured vie the .tcf file are not running ?!??!?!!?

    I looked at the interrupts registers (IER , IFR) and i saw that the correct events are mapped to the correct interrupt line and the correct IFR bit is "turned on". I also looked at the table which maps the interrupt to the function and i saw it is OK , but still the functions are not called.

  • Eran,

    What is you DSP CPU SPEED (CLKOUT) configured for? (Look on Global Settings->Properties). Is this value really correct?

    Is sounds like the TSKs are running...correct? Could you have disable interrupts accidently (e.g. unmatched HWI_disable/HWI_restore)?

    Todd