Jump to content
JRJ

Hex File Compatibility Issue

Recommended Posts

Bug Description:

Addresses in .hex files are misinterpreted by Microchip's FS USB Demo tool (bootload programmer) PDFSUSB.exe, but are correctly read by PICKit2

Hex file is missing the extended linear address record record type 04

 

Steps to produce:

Build a project and load hex file using PDFSUSB.exe

 

Expected behavior:

With the record, addresses in hex files are correctly interpreted.

 

Appears to happen 100% of the time - at least on successive versions of my simple program

 

IDE MPLab 8.30

Boostc Version 6.93

Target device 18F4550

 

Additional information;

Microchip's hex files all include the extended linear address record:

:020000040000FA

It appears some Microchip tools look for it where others don't. In my case I want to use the bootloader provided with the Picdem FS USB

My program didn't include configuration bytes, so perhaps that failed to trigger the creation of the record. When I pasted the missing record into the boostc produced hex file, they work just fine.

Since the bootloader precedes my application, the config bytes are already set.

Share this post


Link to post
Share on other sites
Bug Description:

Addresses in .hex files are misinterpreted by Microchip's FS USB Demo tool (bootload programmer) PDFSUSB.exe, but are correctly read by PICKit2

Hex file is missing the extended linear address record record type 04

 

...

...

 

It appears some Microchip tools look for it where others don't. In my case I want to use the bootloader provided with the Picdem FS USB

My program didn't include configuration bytes, so perhaps that failed to trigger the creation of the record. When I pasted the missing record into the boostc produced hex file, they work just fine.

Since the bootloader precedes my application, the config bytes are already set.

Use linker command line option -hexela as documented in the BoostC compiler reference manual.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...