This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Writing to flash on custom board

Hello,

I have been working with the Spectrum Digital L137/C6747 EVM, but now comes the time to start designing our own custom board.  I have successfully booted from SPI0 on the EVM using the procedure described in http://processors.wiki.ti.com/index.php/Flashing_the_C6747_EVM.  To do this I'm using CCS3.3 and the embedded JTAG -USB interface (J201) on the EVM.  Presumably we'll lose the embedded JTAG on the custom board.  Can I just use a stand-alone emulator (ex XDS510) and a standard JTAG interface (like J4 on the EVM)?  Are there any advantages to programming through the UART instead?  Is there a way to encrypt the program written to the flash?

 

Thanks,

Lori

  • Hi Lori

    If you are planning to do development and debug on your custom board , especially on the DSP side then having a JTAG port with support for XDS510 etc will be good to have.

    UART based i/f is not going to give you the debuggability (IMO) you get using CCS. If you are board space constraints, then I have also seen customers make a daughter card attached to the main board, to bring out the J4 like connector etc.

    You might find this link useful(if you do decide to incorporate support for emulation)

    http://processors.wiki.ti.com/index.php/JTAG_Connectors

    Lopi said:
    Is there a way to encrypt the program written to the flash?

    Unfortunately no, as you would also need to decrypt the program in the flash before loading it to OMAPL1x device. We are currently not supporting any security features on OMAPL137 device family.

    Hope this helps.

    Regards

    Mukul

  • Mukul,

    Thanks for the info.

    Lori

  • As Mukul said you would definitely want the JTAG header there for debug. For simply programming the SPI flash, for example, the UART interface seems to be 2-3x faster than the CCS based SPI-writer.

    Jeff

  • Don't know if this should be a new post...

    In a similar vein, we have a custom board and need to write to the flash via the SPI1 port.

    I am using the spiflash_writer_dsp program with CCS3.3 and have changed the davinci_spi.c code to

    SYS_PINUMX8 = 0x0FFFF000

    SYS_PINMUX8 = 0x10000111

    SYS_PINMUX9 = 0xFFFFFFF0

    SYS_PINMUX9 = 0x00000001

    Still no clock or CS on the flash

    Is there anything else that needs to be changed in that file of elsewhere?

    Thanks you

    Sam