Hi,
Just i am working on TMS320VC5401 (Beginner in DSP development).
i have hardware which is fully tested and working.Please find attached PSF Schematic of the Hardware.
But when i am try to run my program from (The generated hex file is burn on external 8-bit EPROM) EPROM,
it doesnot work.
can any one me suggest how to initalize external RAM & ROM in CCSV4?
How to check booting mode of DSP externally?
and also please suggest about hex utility cmd file?
the below is the cmd file which i am using please suggest, if any correction required by this file
TEST_CSL_5401.out /* input file */
-i /* select Intel format */
-map DFX_Test.map /* map file for HEX500 */
-o DFX_Test.hex /* output file */
-memwidth 16 /* DSP accesses mem as 8/16-bit */
-romwidth 8 /* physical mem width, 8/16-bit */
-fill 0x0FF
-bootorg 0xE000 /* external memory boot address */
SECTIONS
{
.bss BOOT
vecs BOOT
.stack BOOT
.sysstack BOOT
.sysmem BOOT
.text BOOT
.data BOOT
.cinit BOOT
.const BOOT
.cio BOOT
.switch BOOT
.pinit BOOT
.args BOOT
}
and below is the Link file
-stack 0x400 /* Primary stack size */
MEMORY
{
PAGE 0: /* ---- Unified Program/Data Address Space ---- */
DARAM1 (RWIX) : origin = 0x001000, length = 0x000fff
DARAM2 (RWIX) : origin = 0x002000, length = 0x000fff
RAM_EXT (RWIX) : origin = 0x004000, length = 0x009fff
ROM_EXT (RIX) : origin = 0x00e000, length = 0x000fff
}
SECTIONS
{
.bss :> DARAM1 | DARAM2 PAGE 0 /* Global & static vars */
vecs :> ROM_EXT PAGE 0, align 128 /* Interrupt vectors */
.stack :> DARAM1 | DARAM2 PAGE 0 /* Primary system stack */
.sysstack :> DARAM1 | DARAM2 PAGE 0 /* Secondary system stack */
.sysmem :> DARAM1 | DARAM2 PAGE 0 /* Dynamic memory (malloc) */
.text :> ROM_EXT PAGE 0 /* Code */
.data :> DARAM1 | DARAM2 PAGE 0 /* Initialized vars */
.cinit :> DARAM1 | DARAM2 PAGE 0 /* Auto-initialization tables */
.const :> DARAM1 | DARAM2 PAGE 0 /* Constant data */
.cio :> DARAM1 | DARAM2 PAGE 0 /* C I/O buffers */
.switch :> DARAM1 | DARAM2 PAGE 0 /* Switch statement tables */
.pinit :> DARAM1 | DARAM2 PAGE 0 /* Initialization fn tables */
.args :> DARAM1 | DARAM2 PAGE 0 /* Arguments to main() */
vectors (NOLOAD)
}
and also please suggest me if their any simulator which i can use with CCSV4 for TMS320VC5401 DSP.
Thanks in Adavnce,
Regards,
Ashwin Panchal