Tool/software: Code Composer Studio
Hi
I want to use my hex file with c2prog but it gives error "invalid hex format"
I tried all available output hex formats in code composer but c2prog gives same error.
Note: I am only using cpu01 in code.
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.
Tool/software: Code Composer Studio
Hi
I want to use my hex file with c2prog but it gives error "invalid hex format"
I tried all available output hex formats in code composer but c2prog gives same error.
Note: I am only using cpu01 in code.
Hello,
Please take a moment to review section 2.2 of the C2Prog Manual (accessible from the Help menu).
In case of the Delfino device, the command for generating the hex file is as follows:
hex2000 -romwidth 16 -memwidth 16 -i -o .\Debug\test.hex .\Debug\test.out
You can do this directly from CCS. Go to "Properties", "CCS Build", "C2000 Hex Utility". Under "General Options" specify both memory width and rom width to be 16. Under "Output format" select "Intel hex". The summary page should then look as follows:
Once your hex file is properly generated, you may also want to configure a post build-step to produce a C2Prog extended hex (ehx) file:
"C:\Program Files (x86)\C2Prog\C2Prog.exe" -hex=${BuildArtifactFileBaseName}.hex -ehx=${BuildArtifactFileBaseName}.ehx -target=28375,7,9D-CPU01_20MHz-JTAG
This assumes that you are programming a target with at 20 MHz external clock over JTAG.
Review the C2Prog Manual for other options and further details.