• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » C6000 Multicore DSP » Keystone Multicore Forum (C66, 66A, AM5) » TMDSEVM 6670LE error in hello world program
Share
C6000 Multicore DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Training Available
TI provides self-paced online training that introduces the primary components of the KeyStone II family of SoC devices.

  • KeyStone II SoC Overview >
  • KeyStone II Software Overview >
  • KeyStone II ARM Cortex-A15 Corepac Overview >
  • More Information >
  • Check out
    Multicore Mix blog
    • $core_v2_blog.Current.Name

      It’s our second anniversary, but you get the present!

      Posted 6 days ago
      by Lindsey Bare
      It’s hard to believe it’s already been two years...
    • $core_v2_blog.Current.Name

      Limited time offer: Save $100 on Keystone-based EVM!

      Posted 19 days ago
      by tscheck
      Have you been thinking about ordering a TI Keystone-based EVM...
    • $core_v2_blog.Current.Name

      Imagine the impact…TI’s KeyStone SoC + HP Moonshot

      Posted 30 days ago
      by Sanjay35057
      Last week, market leader Hewlett Packard announced a huge change...

    TMDSEVM 6670LE error in hello world program

    TMDSEVM 6670LE error in hello world program

    This question is answered
    Aditya Gudipati
    Posted by Aditya Gudipati
    on Jun 22 2012 16:20 PM
    Prodigy40 points
    Hi,
    We got a new EVM 6670 board recently with a Blackhawk emulator. Plugged it on and used the "IBL NAND boot on image 0" as described on http://processors.wiki.ti.com/index.php/TMDXEVM6678L_EVM_Hardware_Setup . Installed CCSv5 and ran the hello world emulator, but received an error saying "trouble reading memory block". Detailed outputs attached below, any help in this regard would be very useful for me to get started.
    - settings on ccxml file
    Connection : Blackhawk XDS560v2-USB Mezzanine Emulator 
    Board or device : TMS320C6670
    Tried running the hello world program 
    -----------------------------------------------------
    #include <stdio.h> // standard I/O needed for printf
    void main(void) {
    printf("hello world emulator\n");
    return;
    }
    Outputs while building the code and launching the debug session :
    output when I build the C file :
    -----------------------------------------
    **** Build of configuration Debug for project hello_world_emulator ****
    C:\Program Files\Texas Instruments\ccsv5\utils\gmake\gmake -k all 
    'Building file: ../main_emulator.c'
    'Invoking: C6000 Compiler'
    "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --include_path="C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/include" --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="main_emulator.pp"  "../main_emulator.c"
    'Finished building: ../main_emulator.c'
    ' '
    'Building target: hello_world_emulator.out'
    'Invoking: C6000 Linker'
    "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --diag_warning=225 --abi=eabi -z -m"hello_world_emulator.map" --warn_sections -i"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/include" --reread_libs --rom_model -o "hello_world_emulator.out"  "./main_emulator.obj" -l"libc.a" 
    <Linking>
    warning: creating ".stack" section with default size of 0x400; use the -stack
       option to change the default size
    warning: creating ".sysmem" section with default size of 0x400; use the -heap
       option to change the default size
    'Finished building target: hello_world_emulator.out'
    ' '
    Starting the debug session :
    ----------------------------------------
    **** Build of configuration Debug for project hello_world_emulator ****
    C:\Program Files\Texas Instruments\ccsv5\utils\gmake\gmake -k all 
    gmake: Nothing to be done for `all'.
    Error on the CCS console :
    -----------------------------------
    CCS Console output :
    ----------------------------
    C66xx_0: Trouble Reading Memory Block at 0x8000 on Page 0 of Length 0x4: The DTDMA memory request is not serviced by the HW memory system.  This could be caused by the memory address specified does not exist in the specified  memory/cache level.   (Error -1190) @ 32768 (0x8000)
    C66xx_0: File Loader: Data verification failed at address 0x00008000 Please verify target memory and memory map.
    C66xx_0: GEL: File: C:\Documents and Settings\Aditya\workspace\hello_world_emulator\Debug\hello_world_emulator.out: a data verification error occurred, file load failed.
    6670 EVM
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Allen Lee
      Posted by Allen Lee
      on Jun 24 2012 22:25 PM
      Verified Answer
      Verified by Chad Courtney
      Genius3500 points

      Hi Aditya,

      The error is caused by the missing of linker cmd file.

      I attach a simple cmd file here and copy it to your project directory and rebuild again.

      BTW, you said you have used the "IBL NAND boot on image 0" mode, which is not the suitable mode if you aim to develop and debug by the means of XDS560 emulatior. Refer the EVM hardward guide you mentioned and switch the EVM to NO BOOT mode.

      Allen

      6278.linker.rar

      Please press the "Verify Answer" button if you think the post is helpful to your question.Thanks.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ahmed abouzaid
      Posted by ahmed abouzaid
      on Jun 26 2012 07:43 AM
      Intellectual625 points

      hello

      Can i use this cmd file for EVMc6670L  ?

      Regards;

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Aditya Gudipati
      Posted by Aditya Gudipati
      on Jun 27 2012 10:50 AM
      Prodigy40 points

      Hi Allen,

      Thanks a lot for the reply. Used the linker file and switched to No boot mode (as mentioned on http://processors.wiki.ti.com/index.php/TMDXEVM6678L_EVM_Hardware_Setup) ...however, I was now getting a new error :

      C66xx_0:File Loader : Data verification failed at address 0x81000000 Please verify target memory and memory map.

      C66xx_0:GEL:File:D:\Documents and Settings\...\workspace\hello_world\Debug\hello_world.out : a data verification error occurred, file load failed.

      Interestingly, when I switched back to "IBL NAND boot on image 0" and power-cycled the board .... the debug session worked fine and I got the "hello world" output !! (only glitch was a message saying : Can't find a source file at "/sim/sds12/scratch/tsuch_rtsbuild_dflcmp2507.dal.design.ti.com_23248_linux/c60_rts/./exit.c"
      Locate the file or edit the source lookup path to include its location.
      " , which according to http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/101743.aspx can be ignored).

      What am I missing here?

      Thanks,

      Aditya

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Allen Lee
      Posted by Allen Lee
      on Jun 28 2012 00:25 AM
      Verified Answer
      Verified by Aditya Gudipati
      Genius3500 points

      Hi Aditya,

      In NO BOOT mode, you should specify the GEL file for the Target Configuration. Refer the following screenshot and add the GEL for every core.

      The original GEL file is located in C:\Texas Instruments\ccsv5\ccs_base_5.0.3.00023\emulation\boards\evmc6678l\gel.

      The GEL is focus on system initialization, including  the DDR3 configuration, so if you didn't include it in the Target Configuration, the DDR3 will be inavailable. And in IBL boot mode, these works will be done by the bootloader, so you can use the DDR3 directly. 

      The message can be ignored since it means the program has reach the exit point normally.

      Allen

      Please press the "Verify Answer" button if you think the post is helpful to your question.Thanks.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Aditya Gudipati
      Posted by Aditya Gudipati
      on Jun 28 2012 12:20 PM
      Prodigy40 points

      Hi Allen,

      Thanks a lot again for the detailed explanation and the screenshot !!  Worked perfectly :)

      Thanks,

      Aditya

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use