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.

Some questions about C6678 IBL

Hi,everyone,

       I  set  C6678 EVM  as  PCIe boot,and there are some questions :

      1.I know ,if I set C6678 as PCIe boot,it will first execute IBL code in EEPROM,the address is 0x51,right ?How can I write the code to the address 0x51?Is there some documents ?

      2. I need configure MPAX register in IBL code,so that after power on the C6678EVM,it will complete mpax configuration .and I find the path of IBL code in my computer is :C:\ti\mcsdk_2_01_02_06\tools\boot_loader\ibl\src\device\c66x,and the file as following :

     

       which .c file should I use to configure MPAX register ?

    3.If I want to write the code to EEPROM 0x51,I must install MinGw?what's the role of MinGw?

    Thank you,

    Simon

  • Refer the documents from :
    C:\ti\mcsdk_2_01_02_06\tools\boot_loader\ibl\doc

    Binaries location:
    C:\ti\mcsdk_2_01_02_06\tools\boot_loader\ibl\src\make\bin

    You can try to append your code in c66x.c


    3.If I want to write the code to EEPROM 0x51,I must install MinGw?what's the role of MinGw?

    Not required, it needs to build the code on Windows platform if code is based on makefile.
  • Hi,Stalin,

         Thank you for your answer ,today ,I tried to burn .bin to EEPROM,0x51 according to the document README in C:\ti\mcsdk_2_01_02_06\tools\writer\eeprom\docs,and I have seen the information in CCS console as following :

         

        It means I have successfully burned the .bin file to EEPROM 0x51?the .bin file is i2crom_0x51_c6678_be.bin in the path of C:\ti\mcsdk_2_01_02_06\tools\boot_loader\ibl\src\make\bin.

        But the main question is that I don't know  how to build IBL code,I'm sorry to tell you I have read the document in the path  C:\ti\mcsdk_2_01_02_06\tools\boot_loader\ibl\doc you recommended and don't know how to build .After build ,it will generate .bin file ,right ?

         In my computer ,I find a "tools _buld .bat",it is relate to build IBL?After I open the .bat,as following :

         set path=t:\gen\mingw\20110516\msys\1.0\bin;t:\gen\mingw\20110516\bin
         t:\gen\mingw\20110516\msys\1.0\bin\bash IBL_buildibl

         In my computer ,the path doesn't exist ,how can I build the IBL code in path of  C:\ti\mcsdk_2_01_02_06\tools\boot_loader\ibl\src\device\c66x?

         Thank you for your help.

         Simon 

  • Hi Simon,
    1.I know ,if I set C6678 as PCIe boot,it will first execute IBL code in EEPROM,the address is 0x51,right ?How can I write the code to the address 0x51?Is there some documents ?

    Yes. Your understanding is correct. You can use eeprom_writer to program the IBL on to EEPROM.

    I need configure MPAX register in IBL code,so that after power on the C6678EVM,it will complete mpax configuration .and I find the path of IBL code in my computer is :C:\ti\mcsdk_2_01_02_06\tools\boot_loader\ibl\src\device\c66x,and the file as following : which .c file should I use to configure MPAX register ?


    There are plenty of threads discussed about customizing IBL for custom application. I recommend you to search for more information on e2e.

    3.If I want to write the code to EEPROM 0x51,I must install MinGw?what's the role of MinGw?

    Yes. You need MinGW to build the IBL source.

    Thank you.
  • Hi,Raja,

           Thank you for your answer .

            Can you provide me the installation package about MinGw?and some documents about how to use MinGw to build IBL?

           Thank you very much.

           Simon 

  • Please find the Mingw installation link from below wiki,

    Thank you.

  • Hi,Raja,

           I have installed MinGW and build IBL,but there are some errors,my operate steps as following ,if there are some mistakes ,please tell me :

          1.I have copied IBL file and IBL_buildibl to C: \MinGW\msys\1.0

          2.changed IBL_buildibl"ENDIAN=little"

          3.changed setupenvMsys.sh, as following(only I changed is C6X_BASE_DIR and  C6X_BASE_DIR_MSYS) : 

          #!/bin/bash

         # Environment setup to be done if using MSYS Bash shell for build

        # Specify the base directory of the c6000 compiler with UNIX style path separator
        export C6X_BASE_DIR='"C:/ti/ccsv5/tools/compiler/c6000_7.4.4"'

        # Specify the base directory of the c6000 compiler in format understandable by the MSYS Bash shell
        export C6X_BASE_DIR_MSYS=/c/ti/ccsv5/tools/compiler/c6000_7.4.4

       # Don't modify the below variables. They are derived from the above definitions
       export PATH=$PATH:$C6X_BASE_DIR_MSYS/bin
       export TOOLSC6X=$C6X_BASE_DIR
       export TOOLSC6XDOS=$C6X_BASE_DIR

        4.run the IBL_buildibl as following :

        

           and there are some errors:

          

              

         How can I solve it ?

        Thank you 

        Simon

       

  • Hi Simon,

    I am able to IBL build successfully.  I do not understand your step 1 and 2 above.

    - Launch the GNU development environment (MINGW Bash Shell)

    - Change directory to ibl\src\make

       - Modify the environment setup script to match the tool chain installation directory:

           For building in MINGW-MSYS Bash shell modify setupenvMsys.sh

       - Set the environment variables:

            On a MinGW-MSYS Bash shell "source setupenvMsys.sh"

       -  Command for building IBL

        make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51

    Thank you.

  • The error may be due to MINGW tool installation. Please ensure that the installation is complete,

    Requirements for building IBL on Windows:

      For building on a Windows machine, a GNU development environment is

      required. MinGW installation is required for this.

      MinGW project link: http://www.mingw.org/

      MinGW installer can be obtained from the following link

      http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20110316/mingw-get-inst-20110316.exe/download

      While installing MinGW following options have to be chosen:

       1.  MinGw Compiler Suite

           -   C Compiler

       2. MinGW Developer Toolkit

    Thank you.

  •       Hi,Raja,

          I have tried build ENDIAN=big or  little,the result as following :

           

         

     The issue is in compiler ?

           I have checked the packages  I have installed,as following:

                 you said I need install Mingw compiler suite -C Compiler ,so I should mark mingw32-base and install it ,right ?Is there any other options  should I mark to install ?

          After I installed mingw32-base ,the issue remained .

         gcc:command not found ,why ?

         Can I look your setupenvMsys.sh?

          Thank you

          Simon

  • Yes. This is the compiler issue.
  • Hi,Raja,

         But I have installed the C compiler as I latest post ,why the issue remained ?

         What should be set about "C6X_BASE_DIR"and "C6X_BASE_DIR"in setupenvMsys.sh?

         Thank you 

         Simon

  • Hi Simon,

    Please follow below link to install mingw compiler suite,

    Here is my setupenvMsys.sh file content:

    #!/bin/bash
    
    # Environment setup to be done if using MSYS Bash shell for build
    
    # Specify the base directory of the c6000 compiler with UNIX style path separator
    #export C6X_BASE_DIR='"C:/Program Files/Texas Instruments/C6000 Code Generation Tools 7.2.4"'
    export C6X_BASE_DIR='"C:\ti\ccsv5\tools\compiler\c6000_7.4.4"'
    
    # Specify the base directory of the c6000 compiler in format understandable by the MSYS Bash shell 
    #export C6X_BASE_DIR_MSYS=/c/Program\ Files/Texas\ Instruments/C6000\ Code\ Generation\ Tools\ 7\.2\.4
    export C6X_BASE_DIR_MSYS=/c/ti/ccsv5/tools/compiler/c6000_7.4.4
    
    # Don't modify the below variables. They are derived from the above definitions 
    export PATH=$PATH:$C6X_BASE_DIR_MSYS/bin
    export TOOLSC6X=$C6X_BASE_DIR
    export TOOLSC6XDOS=$C6X_BASE_DIR
    

    Thank you.

  • Hi,Raja,

          The gcc issue have been solved after I add the environment variable in windows.

          But there an another problem as following :

            

          Couldn't open .h file?Why?

          Should I add the .h path ?the stdlib.h in C/MinGW/include,how can I add path?

          Thank you 

          Simon

        

  • Hi,Raja,

          I'm glad to tell you the problem have been solved after I change the "C6X_BASE_DIR" from C:\ti\ccsv5\tools\compiler\c6000_7.4.4\bin to  C:\ti\ccsv5\tools\compiler\c6000_7.4.4.

         Now the.bin file can be generated  in the path of /ibl/src/make/bin successfully.

        Thank you.

        Best regards,

        Simon 

  • I request you to start a new thread for any further issues. Thank you so much for the update.