Forums

Urgent : quit from DSP/BIOS

Started by Hamid March 11, 2004
Hi All

I have a DSK6416 board and I have an application including two SWI and
one HWI,
after running the main function and passing the control of algorithm
to the DSP/BIOS, after some time , it gets back to the main function
and I don't understand why?

I have checked for stack overflow and it doesn't seem to be the
problem .

I appreciate any idea.

Regards , Hamid
Hamid wrote:

> Hi All > > I have a DSK6416 board and I have an application including two SWI > and one HWI, > after running the main function and passing the control of > algorithm to the DSP/BIOS, after some time , it gets back to the > main function and I don't understand why? > > I have checked for stack overflow and it doesn't seem to be the > problem . > > I appreciate any idea. > > Regards , Hamid
The task which the DSP/BIOS performs uses registers and/or system flags which might get into a conflict with those the interrupts use. This is even more possible, if the interrupts can nest (interrupt called during another interrupt is serviced). Most critical moments are those during entry and/or exit of an interrupt. If a register and/or flag is modified unexpectedly, and afterwards not adjusted properly or in time, this might result in an unexpected program flow. When I watched such unexpected exits in my experience, this had almost always to do with such a reason. DSP/BIOS and/or RTOS do often have emergency exits which lead to a proper termination if an error occurs. Maybe there's some error variable or another indication which helps to find the reason. Otherwise, careful code reviews might reveal the reason. Bernhard
Dear Bernhard 

Thanks alot for your comments, I 'll go through my code to see if anything is wrong.

Regards , Hamid
hsepehr@yahoo.com (Hamid) wrote:

>Hi All > >I have a DSK6416 board and I have an application including two SWI and >one HWI, >after running the main function and passing the control of algorithm >to the DSP/BIOS, after some time , it gets back to the main function >and I don't understand why? >
I would have guessed some sort of software reset is being caused as you go along, and you end up back in main(), just like startup. Possibly from a write to a bad location, or something of this nature. But it is hard to tell from this point of view. Robert ( modify address for return email ) www.numbersusa.com www.americanpatrol.com
Hamid wrote:

> Hi All > > I have a DSK6416 board and I have an application including two SWI and > one HWI, > after running the main function and passing the control of algorithm > to the DSP/BIOS, after some time , it gets back to the main function > and I don't understand why? > > I have checked for stack overflow and it doesn't seem to be the > problem . > > I appreciate any idea. > > Regards , Hamid
Hi Hamid, I want to buy the same DSK as the one you use, and I would like to know about your opinion on it. Have you been disturbed by the code size limitation of CCS? How do you simulate your code (do you use free trial of CCS)? Generally speaking, what are your feedback about this DSK. I am thinking of it for image processing application. Thanks for your help, Jerome.