Tool/software: TI C/C++ Compiler
Hello everyone,
we want to write our own custom RAM-Firmware to load an hex-File received from SCIa into the Flash of an C2000 MCU.
We generate the hex-file with the hex2000.exe with the following options:
-o test1_28335_test.hex
-i
-sci8
-boot
-bootorg 0
-map Map1.txt
now we want to parse this hex file to extract the data we have to store in flash via flash-Api.
I don't fully understand the structure of the generated hex-file:
What's clear to me, is that:
-the hex files data is wrapped inside the intel format.
-the data begins with the initializer (underlined HexValues).
-This is the startadress for the next data. (see the attached map-file)
But from on there I don't know how to go on.
Hex-file-extract:
:20000000AA08000000000000000000000000000000003300F6FFEC2E3300D61969006E00F3
:2000200066006F00000000004E0000002D000000740069006D00650000000000540000006D
:200040007200740069006D0065000000680065006C007000000000002D007C0054000000D9
:200060006500630068006F000000000077006C006500760065006C00000000004E005400B0
Please help me undersatnding the structure of the generated hex-file, so we can succesfully parse it.
Compiler and hex2000.exe: V. 15.2.4
CCS: V. 6********************************************************************************
TMS320C2000 Hex Converter v15.12.4
********************************************************************************
INPUT FILE NAME: <..\PPTest.out>
OUTPUT FORMAT: Intel
PHYSICAL MEMORY PARAMETERS
Default data width : 16
Default memory width : 8 (LS-->MS)
Default output width : 8
BOOT LOADER PARAMETERS
Table Type: SERIAL PORT (SCI 8 bit Mode)
Entry Point: 0x0033fff6
OUTPUT TRANSLATION MAP
--------------------------------------------------------------------------------
00000000..003fffff Page=0 Memory Width=8 ROM Width=8
--------------------------------------------------------------------------------
OUTPUT FILES: test1_28335_test.hex [b0..b7]
CONTENTS: 00000000..0006684f BOOT TABLE
.econst : dest=003319d6 size=00002eec width=00000002
.text : dest=0031fd1c size=0000a4a6 width=00000002
.text2 : dest=0032a1c2 size=00007813 width=00000002
Flash28_API : dest=00313ca4 size=00000543 width=00000002
.cinit : dest=003348c2 size=00001e70 width=00000002
.text1 : dest=003141e8 size=0000bb34 width=00000002
codestart : dest=0033fff6 size=00000002 width=00000002
ramfuncs1 : dest=00310640 size=00002aaf width=00000002
ramfuncs2 : dest=00310000 size=00000341 width=00000002
ramfuncs3 : dest=00310341 size=000002ff width=00000002
ramfuncs4 : dest=003130f0 size=00000bb3 width=00000002
csmpasswds : dest=0033fff8 size=00000008 width=00000002
csm_rsvd : dest=0033ff80 size=00000076 width=00000002
.switch : dest=00336732 size=000000ee width=00000002
extvars : dest=00228000 size=0000c1e0 width=00000002
ConfigParameter : dest=00308000 size=00000970 width=00000002
--------------------------------------------------------------------------------
00000000..003fffff Page=1 Memory Width=8 ROM Width=8 "*DEFAULT PAGE 1*"
--------------------------------------------------------------------------------
NO CONTENTS