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.

Having difficulties debugging even a simple example

Other Parts Discussed in Thread: TMDS570LS31HDK, TMS570LS3137, CONTROLSUITE, MSPWARE, HALCOGEN

Using CCS 6.0.1.00040 under Win 7Enterprise 64-bit .  Working with a Evalueation Board: TMDS570LS31HDK.

Just trying to familiarize myself with the debugger but cannot hit a single breakpoint. 

Sequence followed:
Project -> New CCS Project
Selected:

TMS570LS3137 (the processor on the module),
TI XDS100v2 USB Emulator (as silkscreened on the board)
Compiler Version: TI v5.1.6
Output Type: Executable
Output Format: eabi (ELF)
Device endianness be32
Linker command file: TMS570LS313xFlashLnk.cmd
Runtime Support: rtsv7R4_T_be_v3D16_eabi.lib
Project Template: Empty Project (with main.c)

Entered simple sequence that does not require additional libraries, a simple for-next with a switch embedded
int main ( void)
{
    char i ;
    char j ;

    j = 0 :

    for ( i = 0 ; i < 2 ; i++ )
    {
        switch (i)
        {
            case 0:
                    j = i ;
                    break ;
            case 1:
                    j = i ;
                    break ;
            default:
                    j = i ;
                    break ;
         }
     
}
     return 0 ;
}

Nothing fancy; just something to try out.  Set a hardware breakpoint on the first case.

Hit the "BUG" button to build and debug but only got a message that:
Symbols not defined for 0x00000004.

Verified that the entrypoint at main option was selected in the debugger options of the project properties
but it acts like there is no startup code or no starting vector.  I would not expect to need to supply any for
a plain vanilla project.  Am I correct?

I spent the better part of the day reading posts/watching videos but did not find what I was looking for.
  There
seem to be no examples in my installation to which I could refer.  Where did I fall off the path?        

  • Hi,

    Bob Myles said:
    Verified that the entrypoint at main option was selected in the debugger options of the project properties
    but it acts like there is no startup code or no starting vector.  I would not expect to need to supply any for
    a plain vanilla project.  Am I correct?

    Actually no. Usually Flash-based devices need to properly populate the reset vector so they can properly "boot" when turned on, as well as initialize some peripherals on the go. The runtime library that our compilers provide are tied to the core (Cortex R4 in your case), but not to the device architecture itself. That is why the availability of example code is absolutely critical to start your development.

    Where to find them? Every device family provides example code in a slightly different way: ControlSUITE for C2000, MSPWare for MSP430/432, HalCoGen for Hercules.

    In this case, I would suggest you to get started with their peripheral configurator HalCoGen and a short page that helps integrating its examples into CCS:

    processors.wiki.ti.com/.../Creating_new_CCS_v5_Project_with_HALCoGen

    Hope this helps,

    Rafael

  • Thanks for your recommendations. I tried the link to verify that I can reach it and it looks like exactly what I need!