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.

generating a .a00 file

Hello everyone,

I have already posted about this in another thread but got no answer, so I try to post it in a new thread.

I want to use a C28346 and as this delfino has no internal flash, I want to use the serial eeprom on the ControlCard to store the my program.I have read the forums and litterature carefully and understood that I have to first generate a .a00 file that I will put in my eeprom. According what i have read, this file must be generated through the hex2000.exe. I am using the post-build command method. the command line I use is:

hex2000 -i DSP_MF.out -a -o DSP_MF.a00 -boot -i2c8 -i2cpsc=0x1D -i2cclkh=0x05 -i2cclkl=0x0A

I have no compilation error but no .a00 file is generated and i get the following message in the console:

C:/ti/ccsv5/utils/bin/gmake --no-print-directory post-build
hex2000 -i DSP_MF.out -a -o DSP_MF.a00 -boot -i2c8 -i2cpsc=0x1D -i2cclkh=0x05 -i2cclkl=0x0A
make (e=-1): Error -1
gmake[1]: [post-build] Error -1 (ignored)

Could someone help me? I have already worked a lot on this problem ans the remaining time allowed to me for this development is running short :(

Thanks a lot in advance!

Christian

  • Christian,

    It may be that CCS is not finding the path to hex2000. Instead of hex2000 you can specify the build variable ${CG_TOOL_HEX} which automatically resolves the path information to the hex2000 within the compiler tools directory.

    So, for example, try setting your post-build step in CCS to look something like this:

    ${CG_TOOL_HEX} -i DSP_MF.out -a -o DSP_MF.a00 -boot -i2c8 -i2cpsc=0x1D -i2cclkh=0x05 -i2cclkl=0x0A

    Let us know if that works.

    If it still fails, another quick test is to verify that the command works fine when run from a Command Prompt instead of within CCS. Simply open a command prompt, and enter the command as you have shown above but be sure to include full paths to hex2000, DSP_MF.out etc.  hex2000 will be in the \bin folder within the compiler tools directory.

  • Thanks AartiG, that works! You were right, the problem was about finding the path to hexe2000. Indeed, the following command that specifies the path produce the same result.

    "C:\ti\ccsv5\tools\compiler\c2000_6.1.0\bin\hex2000.exe" -i DSP_MF.out -a -o DSP_MF.a00 -boot -i2c8 -i2cpsc=0x1D -i2cclkh=0x05 -i2cclkl=0x0A

    Nevertheless, i still have a small question: when i open my file with the wordpad, my first line looks like this.

    :20000000AA ....

    while the final line ends like that.

    ... 00001FF

    But according of what I read in TMS320C28x Assembly Language Tools v6.1 (SPRU513E), page 283, my file should look like:
    ^B $AXXXXXXXX,
    XX XX XX XX XX XX XX XX XX XX. . .^C
    Is that a problem? Did i choose the wrong option?
    Thanks agina for your help,
    Christian
  • You have both the -i (intel hex format) and -a (ascii format) options in the command line. Remove the -i option and keep only the -a option.

  • That's a stupid mistake! Thanks even more for your help.

    I don't know where that come from.

    now my .a00 file looks exactly like it should :)

    Regards,

    Christian