DSPRelated.com
Forums

DSP Booting through PCI

Started by an na February 16, 2005

I am working on DSP TMS 320C6415 chip on OKI evaluation board.I am writing a driver for that. We have a DSP application "pedi.out" which we load through JTAG and our test program internally calls some api's which internally callr driver routines and communicates with pedi.out.

Now we require to load and run this pedi.out file programmatically without JTAG using PCI.We have tried following 2 methods:

Method 1:

1) Do a WarmReset by setting the WARMRST bit in the HDCR (Host to DSP Control Register)

2) Convert the .out file to s-record format. Parsing the s-record file and loading the program at 0h location. ( we confirmed that the data written by the pedi.out through JTAG matches that written by our s-record parser.) In this case the .out file ( vector and program) are loaded to IRAM.

3) Interrupt the DSP by setting the DSPINT bit in HDCR register.

We also tried doing the warmrest after copying the .out file but that also didn't help. we also eliminated(bec Dsp is under Jtag control) steps 1 & 3 and after loading the program, did a hardware reset without opening CCS. This also didn't help.

Method 2:

We have some tools given from OKI guys and hex6x tool from TI.

1) We converted .out file to 2 bin files using the bat file with following commands:

Cov_o_i pedi.out

hex6x hex_temp.cmd > hex.log

HexToBin pedi.i0 >> hex.log

Chk_Hash dspformat_1M.bin

copy dspformat_1K.bin dsp-vect.bin

copy dspformat_1M.bin dsp-prog.bin

2) Through our driver code:

Load dsp-vect.bin at 0h location (Internal RAM)

Load dsp-prog.bin at 8000-0000h location (SDRAM)

We did a hardware reset after this without opening CCS, but this didn't work.

Can anybody guide me as to what is going wrong?