On Nov 20, 2007 12:41 AM, Avais Suhail wrote:
> I am designing a boot loader for a board using
TMS320C6713 . Can help me in
> this regard . How a boot loader programme can be debugged.
1. Write your primary loader [1 Kbytes] as a simple standalone assembly
2. Use a register to point to the additional code that will be copied
into memory. I suggest putting the additional code [secondary loader]
beginning at 0x80000400 for debug [load address = 0x80000400, execute
address = 0x00000400]. This assumes that your loader will execute in
3. Debug everything.
4. When you are ready to Flash it, modify the value that you use to
'point to the secondary loader' so that it will be pointing to the
code in flash - check the docs - I think that flash begins at
The concept is to debug everything in RAM, tweak the address and put
it into flash.
After it is located in flash, you should be able to:
1. Perform CPU-Reset, verify that the PC == 0.
2. Load your symbols
3. From here you should be able to step through the loader or set BPs
in the first 0x400 addresses.
4. To debug the secondary loader, set a BP at the end of the primary
boot loader on the branch that goes to the secondary loader. When you
hit the BP the secondary loader should be in place.
During debug it sometimes helps to initialize memory to a known value.
Hopefully this will get you started.