Author Topic: Record in Intel Hex file  (Read 941 times)

0 Members and 1 Guest are viewing this topic.

Offline perdrixTopic starter

  • Frequent Contributor
  • **
  • Posts: 640
  • Country: gb
Record in Intel Hex file
« on: November 02, 2021, 09:19:03 am »
I've just built a hex file for a PIC17C42A project that was last built in May 2000.   I used MPLAB 8.92 Quickbuild to build the output hex file.

The May 2000 .hex file and the new one are identical apart from the fact the new file has one additional record at the beginning:

Code: [Select]
:020000040000FA
AFAICT this specifies an "Extended Linear Start Address" with a value of 0x0000 (upper 16 bits of 32 bit address) and so I can safely treat it as if it's not there.  Is that correct?

Thanks
David
 

Online JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: Record in Intel Hex file
« Reply #1 on: November 02, 2021, 10:27:00 am »
yes
 

Offline MIS42N

  • Frequent Contributor
  • **
  • Posts: 511
  • Country: au
Re: Record in Intel Hex file
« Reply #2 on: November 04, 2021, 10:21:23 pm »
You are correct. It is an Extended Linear Start Address. I just wrote a PIC bootloader for PIC16F1455 and had to deal with it. I found this article very useful https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12865
Re: Record in Intel Hex file
« Reply #3 on: November 04, 2021, 11:39:46 pm »
If in doubt, go to the horse's mouth: Intel's Hexadecimal Object File Format Specification.
PIC specific details of how that specification is then used will be found in section 1.7.5 Hex File Formats of Microchip's
MPASM Assembler, MPLINK Object Linker & MPLIB Object Librarian User’s Guide (DS33014L).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf