Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello,

i have build a hex-image of my Project using the -ihex flag. When i open it with a hex Editor it beginns with "3A303230".
When i flash it into the internal Flash of XMC4500, the Segger MemTools shows "10000800" at start adress 0x0C000000.

Why not the values written in the hex file?


Thanks!
0 Likes
3 Replies
Not applicable
Hi,

Did you build your project with DAVE3?
All my XMC4500 hex file is started with ':020000040C00EE' on the first line.
Perhaps you can upload your hex file here?
0 Likes
Not applicable
Hello Jackson,

my Hex-File starts with ":020000040C00EE." as well.

When i then flash it with DAVE into the microcontroller and watch the flash with the Segger MemTool it shows different values.

But the programm is running!
0 Likes
Not applicable
Hi Hissi,

Honestly, I'm not sure how your Hex editor translate the hex file into the hex code.
The correct one should be what inside Segger MemTools.

You may want to refers Wikipedia on how Hex file is written.
So, the first line '020000040C00EE' basically refers to 02 | 0000 | 04 | 0C00 | EE where:
02 - 2 byte count
0000 - Address is 0000
04 - Record type for extended linear address
0C00 - The extended address is 0C00
EE - Checksum

This is how the programmer know the address is starting from 0x0C000000.
0 Likes