How do I debug boot kernel on SHARC?
i. Modify the kernel code by placing a jump(pc,0) instruction in the _UserInit section of the code and create the kernel dxe with this code
ii. Now build a loader file with the kernel dxe built in step i.
iii. Flash the code onto your board using a flash programmer. Close VisualDSP++.
iv. Boot the code by pressing reset on the board.
v. Open VisualDSP++ with a new session having the processor in HALT state. You could set the processor state using VDSP++ configurator. Please note that you need to set the processor to HALT state explicitly as the default state for a session is Halt and RESET. To debug booting the processor needs to be in HALT state.
vi. Open the VisualDSP++ session created above. Load symbols from the kernel project. In the disassembly window the program counter must be at the user init section at the jump(pc,0) instruction. Replace the jump(pc,0) with a nop in the disassembly window and you can now step through your kernel as required
Retrieving data ...