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.
Hello
I am using the hex2000 utility with following options to generate .hex file.
c:\CCStudio_v3.3\C2000\cgtools\bin\hex2000.exe -i -romwidth 16 abc.out -map test.map -o abc.hex
but i get .hex file along with .i10 file, wherein the page 0 and page 1 contents are separated.
This is the output of test.map file
********************************************************************************
TMS320C2000 COFF/Hex Converter v4.1.3
********************************************************************************
INPUT FILE NAME: <abc.out>
OUTPUT FORMAT: Intel
PHYSICAL MEMORY PARAMETERS
Default data width : 16
Default memory width : 16
Default output width : 16
OUTPUT TRANSLATION MAP
--------------------------------------------------------------------------------
00000000..003fffff Page=0 Memory Width=16 ROM Width=16
--------------------------------------------------------------------------------
OUTPUT FILES: abc.hex [b0..b15]
CONTENTS: 003e8000..003e801e ramfuncs Data Width=2
003f0000..003f0c06 .text Data Width=2
003f4000..003f4024 .cinit Data Width=2
003f7f80..003f7ff5 csm_rsvd Data Width=2
003f7ff6..003f7ff7 codestart Data Width=2
003f7ff8..003f7fff csmpasswds Data Width=2
--------------------------------------------------------------------------------
00000000..003fffff Page=1 Memory Width=16 ROM Width=16 "*DEFAULT PAGE 1*"
--------------------------------------------------------------------------------
OUTPUT FILES: abc.i10 [b0..b15]
CONTENTS: 003ec000..003ec0ff .econst Data Width=2
003ec100..003ec157 .switch Data Width=2
Question: how to combine .hex and .i10 file to get single .hex file which contains both page 0 and page 1 contents in .hex, so that i can flash the file and run it properly.
Thanks
Manju
Manju,
Modifying your linker cmd file so that .econst and .switch are linked to 'page 0' flash will solve this problem. Then, all data to be programmed will be in page 0 and in your .hex file. Another post that you might take a look at is below:
http://e2e.ti.com/support/microcontrollers/tms320c2000_32-bit_real-time_mcus/f/171/t/21412.aspx
-Ian