DSPRelated.com
Forums

DSP/BIOS TSK restart

Started by xzranger June 22, 2011
Dear all,
I want to restart my task (run from the very begining of my task) after rcv some HWI when my task is running.

Which API should I use? Or I have to delete in my HWI ISR and creat the same task again?

I am new to DSP/BIOS , and I use DM3730 with BIOS V5 under CCS V4.2.

Best regards!
Might I ask what event is generating the HWI ?

It seems to me that there might be a design issue if HWI is being generated
while task is still actively processing ie not blocked by a SEM_pend() call.

I was trying to convey below that the entire processing that the task implements
should be enclosed in the while(1) loop. So, in effect, when SEM_pend() succeeds
the task processing is run "from the start".

________________________________
From: xzranger
To: Andrew Elder
Cc: c...
Sent: Fri, June 24, 2011 6:08:32 AM
Subject: Re:Re: [c6x] DSP/BIOS TSK restart

Dear Andrew,
If INTR comes when task is processing(in "code" part), it will premmpt the
task, after HWI finish, the task will continue processing.
But I want it run from the very beginning of the task(may be "while(1)" or
"SEM_pend(&some_hwi_sem)").
Is it possible?
Best regards!

At 2011-06-22 23:10:30,"Andrew Elder" wrote:

>I would put a
>while (1) {
> SEM_pend(&some_hwi_sem);
> code
>}
>loop in the task, then
>
>SEM_post(&some_hwi_sem);
>
>from within the HWI.
________________________________
From: xzranger
>To: c...
>Sent: Wed, June 22, 2011 8:05:31 AM
>Subject: [c6x] DSP/BIOS TSK restart
>
>
>Dear all,
>I want to restart my task (run from the very begining of my task) after rcv some
>HWI when my task is running.
>
>Which API should I use? Or I have to delete in my HWI ISR and creat the same
>task again?
>I am new to DSP/BIOS , and I use DM3730 with BIOS V5 under CCS V4.2.
>
>Best regards!