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.

CCS/TMS320C6748: Cannot flash code to LCDK development board

Part Number: TMS320C6748
Other Parts Discussed in Thread: OMAP-L138

Tool/software: Code Composer Studio

Untitled Document.md

I cannot use Code Composer Studio to flash code to my TMS320C6748 Development Kit (LCDK). The steps that I follow to flash it are as follows:
Initial Setup:

  1. Install the latest FTDI Virtual Com Port drivers (via the Setup Executable here)
  2. Install TeraTerm 4.102 from the manufacturer’s website
  3. Install the latest version of Code Compiler Studio (9.0.0.00018)
  4. Install bios_c6sdk_02_00_00_00_setupwin32.exe from the Micro-SD Card included with the DSP
  5. Install ti_cgt_c6000_7.3.1_setup_win32.exe from the Micro-SD Card included with the DSP

Steps to attempt flash:

  1. Insert Micro-SD card into DSP
  2. Plug Mini-USB cable between USB port on the computer and the UART-USB port on the DSP
  3. Ensured the Dip Switches were in NAND Boot Mode (01110000)
  4. Create a new CCS project with the following settings:
    1. Target: LCDKC6748
    2. Connection: Data Snapshot Viewer
    3. Compiler Version: TI v7.3.1 (the one that came on the Micro-SD Card)
    4. Project Template: Empty Project (with main.c)
  5. if a target configuration file was not generated, create one using the same settings
  6. Compile and flash.

This results in the following error:

C674X_0: Output:    Target Connected.
C674X_0: Output:    ---------------------------------------------
C674X_0: Output:    Memory Map Cleared.
C674X_0: Output:    ---------------------------------------------
C674X_0: Output:    Memory Map Setup Complete.
C674X_0: Output:    ---------------------------------------------
C674X_0: GEL: Error while executing OnTargetConnect(): Cannot read 0x01C10800: data is not present
     at (*((unsigned int *) ((0x01C10000+0x800)+(4*LPSC_num)))&0x1F) [C6748_LCDK.gel:845]
     at PSC0_LPSC_enable(0, 0) [C6748_LCDK.gel:488]
     at PSC_All_On() [C6748_LCDK.gel:243]
     at OnTargetConnect()
C674X_0: Trouble Writing Memory Block at 0x80000800 on Page 0 of Length 0x660: This operation is not supported by this driver
C674X_0: File Loader: Verification failed: Target failed to write 0x80000800
C674X_0: GEL: File: C:\Users\Jolteon\workspace_v9\test1\Debug\test1.out: Load failed.

List of suggested solutions I have tried:

  1. Attempted same steps, but with changes made to the board:
    1. Dip switches in UART mode
    2. Micro SD Card removed
    3. Dip switches in UART mode and Micro-SD Card removed
  2. Attempted same steps, but with different compilation settings:
    1. Target of TMS320C7648
    2. Compiler version TI v8.3.3 (from here)
  3. Performed a fresh installation of the latest version of Code Compiler Studio (9.0.0.00018) on Windows 10 (different computer)
    Same Error
  4. Performed a fresh installation of the latest version of Code Compiler Studio (9.0.0.00018) on Antergos (Arch) Linux
    Same Error
  5. Tested same procedure on a second Identical DSP
  6. Re-Flashing the NAND via the serial port method listed Here
    The entire process appeared to work as expected, but the problem persisted

What can I do to make this work?

Note: Everything listed (Except attempting to use different computers) was done using a laptop running Windows 10 1809

  • Hello Devin,

    The NAND can be flashed using the Serial Boot and Flashing Loading Utility or through CCS using the NAND Writer. Refer to the following wiki for guidance on this.

    Regards,

    Sahin

  • I am able to perform this via the Serial flashing utility, but am unable to use the CCS Method.  I am unsure of how to perform the first of the 4 points:

    1. Connect to the ARM or DSP with the GEL file loaded, which will auto-initialize the DDR

    Under the Wiki, it says that gel files can be loaded using CCS, but I am unable to find the menu.

    Could you give me instructions on how to perform this?

    Edit: Using CCS 9.0.0

  • The GEL files window can be opened by going to Tools > GEL Files when in the debug view (after launching the target configuration). If you create a target configuration with the target as "LCDKOMAPL138" it should automatically populate the GEL files for you and all you should have to do is launch the target configuration. You should see the GEL output in the console window after launching.

    Regards,
    Sahin
  • I performed the following steps:

    1. Import the NANDWRITER_DSP project from OMAP-L138_FlashAndBootUtils_2_40

    2. Create new target Configuration with a connection of "Data Snapshot Viewer" and a Device of "LCDKOMAPL138"

    3. Modify the project file "src/nandwriter.c" line 81 to be: "#define NANDWIDTH_16"

    4. Versions 8 and greater of the compiler do not work with the device, so I installed v7.4.24 and set the project to use it.

    5. Built the project

    6. When launching Debug mode, the following error occured:

    ARM9_0: Output: 	Target Connected.
    ARM9_0: Output: 	---------------------------------------------
    ARM9_0: Output: 	Memory Map Cleared.
    ARM9_0: Output: 	---------------------------------------------
    ARM9_0: Output: 	Memory Map Setup Complete.
    ARM9_0: Output: 	---------------------------------------------
    ARM9_0: GEL: Error while executing OnTargetConnect(): Cannot read 0x01C10800: data is not present
    	 at (*((unsigned int *) ((0x01C10000+0x800)+(4*LPSC_num)))&0x1F) [OMAP-L138_LCDK.gel:868]
    	 at PSC0_LPSC_enable(0, 0) [OMAP-L138_LCDK.gel:509]
    	 at PSC_All_On() [OMAP-L138_LCDK.gel:244]
    	 at OnTargetConnect()
    C674X_0: Trouble Writing Memory Block at 0x80000000 on Page 0 of Length 0x7ff0: This operation is not supported by this driver
    C674X_0: File Loader: Verification failed: Target failed to write 0x80000000
    C674X_0: GEL: File: C:\ti\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\CCS\NANDWriter\Debug\NANDWriter_DSP.out: Load failed.
    

    Along with a dialogue box

     Edit: Embed did not work: https://imgur.com/a/k11T29R

    Edit 2: Also, I Also tried using LCDKC6748 and TMS320C6748 in place of LCDKOMAPL138 in step 2.

  • Hello,

    Which emulator are you using? Are you able to load the code in CCS via JTAG?

    Regards,
    Sahin
  • Hello,

    I am closing this thread due to inactivity. Feel free to post a reply to re-open it or create a new thread if the thread has locked due to timeout.

    Thanks,
    Sahin