Import Hex File

Wishlists for new functionality and features.
Post Reply
arturv2000
Posts: 3
Joined: 17 Mar 2020 13:06

Import Hex File

Post by arturv2000 »

Hi

Not sure if it is a BUG or a "Feature" of the program.

When importing an HEX File, i always get "Range Check Error". I believe this is because the Hex File contains data in address very high.

In this case, the HEX file was generated for an STM32 processor, where the Internal FLash address starts at 0x0800 0000, and also contains information to be programmed in an external FLASH memory, those contents start at 0x9000 0000.

When loading an Hex file that only contains the "internal Flash", no issues. But if the Hex file contains information about the "external Flash" will give the error.

Even when loading an Hex file with only the "External Flash" get the error.

Seems that the software as some kind of limit of the highest address it can parse from the file.

Is there any workaround?

Another thing, this is more a suggestion. When importing the Hex File, the data shown in the program, should start at the first address that exist in the HEX File. In this situation where the first used address is always at 0x0800 0000 i need to perform a very long scroll.. or use the "Goto" function. This is more an annoying thing...

Thank You

Artur

Maël
Site Admin
Posts: 1221
Joined: 12 Mar 2005 14:15

Re: Import Hex File

Post by Maël »

If you could provide me with an example file, that would help a lot in debugging. You can send it to my email given here if you prefer for it to remain private: https://mh-nexus.de/en/contact.php

arturv2000
Posts: 3
Joined: 17 Mar 2020 13:06

Re: Import Hex File

Post by arturv2000 »

Hi

I have sent you an email with two files, one that is composed of "Internal Flash" + "External Flash" and the other one just the "External Flash".

Thank You

Maël
Site Admin
Posts: 1221
Joined: 12 Mar 2005 14:15

Re: Import Hex File

Post by Maël »

I replied to you by mail, to keep a log of what is to be done I'll paste it here as well:

Thanks for the example file. I could reproduce the error and the reason is due to the large "empty" leading portion that needs to be inserted.
As you correctly noticed, HxD currently fills it with zeros.

I have to introduce a notion of undefined data to handle this. And will add data folding like for the ram editor / process memory editor.

This will take while, since I have to adapt all the inaccessible section handling code everywhere, also for the exporter.
If I add this there should also be an option for overwriting or inserting undefined regions etc.

arturv2000
Posts: 3
Joined: 17 Mar 2020 13:06

Re: Import Hex File

Post by arturv2000 »

Hi

Thanks for the update.

Your suggestions seems good. One other option i was thinking was to define at the moment of Import an address range to be imported, but would be necessary that the software doesn't show everything starting at address '0', only in the address range defined.

Keep up the good work.

For now i have a workaround, made a small application that shows the first 512 bytes of the external memory section, was the area i was interested to see if i was adding the correct bytes to the start of the memory area.

Thank You

Post Reply