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.

FLASH Programming on C6748 DSP

Other Parts Discussed in Thread: TMS320C6748

Hi - I have a question regarding programming an SPI boot-FLASH on a C6000 (TMS320C6748) device.

Our current process involves changing one of the boot select switches prior to using SPIWriter to load a new image into the FLASH as shown below:

FLASH loading steps:

1. Set BOOT Mode to anything but SPI(1)

2. Power on

3. start CCS

4. Enter the debugger and load SPIWriter. 

5. Select the new .bin file

6. Success -> power off, change the BOOT Mode back to SPI(1), Power ON... good to go.

We are now in a position where the boot switch is not accessible and I am unable to load the FLASH.

I would have thought that doing a CPU_Reset or System_Reset from CCS would allow SPIWriter to work but it does not, it fails on erase as if the DSP was not allowing access to the BOOT device.

My question is - is there away around the boot mode switch that I can use to allow access to the FLASH?

Thanks

Kevin.

  • Hi,
    What board are you using ?
    Is that EVM board or custom ?
    If its custom, then try to do the same on EVM board too.

    There are two ways to flash the binaries into flash:

    1) Through CCS as you are using now.

    Typically we have to set boot settings to "No boot or emulation" to connect CCS.
    i)Set to "no boot mode"
    ii)Run the "SPIWirter code" into CCS and flash the binaries.
    iii)Set bootmode to SPI.

    2) Through SFH tool (Serial flash utility)
    Please refer to the following TI wiki page.

    processors.wiki.ti.com/.../Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L138
  • Hi kevin,

    I could guess a procedural mistakes on your steps.

    Kevin says said:
    I would have thought that doing a CPU_Reset or System_Reset from CCS would allow SPIWriter to work but it does not, it fails on erase as if the DSP was not allowing access to the BOOT device.

    You have just loaded the spi writer program into a volatile memory ( RAM) and executed it. You have not flashed the SPI writer binary into any of the non-volatile memories of the target.  After CPU_reset/system reset, you cannot expect the SPI writer program still residing in the memory.... you cannot execute it.

    Instead you can load the SPI writer program one more time in the CCS and execute it to write the bootloader binary into any of the non-volatile memories susch as NAND/SPI/NOR.

    I hope this helps!!

    1. What happens after your step 5? Whether the SPI writer successfully writes the bootloader into flash memories?

    2. Post your screenshot where you face the problem.

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    --------------------------------------------------------------------------------------------------------

  • Thanks Titus, it is a custom board and as I said, using the steps above we have not had any issues. I ended up down loading the FLASH utils again and SPIWriter works as expected now. Loading it into memory and running it works correctly.
    Kevin.
  • Shankari - Thank you for your response. I should have more clear; We did the CPU reset first to stop our embedded code and then loaded SPIWriter.

    Kevin.

    _______________________________

    Kevin McCluskey                  President

    LSF Design, LLC      

  • Hi Kevin,

    Kevin says said:
    My question is - is there away around the boot mode switch that I can use to allow access to the FLASH?

    Yes, using CCS,  you can import NAND writer project to access NAND flash and SPI writer program to access SPI flash.

    We understand that you are able to flash the boot image. Are you able to boot it successfully?

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    --------------------------------------------------------------------------------------------------------

  • Shankari - I am not familiar with the NAND writer project - is that separate from the FLASH utils?

    Yes, booting and run time have always worked fine.

    Kevin.
  • Yes Kevin,

    NAND writer project is separate from the flash utility.

    NAND writer project is the CCS project using which you can import it and build, execute and debug, e.t.c

    In this project, it access the NAND flash memory, erases, read and write to it... So that you can access the NAND flash memory directly.

    For Source code please use this package: "..\ti\C6748_StarterWare_1_20_04_01\tools\flash_writer" - ( NAND flash writer)

    Follow the steps given at

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    --------------------------------------------------------------------------------------------------------