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/TMDSEVM6678: TMDSEVM6678 hello world example

Part Number: TMDSEVM6678
Other Parts Discussed in Thread: TMS320C6678

Tool/software: Code Composer Studio

Hi,
I followed your instructions to create a "hello world" project
* I'm using CCS 7.4.0 & processor_sdk_rtos_c667x_4_03_00_05.
* I also modified 2 code lines in: C:\ti\pdk_c667x_2_0_9\packages\pdkProjectCreate.bat 
# 70 : set SOC=C6678 (it was a57..)
#124 : set PROCESSOR=dsp (it was arm)

*** Configuration:
Blackhawk XDS560v2-USB Mezzanine Emulator
TMS320c6678

*** The build generates the following warnings:
Description Resource Path Location Type
#10210-D null: creating ".stack" section with default size of 0x400; use the -stack option to change the default size HelloWorld C/C++ Problem
#10210-D null: creating ".sysmem" section with default size of 0x400; use the -heap option to change the default size HelloWorld C/C++ Problem
#10247-D null: creating output section ".cinit" without a SECTIONS specification HelloWorld C/C++ Problem
#10247-D null: creating output section ".cio" without a SECTIONS specification HelloWorld C/C++ Problem
#10247-D null: creating output section ".const" without a SECTIONS specification HelloWorld C/C++ Problem
#10247-D null: creating output section ".far" without a SECTIONS specification HelloWorld C/C++ Problem
#10247-D null: creating output section ".fardata" without a SECTIONS specification HelloWorld C/C++ Problem
#10247-D null: creating output section ".stack" without a SECTIONS specification HelloWorld C/C++ Problem
#10247-D null: creating output section ".switch" without a SECTIONS specification HelloWorld C/C++ Problem
#10247-D null: creating output section ".sysmem" without a SECTIONS specification HelloWorld C/C++ Problem
#10247-D null: creating output section ".text" without a SECTIONS specification HelloWorld C/C++ Problem

*** execution fails: HelloWorld.out Load failed ***
C66xx_1: Trouble Reading Memory Block at 0x8000 on Page 0 of Length 0x4: (Error -1190 @ 0x8000) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 7.0.100.0) 
C66xx_1: File Loader: Verification failed: Target failed to read 0x00008000
C66xx_1: GEL: File: C:\Users\motima\workspace_v7\HelloWorld\Debug\HelloWorld.out: Load failed.

What went wrong?
Please add as many details as you can.

Thanks

  • Can you try to add the gel file located in ~/ti/pdk_c667x_2_0_9/packages/ti/platform/evmc6678l/gel  in your target configuration. In the bellow screenshot click on the target configuration's advanced tab:

    then select the IcePick_D and on the right side using the Browse button navigate to the cited directory and select the gel file in it.

    Best Regards,

    Yordan

  • Did you load the gel file, as I explained? What is the result?

    Best Regards,
    Yordan
  • I did the following:
    1. launched TMS320C6678.ccxml configuration from the 'HelloWorld' directory
    2. Connected Core#0(No symbols are defined)
    3. Loaded gel file from: C:\ti\pdk_c667x_2_0_9\packages\ti\platform\evmc6678l\gel\evmc6678l.gel
    4. Highlight Core#0 in the Debug pannel. Run->Load->Load Program
    5. ...\HelloWorld\Debug\HelloWorld.out
    6. Console shows:

    C66xx_0: GEL Output: Setup_Memory_Map...
    C66xx_0: GEL Output: Setup_Memory_Map... Done.
    C66xx_0: GEL Output: Invalidate All Cache...
    C66xx_0: GEL Output: Invalidate All Cache... Done.
    C66xx_0: GEL Output: GEL Reset...
    C66xx_0: GEL Output: GEL Reset... Done.
    C66xx_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
    C66xx_0: Trouble Writing Register PC: (Error -1176 @ 0xEA40) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 7.0.100.0)
    C66xx_0: GEL Output: Disable all EDMA3 interrupts and events.

    7. I Also get: No source available for "0x20b0ccd4"
  • Hi,

    I think this is related to the other threads you've opened.
    Have you added the .cmd linker file in your project? If yes, then please close this thread and let's continue on the other one you've opened.

    Best Regards,
    Yordan