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.

  • Resolved

RTOS/TMS320C5534: DSP/BIOS HWI for timer1

Intellectual 390 points

Replies: 5

Views: 395

Part Number: TMS320C5534

Tool/software: TI-RTOS

Hello,

I am trying to hook the Timer1 interrupt (of a C55x) to an HWI of DSP/BIOS.

As my system already uses the HW_INT8 for the DMA interrupts, i first  used the same construct but this time with HW_INT4

for the timer interrupt. It didnt work, as if the tconf was not happy with HW_INT4. Then, in some DSP/BIOS doc (refman), i understood

this has to be HW_TINT ..... but this also didnt succeeded. Basically i always get the same tconf error

"cannot assign "fxn' of undefined to timerHwiHandler  (this is my handler).

Note also that, i am under Linux, so cannot use the graphical gconf under windows.

Is there anything special with Timer1 ?

Thanks,

Jacques

  • Hi Jacques,

    Have you ever read these slides?
    Workshop Student Guide PDF
    Workshop Lab Manual PDF

    Regards,

    Hossein

  • In reply to Hossein Forouzani:

    Hi Hossein

    thanks for he reply. No i didn't know about these slides .... I read them just know, unfortunately they are not talking

    at all about C55xx (although a lot still aply and can be inferred) .... and they do not even touch (unless I didn't read well) to

    using the .tcf and tconf manually ..

    But i would say, I would have loved to have this training before starting the project :)

    gds,

    Jacques

  • In reply to Jacques Samoun:

    Hi,
    some more details: I realised that, the C55x there are 3 timers and so, as DSP/BIOS uses timer0, theyr added an additional property to the CLK object, which i used:
    ios.CLK.TIMER1FUNC = prog.extern("timerHWIAsm");

    then I had to write an simple assembler wrapper so i can use a "SEM_post" inside my handler (that's all it is doing).
    So, no more errors, and indeed, the interrupts fires once as expected ... but does not fire again. Thta's probably to do with re-enabling it, or the like.
    However, i noticed that, as soon as I used this TIMER1FUNC property .... then all my runtime is gone (this is an audio app), there there must be side effects sometwhere ...

    Any ideas ?
    Jacques

    PS: Of course, my code is fully initialising the Timer1 registers ....
  • In reply to Jacques Samoun:

    Jacques,
    Please see this previous thread for some guidance on your issue.

    e2e.ti.com/.../379354

    Lali

  • In reply to Lalindra Jayatilleke:

    Ah,

    that's interesting ... this was not documented unfortunately.

    That is solving my issue,

    Jacques

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.