Part Number: TM4C1230C3PM
Other Parts Discussed in Thread: UNIFLASH
Tool/software: TI C/C++ Compiler
Hi all,
I'm trying to generate an hex (intel format) file from .out. [my intent is to transfer it's content to re-program my board, at first using uniFlash].
In the picture below there's the set up of ARM Hex utility
But if I try to read with notepad the hex file generated, and compare it with the flash content read by the debugger in CCS the data are not what I'm expecting.
The code to read flash is simple, made in this way:
uint32_t datoInFlash[10] = {0}; // init
...
...
datoInFlash[0] = *((uint32_t*) (0x0000));
datoInFlash[1] = *((uint32_t*) (0x0004));
datoInFlash[2] = *((uint32_t*) (0x0008));
datoInFlash[3] = *((uint32_t*) (0x000c));
datoInFlash[4] = *((uint32_t*) (0x0010));
datoInFlash[5] = *((uint32_t*) (0x0014));
datoInFlash[6] = *((uint32_t*) (0x0018));
datoInFlash[7] = *((uint32_t*) (0x001c));
datoInFlash[8] = *((uint32_t*) (0x0020));
datoInFlash[9] = *((uint32_t*) (0x0024));
..
..
- The first byte in the editor (0x50) matches with the LSB of data[0] in the debugger
- The second byte in the editor (0xCB) matches with the LSB of data[0] in the debugger
- ... and so on
But where are the other bytes? For exemple 0x20000A50, 0x000026CB. I'm expecting to read this byte in the .hex file, somewhere..
What I'm missing?
Thanks for the answers,
Marco.