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.

Problems with Loading a program

Other Parts Discussed in Thread: TMS320C6472

Dear All, 

I have a big program to load. I use the EVM6472. I use the target configuration file suplpied by TI. I want that al the cores get the same program.

I get the following error:

The GEL callback "OnTargetConnect()" for the target "Texas Instruments XDS100v1 USB Emulator_0/C64XP_A" is still processing.

The function could contain an infinite loop.


Do you wish to pause the processing of this function and continue?

Best regards, 

Dr. Yehuda Singer

 


  • Dr. Yehuda Singer,

    OnTargetConnect() gets called automatically immediately after you do the Connect Target step in the emulator. There are several steps that are executed in that function and these steps are helpful to make the emulation process go smoothly. You can edit your GEL file, then save, then Reload it (always remember to Reload it), if you need to make changes or as a way to debug to find where in the function it is hitting this infinite loop.

    This does not sound like it is related in any way to the process of loading a program, but it is related earlier at the process of connecting CCS to a core.

    There is a GEL file named evmc6472.gel which should be "attached" to core A. There is another GEL file named evmc6472-memorymap.gel which should be "attached" to cores B-F.

    What steps do you take to get to the point where the error occurs?

    Regards,
    RandyP

     

    If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.

  •  

    Dear Randy.

    I try to load and run the program on the EVM6472.

    1. The system requires EVM6421Conf.ccxml file. The CCS5 includes an  EVM6742.xml file.

    2. Itry to use the EVM6472.xml file, I get the folowing error message:

     

    The GEL callback "OnTargetConnect()" for the target "Texas Instruments XDS100v1 USB Emulator_0/C64XP_A" is still processing.

    The function could contain an infinite loop.


    Do you wish to pause the processing of this function and continue?

    Thanks in advance,

    Yehuda

  • Dear Randy

    How to get the EVM6472_XDS100USB.ccxml file?

    Thanks,

    Yehuda

  • You create the .ccxml file by going to the Target Configurations window and selecting New Target Configuration. Go to my favorite Wiki page GSG:Common target configurations and search for 6472; you will find instructions on how to make this ccxml target configuration file and where to find the GEL files.

    Are there some typo's in your #1 above? I do not understand the relationship with 6421 and 6742, but those are both valid TI DSP part numbers.

    From your error message, I can infer that you are able to Launch the Target Configuration, then select CoreA and attempt to Connect Target on CoreA. This is the point where this error message should be presented.

    You must always connect to CoreA first so it can do the system initialization such as setting up the PLLs and configuring the DDR2 interface.

    The method I use to debug problems that occur in a GEL file is to edit that file and comment out the lines in OnTargetConnect() [in this case] until I find out which one is causing the loop. There are not many lines, and the process might need to be followed into one of the subroutines below it. Once you find which GEL statement is the potential "infinite loop", then you will have a better idea how to solve it.

    Regards,
    RandyP

     

    If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.

  • Dear Randy, 

    Thanks for your quick answer. We use EVM6742 and the 6421 is a typos.

    I created the the ccsml file.

    here is it:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>

    <configurations XML_version="1.2" id="configurations_0">

    <configuration XML_version="1.2" id="Texas Instruments XDS100v1 USB Emulator_0">

            <instance XML_version="1.2" desc="Texas Instruments XDS100v1 USB Emulator_0" href="connections/TIXDS100usb_Connection.xml" id="Texas Instruments XDS100v1 USB Emulator_0" xml="TIXDS100usb_Connection.xml" xmlpath="connections"/>

            <connection XML_version="1.2" id="Texas Instruments XDS100v1 USB Emulator_0">

                <instance XML_version="1.2" href="drivers/tixds100icepick_c.xml" id="drivers" xml="tixds100icepick_c.xml" xmlpath="drivers"/>

                <instance XML_version="1.2" href="drivers/tixds100c64xp.xml" id="drivers" xml="tixds100c64xp.xml" xmlpath="drivers"/>

                <platform XML_version="1.2" id="platform_0">

                    <instance XML_version="1.2" desc="EVMC6472_0" href="boards/evmc6472.xml" id="EVMC6472_0" xml="evmc6472.xml" xmlpath="boards"/>

                <board XML_version="1.2" description="eInfochips C6472 EVM Board" id="EVMC6472_0">

                        <device HW_revision="1" XML_version="1.2" description="6 C64x+ Cores" id="TMS320C6472_0" partnum="TMS320C6472">

                            <router HW_revision="" XML_version="1.2" description="" id="device_1" isa="ICEPICK_C">

                                <property Type="filepathfield" Value="..\..\..\emulation\boards\evmc6472\gel\evmc6472.gel" id="GEL File"/>

                            </router>

                        </device>

                    </board>

                </platform>

            </connection>

        </configuration>

    </configurations>

    Can you supply me one? It has to be a standard if I use the EVM6742.
    Thanks,
    Yehuda

  • In your text, you call out 6742 but in your embedded file it calls out 6472. I do not mean to be a pest, but when I make assumptions or guesses those are often wrong.

    I have not used an EVMC6472 with CCSv5 and I do not have a board at this time so I cannot generate one for you. I have attached the one I used with CCSv4, but you can see it is constructed differently.

    One problem I had early on with an EVMC6472 was my USB cable. Using a good quality USB cable with filters helped.

    Do you know how to find and edit the GEL files from within CCSv5? I believe that once you have launched a Target Configuration, there will be a menu item under one of the main CCSv5 menu lists. Be sure to save and then Reload the GEL file when you edit it.

    Regards,
    RandyP

    EVM6472_XDS100USB.ccxml