Problem with freezing DSP for some commands

Status
Not open for further replies.

buenos

Advanced Member level 3
Joined
Oct 24, 2005
Messages
962
Helped
40
Reputation
82
Reaction score
24
Trophy points
1,298
Location
Florida, USA
Activity points
9,143
my DSP is freezing...

Hi!

My problem is:

I use a TMS320F2811 DSP for robot vehicle control. I can send commands for the DSP via RS232 serial port (remote control). It executes the commands usually, but with some commands (3-5 commands from circa 40) it doesn't return to the idle program, it freezes. The serial port intrerpreter function includes a case-switch structure, and it invokes different functions. The serial port interrupt function invokes the interpreter.

I have placed a character sending instruction (function call) at the end of the interpreter, so I can monitor that it executes till its end. Well... it sends back, and executes untill its end, but doesn't return.

The main loop doesn't continue, and the DSP doesn't response to newer commands via serial port.

What can be the solution? what might be the origin of the problem? Is it a stack owerflow?
 

Re: my DSP is freezing...

Hi

Are you using pointer in your code.

If so check yours code for pointer over-run or pointer crash

Also address over-run ,stuck overflow etc


All the best

Bobi
 

my DSP is freezing...

I didn't use pointers.
How can I chech if there is address over-run, or stack overflow? (I have no Jtag debugger)
what is address overrun?

First, it freezed after the serial port interrupt finished. But now, i tried another way: the serial port interrupt receives the command and its parameters, and returnd, after that, the main loop checks if there is any received command (global variable-flag), and if there is, it executes. in this version, the freezing is then.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…