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.

C6670 gel script in SRIO BOOT mode

Hi,

I am using EVM6670 with CCS6. When I use the gel file in NO BOOT mode, Global default setup in evm6670l.gel is running on Target connect. But when I put the EVM in SRIO boot mode I have to run the gel scripts manually through CCS menu. We want to test a custom board which is in SRIO boot mode.

1. Is there a way to run the gel scripts on target connect in SRIO mode like No boot mode ? This helps us to configure the PLL in gel scripts.

2. What is the exact difference in No Boot and SRIO Boot modes for gel file execution ?

Thanks

Hari

  • Hi,

    No-Boot mode only need .gel file to initialize the PLL and DDR configuration, the .gel file is not required for other boot modes.

    In SRIO boot mode, the RBL initializes the PLL and the receive and the transmit channel registers. Silicon revision 1.0 chips RBL not properly initialize the PLL, the wok around is implemented in secondary boot loader(IBL) to re-initialize the PLL. For more information refer keystone boot loader user guide and silicon errata documents.
    www.ti.com/.../sprz332f.pdf
    www.ti.com/.../sprugy5c.pdf

    Refer below MCSDK document for SRIO boot mode: \ti\mcsdk_2_01_02_06\tools\boot_loader\examples\srio\docs\README.pdf

    Thanks,
  • Thank you Ganapathi. There is nothing programmed on the custom board yet. I just want to see if I can run some scripts in SRIO mode. But I found that there is a simple check for DEVSTAT register in the evm6670l.gel file that is preventing the global default setup to run in SRIO boot mode.

    Thanks
    Hari
  • Hi,

    Have you try to check the DEVSTAT register in SRIO boot mode?

    Thanks,
  • 1. Is there a way to run the gel scripts on target connect in SRIO mode like No boot mode ? This helps us to configure the PLL in gel scripts.

    No. In SRIO boot mode, The RBL configures the PLL. Refer boot load user guide for more information.

    2. What is the exact difference in No Boot and SRIO Boot modes for gel file execution ?

    No boot is for application debugging using emulator in CCS.

  • Hi,

    In evn6670l.gel file there is a check for SRIO boot mode which prevents the global default setup on target connect. Here DEVSTAT register is checked.

    OnTargetConnect()
    
    {
    
       if (ON_TARGET_CONNECT_CODE_ENABLE == 1)
    
       {
    
           if (DNUM == 0)
    
           {
    
               // Validates if emulation boot mode
    
               if (DEVSTAT & 0x0000000E)
    
               {
    
                   GEL_TextOut("No initialization performed since bootmode = %x \n",,,,,(DEVSTAT >> 1 ) & 0xF);
    
                   GEL_TextOut("You can manually initialize with GlobalDefaultSetup\n");
    
               }
    
               else
    
               {
    
                   // Comment the following line at production application test
    
                   // when the application need to initialize everything, but not the
    
                   // GEL file.
    
                   Global_Default_Setup();
    
               }
    
           }
    

    Thanks

    Hari

  • Hari,
    Yes. You can modify the gel file according to your need. The purpose of gel is to initialize everything when the "No boot" is selected by default.

    Thank you.
  • Thank you Raja. So Can I say there is no logic inside the 6670 that prevents the gel file execution on target connect in SRIO Boot mode? It is only the check on DEVSTAT register in the gel file that prevents the gel file execution on target connect in SRIO Boot mode.

    Thanks
    Hari
  • Hi,

    No-Boot mode only need .gel file to initialize the DSP, the .gel file is not required for other boot modes. If you load the modified .gel file in SRIO boot means, it will effect the boot process. Refer section 3.1 Boot Processes on Boot loader user guide.

    What is the intention for load the .gel file in SRIO boot mode?

    Thanks,
  • Hi,

    I need to do DDR3 memory test using a gel script for a custom board. The board is wired to SRIO boot mode and only JTAG connection is available. So I need the gel file to do DDR3 clock configuration and run the DDR3 memory test. Is there any other way to do this ?

    Thanks
    Hari
  • Hi,

    MCSDK SRIO boot example project uses the BIOS MCSDK Platform Library to initialize the DDR. Refer this example and add the DDR3 memory test.
    MCSDK Path: \ti\mcsdk_2_01_02_06\tools\boot_loader\examples\srio\

    Thanks,
  • Hi Hari,

    You can either modify the SRIO boot example or can update the gel file for your purpose however the correct method would be doing through SRIO boot example that does not affect the RBL boot process.

    Thank you.