Forums

ezdsp 2808

Started by sr_gamer July 23, 2009
I'm trying to put the ultimate simple example on an ezdsp2808 and I'm clearly missing something.

I've got printer.c:
#include
void main(void)
{ printf( "PROGRAM COMPLETE!" ); }

I've got rts2800_ml.lib

and I've got RAM_CMD.cmd:

-c
-stack 400
-heap 400

-e c_int00

MEMORY
{
PAGE 0 : PROG(R) : origin = 0x3EC000, length = 0x2000
PAGE 0 : BOOT(R) : origin = 0x3FF000, length = 0xFC0
/*PAGE 0 : RESET(R) : origin = 0x3FFFC0, length = 0x2*/
PAGE 0 : VECTORS(R) : origin = 0x3FFFC2, length = 0x3E

/*PAGE 0 : L0L1RAM(RW) : origin = 0x3F8000, length = 0x2000*/
PAGE 1 : M0RAM(RW) : origin = 0x000000, length = 0x400
PAGE 1 : M1RAM(RW) : origin = 0x000400, length = 0x400
PAGE 1 : L0L1RAM(RW) : origin = 0x008000, length = 0x2000
PAGE 0 : H0RAM(RW) : origin = 0x00A000, length = 0x2000
}

SECTIONS
{
.intvecs : > M0RAM, PAGE = 1
/* 22-bit program sections */
.reset : > H0RAM, PAGE = 0
.vectors : > VECTORS, PAGE = 0

/*.pinit: load = PROG
.text: load = PROG
.cinit: load = PROG*/
.pinit : > H0RAM, PAGE = 0
.text : > H0RAM, PAGE = 0
.cinit : > H0RAM, PAGE = 0

/* 16-Bit data sections */
.rtdx_text : > H0RAM, PAGE = 0
.rtdx_data : > L0L1RAM, PAGE = 1
.const : > L0L1RAM, PAGE = 1
.bss : > L0L1RAM, PAGE = 1
.stack : > M1RAM, PAGE = 1
.sysmem : > M0RAM, PAGE = 1
.cio : > L0L1RAM, PAGE = 1

/* 32-bit data sections */
.ebss : > L0L1RAM, PAGE = 1
.econst : > L0L1RAM, PAGE = 1
.esysmem : > H0RAM, PAGE = 0
}

It compiles with zero complaints, but when I do a flash (RAM only, OSCCLK: 20 CLKINDIV: /2 PLLCR Value: 10) I get:

Trouble Setting Breakpoint with the Action "Process CIO" at 0xb675: Error 0x00000008/-1076 Error during: Break Point, Cannot set/verify breakpoint at 0x0000B675
Trouble Setting Breakpoint with the Action "Terminate Program Execution" at 0xa072: Error 0x00000008/-1076 Error during: Break Point, Cannot set/verify breakpoint at 0x0000A072
Trouble Removing Breakpoint with the Action "Process CIO" at 0xb675: Error 0x00000008/-2044 Error during: Break Point, No breakpoint at 0x0000B675
Trouble Removing Breakpoint with the Action "Terminate Program Execution" at 0xa072: Error 0x00000008/-2044 Error during: Break Point, No breakpoint at 0x0000A072
Trouble Setting Breakpoint with the Action "Terminate Program Execution" at 0xa072: Error 0x00000008/-1076 Error during: Break Point, Cannot set/verify breakpoint at 0x0000A072
Breakpoint Manager: Retrying with a Legacy Hardware breakpoint
Trouble Setting Breakpoint with the Action "Process CIO" at 0xb675: Error 0x00000008/-1076 Error during: Break Point, Cannot set/verify breakpoint at 0x0000B675
Breakpoint Manager: Retrying with a Legacy Hardware breakpoint
Running it (obviously?) doesn't work. I suspect I'm missing something pretty basic, so I'm soliciting suggestions.

Thanks!

_____________________________________