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.

CCS/TMS320C6657: romparse can't be rebuid on Windows 10.

Part Number: TMS320C6657


Tool/software: Code Composer Studio

Hi,

I want to generate the .dat file which includes Boot Function and directly to be booted by NOR FLASH by SPI.

In this case, I use "Nor Writer" project on CCS, load the .dat file to RAM Memory and write them to FLASH.

My current procedure is below,

1. Generating the .out file by CCS.

2. Generating the .btbl file with the .rmd file.

3. Using b2i2c.exe, convert  boot table and generate the .btbl.i2c file.

4. Using b2ccs.exe, convert to ccs format and generate the .i2c.ccs file.

5. Using romparse.exe, add the infomation of SPI boot, generate the .ccs file.

6. copy the .ccs file to the  .dat file

7. Using byteswap.exe

I already could make a small size spi boot FW.

But, Application FW becoming larger, romparse.exe output a corrupted file.

I think that "#define MAX_DATA_LEN_32bit   32768" in romparse.h is this reason.  Therefore, I decide to rebuild romparse.c, romparse.h with makefile.

These source code and makefile is included C6657PDK project's folder(\ti\pdk_c665x_2_0_11\packages\ti\boot\ibl\src\util\).

I run cmd on  Windows 10, and  execute mingw32-make command, but cmd output errors.

I constructed Ubuntu 18.04 environment, and add options to the makefile, this could be rebuild.

However, on windows 10,  I added the same options to makefile nevertheless it can't be rebuild.

How to rebuild , and What is correct procedure to make the "directly spi boot FW"?

  • The issue regarding romparse that you are reporting was previously reported in 2017 and we had pushed for this issue as you can see from the romparse.c and romparse.h file update here which configures the MAX_DATA_LEN_32bit to 0x200000

    git.ti.com/.../romparse.c
    git.ti.com/.../romparse.h

    However this source doesn`t seem to be integrated into the Processor SDK RTOS so I have filed a JIRA PRSDK-5766 to track closure. I am able to build the utility on my windows 7 machine but have not tried this on Windows 10 machine yet. Let me set this up at my end and I will get back to you with detailed steps to build the utility.

    Regards,
    Rahul
  • I am able to build the utility in windows 10 using the following instructions:

    1. Setup MinGw environment for build. Install MinGW from here. Install must include all gcc C compiler utilities.

    set TOOL_MINGW_DST=C:\MinGW\
    set PATH=%TOOL_MINGW_DST%\bin;%TOOL_MINGW_DST%\msys\1.0\bin;%PATH%

    2. Change directory to romparse
    cd C:\ti\C665x_PRSDK53\pdk_c665x_2_0_13\packages\ti\boot\ibl\src\util\romparse

    3. Build romparse using following:
    make clean
    make TARGET=c665x I2C_BUS_ADDR=0x51

    Please give this a try and let me know if you run into any issues.

    Regards,
    Rahul
  • Hi, Rahul

    Thank you for your support, and sorry for my late reply.

    >>1. Setup MinGw environment for build. Install MinGW from here. Install must include all gcc C compiler utilities.

    I'd been using "mingw32-make"  located under "eclipse"'s sub folder.

    After downloading from "http://www.mingw.org/",

    rparse.tab.o: file not recognized: File format not recognized

    collect2.exe: error: ld returned 1 exit status

    make: *** [romparse] Error 1

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Having this result,  I could find the E2E thread that you answered about it before.

    So, I installed "ActivePerl" , and run the cmd, and run the command as you taught.

    set TOOL_MINGW_DST=C:\MinGW\
    set PATH=%TOOL_MINGW_DST%\bin;%TOOL_MINGW_DST%\msys\1.0\bin;%PATH%

    make clean

    make

    This is successful !  Thank you very much.

    >>3. Build romparse using following:
    >>make TARGET=c665x I2C_BUS_ADDR=0x51

    I had already added that to the makefile directly.

    Thanks, Regards,

    M_N_