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.

0 errors, 0 warnnings, but... Debug, run ?

Hello everybody,

 

I have compiled my code successfully : 0 errors, 0 warnnings

But when trying to run the code on the DSP using Debug --> run, I got only points (see the foto)

I am using CCS3.1, Generation tools 5.1.13. TMS320C6713

could you please tell what could cause this

 

Thank you in advance for your help

Safwan

  • Hello Safwan,

    Can you check what address the disassembly window is at (right-click in the disassembly window and select 'start address')? Is it a valid address? What happens when you single step?

    ki

  • Hello Ki,

    thank you for the prompt response

    the start address is

    0x4054000C

     what do you mean with single step?

    thank you again

     

     

    the linker commmand file is:

    MEMORY
    {
        BOOTRAM:       o = 00000000h   l = 00000400h
     VECS:          o = 00000400h   l = 00000200h
        IRAM:          o = 00000600h   l = 0002CA00h
        EDMA:          o = 0002D000h   l = 00003000h
        CE0:           o = 80003000h   l = 00ffd000h
        FLASH_BOOT:    o = 90000000h  l = 00000400h
        FLASH_REST:    o = 90000400h  l = 0001fc00h
    }


    SECTIONS
    {
     .boot_load : load = FLASH_BOOT, run = BOOTRAM 
                                                                      
        .bss        >       IRAM

        "vectors"   >       VECS

     .text       >       IRAM
        .cinit     >       IRAM
        .const      >       IRAM
        .cio        >       IRAM
       
        .stack      >       IRAM
        .data       >       IRAM
        .far        >       CE0
        .switch     >       IRAM
        .sysmem     >       IRAM

    }

  • Safwan said:

    the start address is

    0x4054000C

    Looks like that is not a valid address for your program at least. What is the value of the program counter (PC)? Check in the register window.

     

  • Hello Ki,

    i went to edit-->register and looked for PC and i got this value

    0x40540020

     

  • I think your application has a bug and it went off into the weeds (i.e. - it went to an incorrect address to run from)

  • Hello Ki,

    Du you mean a bug in the C code ?

    Do you have any suggestions or some tips how to find or to overcome the bug?.

    thank you again

     

     

  • Safwan said:
    Du you mean a bug in the C code ?

    Yes.

    Safwan said:
    Do you have any suggestions or some tips how to find or to overcome the bug?.

    Hard for me to provide suggestions since I am not familiar with your application. I suggest that you try to find your program went wrong. Maybe start from the entry point when you load the program and start stepping or set some breakpoints before where you think your program goes bad. You can also try adding some CIO in your code to five you an idea of where you are before the applications goes wrong.