Reply by Brad Griffis September 13, 20052005-09-13
Start out by putting a hardware breakpoint at address 0x3F7FF6.  Then do 
Debug -> Reset followed by Debug -> Run.  Does it get to the hardware 
breakpoint?  If not, your bootmodes are not set up correctly.  If it does 
get there try doing Debug -> Step Into and see where it goes.  Try a few of 
those and you should be able to see where it goes into the weeds.

Brad

"Ajay" <ajaydsouza@gmail.com> wrote in message 
news:1126590361.075254.203790@o13g2000cwo.googlegroups.com...
>I forgot to mention that I have set JP7 on the EzDSP board to 1-2 as > said in the Ezdsp technical reference doc to make it "Jump to Flash" >
Reply by Ajay September 13, 20052005-09-13
I forgot to mention that I have set JP7 on the EzDSP board to 1-2 as
said in the Ezdsp technical reference doc to make it "Jump to Flash"

Reply by Ajay September 13, 20052005-09-13
Additionally, when I do Restart, it goes to _c_int00 as I assume it
should.

However, it doesn't run.

My intention is to run the ezDSP as an independent system, disconnected
from the PC.

Is there something I am missing?

Reply by Ajay September 13, 20052005-09-13
At address 0x3F7FF6, I have 0x007F

In Disassembly window I have
3F7FF6 007F LB      wd_disable

Lastly in CodeStartBranch.asm,

>*********************************************************************** >* File: CodeStartBranch.asm >* Devices: TMS320F2812, TMS320F2811, TMS320F2810 >* Author: David M. Alter, Texas Instruments Inc. >* History: >* 09/08/03 - original (D. Alter) >***********************************************************************
>WD_DISABLE .set 1 ;set to 1 to disable WD, else set to 0
> .ref _c_int00
>*********************************************************************** >* Function: codestart section >* >* Description: Branch to code starting point >*********************************************************************** > .sect "codestart"
> .if WD_DISABLE == 1 > LB wd_disable ;Branch to watchdog disable code > .else > LB _c_int00 ;Branch to start of boot.asm in RTS library > .endif
>;end codestart section
>*********************************************************************** >* Function: wd_disable >* >* Description: Disables the watchdog timer >*********************************************************************** > .if WD_DISABLE == 1
> .text >wd_disable: > EALLOW ;Enable EALLOW protected register access > MOVZ DP, #7029h>>6 ;Set data page for WDCR register > MOV @7029h, #0068h ;Set WDDIS bit in WDCR to disable WD > EDIS ;Disable EALLOW protected register access > LB _c_int00 ;Branch to start of boot.asm in RTS library
> .endif
>;end wd_disable >***********************************************************************
> .end ; end of file CodeStartBranch.asm
Brad Griffis wrote:
> What is at address 0x3F7FF6? Open a memory window and have a look. > >
Reply by Brad Griffis September 12, 20052005-09-12
What is at address 0x3F7FF6?  Open a memory window and have a look.


"Ajay" <ajaydsouza@gmail.com> wrote in message 
news:1126516788.627335.226240@g14g2000cwa.googlegroups.com...
>I am using TI's CodeStartBranch.asm file itself with no modifications. > > I have only modified the C Code of the Example file. > > I have the same problem described above with the sample flash code > given by TI. > > I need to do Debug > Reset CPU and Debug > Restart and it goes to main > and I can run the flash program. It too doesn't autostart. > > Is it just me :( >
Reply by Ajay September 12, 20052005-09-12
I am using TI's CodeStartBranch.asm file itself with no modifications.

I have only modified the C Code of the Example file.

I have the same problem described above with the sample flash code
given by TI.

I need to do Debug > Reset CPU and Debug > Restart and it goes to main
and I can run the flash program. It too doesn't autostart.

Is it just me :(

Reply by Brad Griffis September 10, 20052005-09-10
"Ajay" <ajaydsouza@gmail.com> wrote in message 
news:1126245339.925826.61050@z14g2000cwz.googlegroups.com...
>I would just like to correct what I wrote above. > > On further testing I find that I can do a Debug > Reset CPU and Debug > > Restart and it goes to main and I can run the program. > > I would like the program to begin automatically as a seperate embedded > unit without me using CCS. > > How do I do this? >
It sounds like your problem is that you don't have anything programmed into address 0x3F7FF6. When you do the "boot from flash" mode the DSP jumps from the boot ROM to address 0x3F7FF6 and expects a jump to _c_int00 instruction to be there. Take a look at the CodeStartBranch file. It should have that jump instruction. It should also have a pragma or assembly directive telling the linker to put that in its own section. Check your linker command file and make sure that section is being assigned to address 0x3F7FF6 so that your branch instruction gets placed there. If you look at the example code from TI you'll notice they're doing exactly what I'm describing and this is probably the missing thing. Brad
Reply by Ajay September 9, 20052005-09-09
I would just like to correct what I wrote above.

On further testing I find that I can do a Debug > Reset CPU and Debug >
Restart and it goes to main and I can run the program.

I would like the program to begin automatically as a seperate embedded
unit without me using CCS.

How do I do this?

Reply by Ajay September 9, 20052005-09-09
Thanks.

I have also found that for some reason my code doesn't seem to run.

The example flash program in the C++ Headers and Code from TI website
seems to load correctly.

The variables get initialized but when I run it via CCS 2.2 the
interrupts do not seem to occur.
Additionally if I shut down EzDSP and then restart it with jumper sent
to Flash mode, then when I run disassembly all I see is TRAP0 for all
the locations.

Any solution for this or am I doing something wrong.

I even tried using SDFlash to download to the DSP

Reply by Brad Griffis September 8, 20052005-09-08
Just click the "do not show this again" box and forget about it.

Brad

"Ajay" <ajaydsouza@gmail.com> wrote in message 
news:1126166257.706589.302010@g14g2000cwa.googlegroups.com...
> What exactly is this file? > > I tried using the OnChip Flash Programmer for CCS 2.2 with the EzDSP > for programming the flash and it throws up this error: > > "Code Composer could not locate: > FlashAPIInterface.c > Would you like to browse for it?" > > > I have no clue where to find this file. Any ideas? >