Forums

Programming Flash via DSP JTAG

Started by lsim...@safeflight.com November 2, 2007
I am preparing to move a project past the TMS320C6713 demo board stage and onto custom hardware. Because the final project requires only a fraction of the capability (complexity) of the demo board, the system has been stripped down to a power supply, DSP, audio codec, and flash memory (for program storage only).

We would like to be able to reprogram the flash memory in-system, and if my understanding is correct, this is currently done on the demo board by a usb interface to the DSP's JTAG port. We have included the JTAG/emulation port on the custom hardware for debug use as per SPRU641's recommendations. However, without an XDS510 (or similar) emulator to connect to the JTAG, I am not sure on the procedure to connect to the system (and then use the flash burn tool). On some other threads (http://www.dsprelated.com/groups/c6x/show/1480.php) it seems that the decision was to either go with the emulator or use a custom app which I'd like to avoid. Unfortunately, I'm not too confident as far as writing a custom app and the emulator is costly for the project.

I am also looking into other flash chips that are easily in-system programmable. I am willing to add another terminal to the board to keep the programming system as simple as possible if necessary. I have not had too much luck finding one that I was certain was compatable with the DSP but will keep searching. I am hoping to reuse as much of the TI libraries and code that was developed for the C6713 demo board as possible.

I would greatly appreciate any comments or suggestions.

Thank you,
Louis
Hello Louis,

This may be more information than you wanted...

On 11/2/07, l...@safeflight.com wrote:
> I am preparing to move a project past the TMS320C6713 demo board stage and onto custom hardware. Because the final project requires only a fraction of the capability (complexity) of the demo board, the system has been stripped down to a power supply, DSP, audio codec, and flash memory (for program storage only).
>
> We would like to be able to reprogram the flash memory in-system, and if my understanding is correct, this is currently done on the demo board by a usb interface to the DSP's JTAG port. We have included the JTAG/emulation port on the custom hardware for debug use as per SPRU641's recommendations. However, without an XDS510 (or similar) emulator to connect to the JTAG, I am not sure on the procedure to connect to the system (and then use the flash burn tool). On some other threads (http://www.dsprelated.com/groups/c6x/show/1480.php) it seems that the decision was to either go with the emulator or use a custom app which I'd like to avoid. Unfortunately, I'm not too confident as far as writing a custom app and the emulator is costly for the project.

With the limited information provided, I will answer the question genericly.
1. If the board is ATE tested, and the ATE has access to all of the
address, data, and control pins, you can program the Flash with the
ATE. [Not used very often from what I have seen].
2. You can load a program, and use the 6713 to program the Flash. The
expensive [in time and money] way to do this is
CCS+Flashburn+emulator. The major obstacle is getting the program
loaded. Usually this is done using either CCS+emulator, special
utility+emulator, or special utility+HPI. An alternate approach that I
have seen is to develop a serial boot loader and add a small connector
to the board. The boot loader has some logic like

if(cablePluggedIn || upperFlashIsBlank)
bootFromSerialPort;
else
executeMyApp;

The Flash devices can be programmed in house or an arrangement made
with a distributor to preprogram them for you.

A somewhat straight forward method is to allow the board to be
configured for HPI or ROM boot and add an HPI connector. You can then
use a DSK or PC parallel port [or ??] to feed the HPI data. You would
have to fab a simple adapter.

Using approaches like these, you would not have to develop very much
special software - mostly implement the programming algorthm of the
6713 and embed a binary version you program image.

I hope that this helps.

mikedunn
>
> I am also looking into other flash chips that are easily in-system programmable. I am willing to add another terminal to the board to keep the programming system as simple as possible if necessary. I have not had too much luck finding one that I was certain was compatable with the DSP but will keep searching. I am hoping to reuse as much of the TI libraries and code that was developed for the C6713 demo board as possible.
>
> I would greatly appreciate any comments or suggestions.
>
> Thank you,
> Louis
>

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php