hex file garbage?

There’s two lines at the end of the hex files that I can’t figure out. They’re the 3rd and 2nd to last (the two before the last line).

:020000040030CA
:0E000000FFFEFEFCFFFEFBFFFFFFFFFFFFFF0A

I can’t figure out exactly what they do. From what I understand, the first one

:020000040030CA

says to prepend 0x0030 to the address of any data records that come after it. That would mean however, the the next line

:0E000000FFFEFEFCFFFEFBFFFFFFFFFFFFFF0A

writes data to 0x00300000, which as far as I can tell, doesn’t exist. The last address in the flash memory is 0x7FFF.

Any ideas?

No ideas, but I’m inpressed you understood all but two lines… :ahh:

Wow… nice. I’m in awe. :eek:

The code memory space ends at 0x7FFF but the highest flash address on the 18F8520 is 0x3FFFFF. The memory addresses from 0x300000 - 0x30000D are used for the device’s configuration settings such as clock source, code protect, etc. Addresses 0x3FFFFE and 0x3FFFFF are for the device ID bits.