I'm using syslink_2_10_06_28, Linux Kernel V3.0.28 on a Beagle-xM. The problem with debugging DSP code on the DM3730 is that the DSP is held in reset after power up and the ARM processor has to configure the DSP, load DSP code and then release the DSP reset. This is normally done using Syslink using slaveloader which does a ProcMgr_open, ProcMgr_attach, ProcMgr_load and finally ProcMgr_start. The problem is that the debugger cannot attach to the DSP until after the DSP is released from reset which occurs after ProcMgr_start, but this means the code is already running. It would have been so much easier if I could have attached the debugger after ProcMgr_load, set the breakpoint and then start the code with ProcMgr_start. Unfortunately, it is ProcMgr_start that releases the reset on the DSP, so until that occurs, I cannot attach the debugger to the DSP. I would like to add some code to slaveloader that would allow it to place a breakpoint so that the processor would stop at that line after ProcMgr_start but before I have a chance to attach the debugger. Adding conditional loops to make the code loop endlessly until the debugger attaches is dumb as this requires a complete build every time I need a new breakpoint.
So here is my question. Given that Slaveloader has access to almost everything I need (map, code, DSP memory Read/Write, etc) how do I set a breakpoint on the DSP side using code on the ARM processor?
Regards,
John