0

I exported a .hex file for a PIC32 microcontroller, the content starts like this

:020000040000fa
:020000041fc01b
:042ff000ffff3fffa1
:020000040000fa
:020000041fc01b
:042ff400b9fff8bf6a
:020000040000fa
:020000041fc01b
:042ff800d9df74ffaa
:020000040000fa
:020000041fc01b
:042ffc00f3ffff7e62
:020000040000fa
:020000041d00dd

After reading some articles about the Intel HEX format, the output confuses me a bit. Let's have a look at the first three lines only:

:02 0000 04 0000 fa
:02 0000 04 1fc0 1b
:04 2ff0 00 ffff3fff a1

If the third section is 04, as it is for the first two lines - it means the following data of type is of extended linear address. So this address part is put in front of the address which is declared for data of type 00 (like the third one).

The reason why this confuses me is that there are ALWAYS two 04 lines under each other. But a 04 line is only valid until another appears.

So why are there always two?

But why are

ataraxis
  • 1,257
  • 1
  • 15
  • 30
  • Perhaps a bug in the exporting tool? What do you use? The second and following 04-records with a non-zero address look redundant to me, too. – the busybee Oct 21 '22 at 08:34

0 Answers0