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.

Errors Rebuilding sfh_OMAP-L138.exe

Other Parts Discussed in Thread: OMAP-L138, CCSTUDIO, OMAPL138, AM1808

Hello.

I am trying to build the SFH flashing tools as described here:

However I'm getting several errors.

Install setup
  . Flash package version 2_25
    https://sourceforge.net/projects/dvflashutils/files/OMAP-L138/v2.25/OMAP-L138_FlashAndBootUtils_2_25.tar.gz/download

  . Cygwin 1.7.5
    $ uname -r
    1.7.5(0.225/5/3)

  . Arm cross tools 2009q1-203
     http://www.codesourcery.com/sgpp/lite/arm/portal/package4572/public/arm-none-linux-gnueabi/arm-2009q1-203-arm-none-linux-gnueabi-i686-mingw32.tar.bz2

  . TI C6000 Code Gen 6.1.13

  . Microsoft .NET Framework v4.0.30319
    http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en

Environment setup
    $ export PATH=$PATH:/cygdrive/c/Program\ Files/Texas\ Instruments/C6000\ Code\ Generation\ Tools\ 6.1.13/bin
    $ export PATH=$PATH:/cygdrive/c/home/a0324304/temp/arm-2009q1/bin
    $ export PATH=$PATH:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v4.0.30319
    $ export C6X_C_DIR="C:\Program Files\Texas Instruments\C6000 Code Generation Tools 6.1.13\lib"

Build Commands
    $ cd OMAP-L138_FlashAndBootUtils_2_25/OMAP-L138
    $ make clean
    $ make

Errors
   1. Can't locate cl470. This isn't mentioned on the wiki as a requirement; maybe just an oversight.

        make[4]: Entering directory `/cygdrive/c/home/a0324304/work/freon/boot/OMAP-L138_FlashAndBootUtils_2_25/OMAP-L138/GNU/AISUtils/AISextra/src'
        cl470 -O=2 -c --obj_directory=./arm_obj -I=../../../../../Common/include -I=../../../../Common/include -I=../../../Common/include -I=../include -ms -me -mv=5e --symdebug:none aisextra.c
        make[4]: cl470: Command not found
       
      Easy enough to workaround since I have ccsv4 installed. But would like to confirm this version is ok.
        $ export PATH=$PATH:/cygdrive/c/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/tms470/bin

   2. .NET failures
        Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
        for Microsoft (R) .NET Framework version 1.1.4322
        Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
       
        HexAIS.cs(62,3): error CS0116: A namespace does not directly contain members such as fields or methods
        HexAIS.cs(77,18): error CS1519: Invalid token '<' in class, struct, or interface member declaration
        ...

      The "..." indicates many similar errors. And later on down indicates
        Could not locate the expected version of the Microsoft Windows SDK. Looked for a location specified in the "InstallationFolder" value of the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A". If your build process does not need the SDK then this can be ignored. Otherwise you can solve the problem by doing one of the following:  1) Install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5.  2) Install Visual Studio 2008.  3) Manually set the above registry key to the correct location.
        c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1682,9): error MSB3091: Task failed because "resgen.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "resgen.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A. You may be able to solve the problem by doing one of the following:  1) Install the Microsoft Windows SDK.  2) Install Visual Studio 2010.  3) Manually set the above registry key to the correct location.  4) Pass the correct location into the "ToolPath" parameter of the task. [C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost.csproj]
        Done Building Project "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost.csproj" (Rebuild target(s)) -- FAILED.
        Done Building Project "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost_GUI.sln" (Rebuild target(s)) -- FAILED.

      Indeed there is no "resgen.exe" in the .NET install as suggested by the wiki.
        $ cd c:/WINDOWS/Microsoft.NET/Framework/
        $ find . -iname "*resgen*"
        <nothing found>

      I'm hestitant to try any of the suggested options from the error log since these are mentioned on the wiki.
      i.e. hoping I'm missing something in my setup.

Any help is appreciated.

Thanks,
Martin

 

  • 1) We are updating the make files to use the CodeSourcery ARM compilers instead of the TI ones. Looks like this one needs to be changed as well. For now adding that to the path will work, but in the next update it won't be necessary.

    2) It looks like your .NET framework version is 1.1.4322. Check the wiki link for the latest version (4.0) and install that.

    Jeff

  • jc said:
    1) We are updating the make files to use the CodeSourcery ARM compilers instead of the TI ones. Looks like this one needs to be changed as well. For now adding that to the path will work, but in the next update it won't be necessary.

    Ack.

    jc said:
    2) It looks like your .NET framework version is 1.1.4322. Check the wiki link for the latest version (4.0) and install that.

    I did that based on this link in the wiki:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en 

    I downloaded dotNetFx40_Full_setup.exe dated 4/20/2010 and added a path which would seem to indicated v4.0
       
    export PATH=$PATH:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v4.0.30319

    But looking at my path it seems there is an earlier version ahead of the one I added so reversed the above to
    place the new version first. However one problem persists (still missing resgen.exe).

            make[3]: Entering directory `/cygdrive/c/home/a0324304/work/freon/boot/OMAP-L138_FlashAndBootUtils_2_25/OMAP-L138/GNU/AISUtils/UartHost_GUI'
            MSBuild.exe UartHost_GUI.sln /t:Rebuild
            Microsoft (R) Build Engine Version 4.0.30319.1
            [Microsoft .NET Framework, Version 4.0.30319.1]
            Copyright (C) Microsoft Corporation 2007. All rights reserved.
           
            Build started 7/14/2010 10:20:32 AM.
            Project "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost_GUI.sln" on node 1 (Rebuild target(s)).
            ValidateSolutionConfiguration:
              Building solution configuration "Release|Any CPU".
            Project "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost_GUI.sln" (1) is building "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost.csproj" (2) on node 1 (Rebuild target(s)).
            EntityClean:
              Successfully cleaned the output for 0 EDMX files.
            EntityDeploy:
              Processing 0 EDMX files.
              Finished processing 0 EDMX files.
            GetFrameworkPaths:
              Could not locate the expected version of the Microsoft Windows SDK. Looked for a location specified in the "InstallationFolder" value of the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A". If your build process does not need the SDK then this can be ignored. Otherwise you can solve the problem by doing one of the following:  1) Install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5.  2) Install Visual Studio 2008.  3) Manually set the above registry key to the correct location.
            c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1682,9): error MSB3091: Task failed because "resgen.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "resgen.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A. You may be able to solve the problem by doing one of the following:  1) Install the Microsoft Windows SDK.  2) Install Visual Studio 2010.  3) Manually set the above registry key to the correct location.  4) Pass the correct location into the "ToolPath" parameter of the task. [C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost.csproj]
            Done Building Project "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost.csproj" (Rebuild target(s)) -- FAILED.
            Done Building Project "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost_GUI.sln" (Rebuild target(s)) -- FAILED.
           
            Build FAILED.
           
            "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost_GUI.sln" (Rebuild target) (1) ->
            "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost.csproj" (Rebuild target) (2) ->
            (CoreResGen target) ->
              c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1682,9): error MSB3091: Task failed because "resgen.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "resgen.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A. You may be able to solve the problem by doing one of the following:  1) Install the Microsoft Windows SDK.  2) Install Visual Studio 2010.  3) Manually set the above registry key to the correct location.  4) Pass the correct location into the "ToolPath" parameter of the task. [C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost.csproj]
           
                0 Warning(s)
                1 Error(s)

    But most of the other executables now build. Not sure if I need the UartHost.exe.

            $ find . -iname "*.exe"
            ./GNU/AISUtils/HexAIS_OMAP-L138.exe
            ./GNU/genecc_OMAP-L138.exe
            ./GNU/sfh_OMAP-L138.exe
            ./GNU/slh_OMAP-L138.exe

    Thanks,
    Martin

  • Looks like you got the SFH to build. That error message gave some suggestions on how to resolve it, but for flashing the boards UartHost.exe is not needed.

     

    Jeff

  • jc said:

    Looks like you got the SFH to build. That error message gave some suggestions on how to resolve it, but for flashing the boards UartHost.exe is not needed.

    Yes the tools gave some suggestions for resolution. But none of these are mentioned on the wiki as being required.
    So I would like to understand whether the wiki is lacking in this area or I have an environment mismatch with what is expected.

    -Martin 

     

  • Hello,

    Thanks for the info so far--it's been able to get me through some hurdles but I still get a build permission errors as copied below on make clean, which then gets stuck on timake NANDWriter_DSP.pjt Debug -clean.

    My environment:

    1.  Windows Vista, with Cygwin installed.
    2.  Dot Net Framework v4.0.30319.
    3.  CodeSourcery and C6X compilers mentioned in http://processors.wiki.ti.com/index.php/Rebuilding_the_Flash_and_Boot_Utils_Package.
    4.  CCSv3.3 from link you provided.

    And my PATH:

    PATH: 

    /usr/local/bin
    /usr/bin
    /bin
    /cygdrive/c/Program Files/ActivePerl58/site/bin
    /cygdrive/c/Program Files/ActivePerl58/bin
    /cygdrive/c/Perl/site/bin
    /cygdrive/c/Perl/bin
    /cygdrive/c/Program Files/Texas Instruments/xdctools_3_16_02_32
    /cygdrive/c/Program Files/CodeSourcery/Sourcery G++ Lite/bin
    /cygdrive/c/Windows/system32
    /cygdrive/c/Windows
    /cygdrive/c/Windows/System32/Wbem
    /cygdrive/c/Program Files/ATI Technologies/ATI.ACE/Core-Static
    /cygdrive/c/Program Files/QuickTime/QTSystem
    /cygdrive/c/Windows
    /cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319
    /cygdrive/c/Program Files/CodeSourcery/Sourcery G++ Lite/bin
    /cygdrive/c/Program Files/Texas Instruments/ccsv4/utils/gmake
    /cygdrive/c/Program Files/Texas Instruments/C6000 Code Generation Tools 7.0.3/bin
    /cygdrive/c/CCStudio_v3.3PLA/cc/bin
    /cygdrive/c/Program Files/Texas Instruments/xdctools_3_16_02_32

    $ make > build.log
    make[3]: *** [all] Error 1
    Cannot open temporary command file '\0752016': Permission denied
    make[4]: *** [device.C6748_SPI_MEM.obj] Error 1
    Cannot open temporary command file '\0336016': Permission denied
    make[4]: *** [device.C6748_NAND.obj] Error 1
    Cannot open temporary command file '\0448016': Permission denied
    make[4]: *** [device.C6748_NOR.obj] Error 1
    make[3]: *** [all] Error 2
    make[2]: *** [sft] Error 2
    Cannot open temporary command file '\0202416': Permission denied
    make[3]: *** [device.C6748_SPI_MEM.obj] Error 1
    Cannot open temporary command file '\0537216': Permission denied
    make[3]: *** [device.C6748_NAND.obj] Error 1
    Cannot open temporary command file '\0516416': Permission denied
    make[3]: *** [device.C6748_NOR.obj] Error 1
    make[2]: *** [all] Error 2
    Cannot open temporary command file '\0754416': Permission denied
    make[3]: *** [device.C6748_SPI_MEM.obj] Error 1
    Cannot open temporary command file '\0546416': Permission denied
    make[3]: *** [device.C6748_NAND.obj] Error 1
    Cannot open temporary command file '\0793216': Permission denied
    make[3]: *** [device.C6748_NOR.obj] Error 1
    make[2]: *** [all] Error 2
    make[2]: *** [all] Error 127
    make[1]: *** [all] Interrupt
    make: *** [all] Interrupt

    Any thoughts on what tools I could be missing or other ideas?

     

    Thanks,

    Katie

  •  I ran into this problem myself and got it answered in the compiler forums here:

    http://e2e.ti.com/support/development_tools/compiler/f/343/t/55872.aspx

    Basically you need to set your TMP and TEMP variable as follows:

    1)Edit ~/.bashrc

    2)Uncomment out the following lines:
      export TMP=/tmp
      export TEMP=/tmp

    That should fix it for you.

    Jeff

  • Hi

    I am just working to rebuild the sfh_(.exe). i installed everything  in the ti document and the only problem is with missing rts64plus.lib. i found that lib in CCS 3.3 C6000 lib folder is there any hint to correct the issue?. Also i want to know the possibility of specifying the lib path in any files to rebuild the sfh.

     

    thank u

     

  • Shino

    Please see if the following post helps fixing your rtslib path issue 

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/87781.aspx#303741

    Regards

    Mukul 

  • Thanks for the reply

    In our board  we are using DDR2 other than DDR in EVM . so can u suggest the change made to rebuild the sfh utility in specific steps 

    thanks

  • Mukul Bhatnagar.

    thanks for all your replies for my query. Finally i want to ask  some solution regarding the Sfh utility. As i mentioned in the above post our board is using a DDR2 chip(MT47H128M16RT) and a NAND with 1.8v (MT29F4G08ABBDAHC-IT) than EVM; so when i use the sfh utility the command line will stuck with the line

    -------------------------------------------------

    ""Waiting for sft.....""

    ------------------------------------------------

    so i believe in a change of  sfh utility to my custom board. But i am confused with the entire package structure of OMAP-L138_FlashAndBootUtils_2_29  to generate sfh_OMAP-L138.exe. Can you suggest any possible change i have to make in the package for rebuilding?The rts lib problems are now resolved and rebuilding is successful.

    Thank you

      

  • Shino

    Have you looked at the following wiki 

    http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L138#Modifications_for_Custom_Boards

    This highlights what files will need to change to match a custom board setting. Will need you to be more specific in terms of what issues you are having once you make the changes in teh utility to match your DDR settings etc.

    Regards

    Mukul 

  • Hi

    Its a useful link for me . after proper changes in device.c whether i should run make command from GNU directory or OMAP-L138 dir. while running make command in OMAPL138  will take  time at CCS project  rebuild.

    Regards

     

  • Hi Mukul

    To be specific

    i had done all the changes to custom board but booting through the sfh will end with the massage "Waiting for SFT on the OMAP-L138..". Do you have any ideas to troubleshoot the problem

  • Do you have CCS, and if so connect to see if the DDR is working by checking the 0xc0000000 memory region in the memory window.

    Also try doing -v to see if it gives more info on the failure.

    Jeff

  • Hi,


    I am also facing the same issue. I am working on LogicPD am1808 and converted the same schematics and designed our prototype board.

    Currently we are using in our prototype is mDDR (128 MB). I am not able to load my boot-loader, then I connect this to JATAG using CCS

    and run the below RAM test it is failed, please find the below status of my mDDR. 

    ------------------------------------------------------------

                         AM-1808 RAM Test

    Test Description

    ----------------

    this code verifies the mDDR address bus and writes/verifies

    data patterns to the mDDR.

    ------------------------------------------------------------

    Execute Test

    ------------

    --- Test address and data bus ---

    addr/data bus test failed at address: C0000000

    test_data: 00000001

    *test_addr: FFFFFFFE

     

    ********** AM-1808 TEST FAILED **********

    ----------------------------------------------------------------------

    Please let us know any suggestions to change the fields. what could be the reason to failed this mDDR.


    Thanks,

    Francis