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.

Configuration problem with a XDS510 and a tms320c6720

Other Parts Discussed in Thread: TMS320C6720

Hi, I'm working with a TMS320C6720 for my final school project and somebody gave me the opportunity to try the XDS510 Emulator JTAG to help me . But actually, I haven't suceeded to work with. So here's the problem: I'm able to connect the JTAG emulator on my dsp and disassemble the program alreadyin it with CCS v3.3  But when I load the same program with my Jtag Emulator, I'm not able to reach any line in my C source code (like when I do the command ''Go Main''). Also , CCS give me this warning :

"Trouble Setting Breakpoint with the Action "Terminate GEL_Go()" at 0x100014a0: Error 0x00000008/-2042 Error during: Break Point, Cannot set/verify breakpoint at 0x100014A0 Sequence ID: 7 Error Code: -2042 Error Class: 0x00000008 Breakpoint Manager: Retrying with a Legacy Hardware breakpoint

Maybe, there's something i do wrong when i configure my project in CCS. So, if you can help me or just give some tips that could set me on the way, i'll be greatful.

  • I hope you will not mind if I number my questions and comments. It may make it easier to refer to them in your next posting.

    1. XDS510 is often used as a generic term for many different JTAG Emulators. With nothing else known about it, my assumption would be this is a TI XDS510 IDE card. But I would bet that is not what you are using since it is hard to find a PC with an IDE slot anymore. Which specific XDS510 Emulator are you using?

    2. Question #1 is only relevant if you have hardware configuration problems or need to get the latest drivers. Have you confirmed that you do have the latest drivers for your emulator and the latest Service Release for CCS?

    3. Since you are able to connect to the DSP within CCS, you have succeeded with half the battle on a new debug setup. I would recommend checking that you can open a memory window (View->Memory) and can read and write several places within the internal and external memory spaces, 0x10000000 and 0x80000000, respectively. Also, open the core register window (View->Registers->Core registers or close to that) and see if you can read and write to some of the A and B registers. These are simple tests that usually catch a lot of JTAG configuration problems or device reset/clocking problems.

    4. Do you have the correct GEL file loaded for the C6720? You can find this from the Project window pane by clicking on the + by GEL files, then check the name and open it to see what might be happening in there when you connect or reset or reload your program.

    5. Usually, if the program is built with source debugging enabled but CCS cannot find the proper source file, a dialog box will open up asking you where to find it. Since you are not getting this opportunity to tell CCS where your source files are, either the program was not built for source debugging, or other problems are preventing you from getting that far in the execution.

    6. Since you are able to connect and view disassembled program, you could try just loading symbols from your program file using File->Load Symbols. Then in the disassembly window, right-click on the addresses and try to move the view to main or _main. This will tell you if the symbol is available correctly or not. From your error message, I would guess that main = 0x100014a0.

    7. When you do the Debug->GoMain command, CCS tries to execute the GEL_Go() function and attempts to place a software breakpoint at the address of main. It would then run until it reaches that breakpoint. But your error message indicates that there is a problem with setting that breakpoint. This points to a more serious problem than how your Project is configured. This means that CCS is not able to write/read at that address. Try to write something to that address, 0x100014a0, using the memory window like you did in #3, above.

    8. Resets and boot modes can make things work funny inside CCS. If the device is being held in reset by the RESET pin or by something waiting for an external device to release the DSP after bootloading, CCS might not behave well. Please verify the boot mode configuration for your DSP. Sometimes the GEL file will do a GEL_Reset() before loading a new program, so this might be getting in your way.

    9. Can you build your application from within CCS? If you do this, you will certainly have access to all the source files for source level debugging. Some libraries may not have the source provided, but your application code will.

    Good luck, and thanks for using the TI E2E Community Forum.

    Regards,
    RandyP

  • now i'm using TMS320C6720 device ,but i can't find a appropriate gel file in CCS3.3 . can suply me a properly gel file? mine email address: limingqi_1986@qq.com  thanks!

  • Which DSP are you using? Your posting says C6720 while the Tags say C6727.

    What board are you using? An EVM/DSK or Development Kit from TI or a TI partner, or your own board?

    Which version of CCS 3.3 are you using? Help->About will display the version. This is also related to the SR number, such as SR12, which tells us how up-to-date your installation is and what devices are supported.

  • Now i'm using TMS320C6720REF device. it's mine own board for mine final school project. on the board has AM29LV800B and HY57V281620.

    CCS3.3 version is : 3.3.81.6

    code generation: v6.0.8

    now i using emulator TDS510 USB2.0

    I can access the register and change the external  SDRAM(HY57V281620). but when run mine own program  can't initial EMIF register.

    can suplly me a appropriate GEL file for TMS320C6720?

     

  • You have designed and built your own board for a school project? That is very impressive.

    I am not familiar with the TDS510 USB2.0 emulator, but that will not matter here.

    Do you have a non-volatile memory that you use for booting the board? The program there should take care of EMIF register initialization. Please refer to the bootloading documents for the C672x family - there are special considerations in terms of how the boot process must progress and how patches may need to be applied.

    The attached gel file was written for a particular board which used the C6727B. There may be changes needed for your DSP and for your board components. This is provided as a starting point for you to modify it to fit your needs.

    C6727_TI.gel