DSPRelated.com
Forums

How to run CCS as a simulation tool

Started by maria lobo February 1, 2003


Hello ,
My question is for TMS320LF2407A ,
I am to use the TMS320LF2407A DSP on a custom board. I am using Code
composer studio . I am presently trying to test in simulator mode .
I have gone through the archives of this list and

I still have a few queries : firstly in simulator mode

1. I have set up Code Composer for C2xx simulator .

2. I found the help says that in simulator mode, the memory map is hard
coded, secondly u cannot use the clock to check time taken by delays etc,
thirdly you cannot view peripheral registers .Is this correct ??

3. The simulator uses a hard coded memory values . Does this mean that I do
not make a .cmd linker file for simulator mode.
Following is the actual memory map of the board .So I made an entry in
init.gel as follows

StartUp()
{
GEL_MapOn();
GEL_MapReset();
GEL_MapAdd(0x0000, 0, 0x8000, 1, 1); For program memory from 0x0000 to
0x7FFF
GEL_MapAdd(0x0000, 1, 0x8000, 1, 1); For internal data memory from
0x0000 to 0x7FFF
GEL_MapAdd(0x0000, 2, 0x000c, 1, 1); For I/O memory from 0x00 to 0x0B
ports
}

In the memory map also I tried to add the same values which resulted in 2
entries ...the exising and my entries .
I was able to load my program but when I step ran it after some instructions
I got an error as
:
Can't run target DSP
Error number 2169
Error address 5
Execution error PTI

4. Any place where I can find out the meanings of the error numbers in order
to debug ??

Secondly , ...when using the board ...

1. The board has only one DSP on -board(2407A)so when setting up Code
Composer Studio will it be sufficient to just use the Emulator driver for
C24x and an appropriate .cmd file ??

TIA
Maria