DSPRelated.com
Forums

FlashAPIInterface.c

Started by Ajay September 8, 2005
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?

>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? > >
There is apparently a bug in CCS2. It has been a little while, but I remember reading something about this in their "known issues" section of the answers database. My best guess is that someone left some debugging information in the windose app. The problem appears to have been rectified in CCS3. This message was sent using the Comp.DSP web interface on www.DSPRelated.com
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? >
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

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?

"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
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 :(

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 :( >
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. > >
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?