Normal 0 false false false EN-GB X-NONE X-NONE
Hello all,
In short i am currently working on adding DSP link code into an application and i have managed to get everything built and it runs ok, however if the application crashes or is terminated in debugging then i have to reset my board before the DSP link part of my application will work again.
The long version, I am using a beagleboard Xm as my platform and running Angstrom Linux (2.6.32) on it. I am using GDB server and Eclipse IDE on my Ubuntu (10.04 LTS) host machine. What i am doing right now is trying to integrate the message application from the example into my own application.
What i will get is that the first time i run my application everything boots up fine the initialisation calls run ok and DSP link is ready to go. If the code runs through and calls my clean up routine which in turn calls the sample programs clean up routine then everything shuts down just fine and i can run it again. If the application crashes or debugging is terminated then DSP link kicks back at init saying it cannot create a new message queue. The only way i have found to make it work again is to reset the board.
I suspect that the DSP is holding onto handles and thus refusing a new handle with the same name, so i tried that after attaching to PROC that i would call the clean-up routine from the sample code, and then re-open PROC to clean things up but that does not work. If anyone can point me towards an explanation of how to get the DSP to reset to default without powering down the board or offer me some way i can work around this i would greatly appreciate it.
I attach here the output of my program to illustrate the issue
When it works:
Entered MESSAGE_Create ()
Entered MESSAGE_Delete ()
Leaving MESSAGE_Delete ()
Leaving MESSAGE_Create ()
When it does not:
Entered MESSAGE_Create ()
Entered MESSAGE_Delete ()
Assertion failed (IS_VALID_MSGQ (msgqQueue)). File : msgq.c Line : 478
MSGQ_release () failed. Status = [0x8000800b]
Assertion failed (IS_VALID_MSGQ (msgqQueue)). File : msgq.c Line : 329
Leaving MESSAGE_Delete ()
MSGQ_open () failed. Status = [0x80008050]
Leaving MESSAGE_Create ()
Again if anyone can provide any help to me i would really appreciate it.
Many thanks
Robert