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.

How to edit tiobj2bin.bat to change the ROM directive range?



I created a bin file with the post build steps successfully in DSP28335 with CCS6.1, it converted all memories,but what I want is just data in FLASHD's range. 

I checked the tiobj2bin.bat ,and I saw the this command:

%hexcmd% -q -b -image -o %binfile% %hextmp% %outfile%

this command makes the hex file,and %hextmp% is the temp commad file,then I open it ,it's just a simple one like this:

ROMS {
all_mem: o = 0x630000, l = 0x50000
}

This is the ROM directive.

I think if I could change the Origin and the Length,then I will get the bin file that I want.

So ,how to change the Origin and the Length in the %hextmp% ,it seems these are generated automatically by something.

Should I edit  tiobj2bin.bat file or the post build command?Or is there any other way? 

Thanks.

  • f f45 said:
    Should I edit  tiobj2bin.bat file or the post build command?

    No.

    What you want to do is beyond the capability of tiobj2bin.  You need to create your own custom hex command file, then directly invoke hex2000 with that command file.   You are correct when you say ...

    f f45 said:
    if I could change the Origin and the Length,then I will get the bin file that I want.

    So create a custom hex utility command file, modeled on the one generated by tiobj2bin.  Then directly invoke hex2000 with it, in the same manner as tiobj2bin.

    Complete documentation on the hex conversion utility is available in the C28x assembly language tools manual.

    Thanks and regards,

    -George