I have a software for an embedded system. That I first have converted to .bin, then unpacked and then repacked again and converted back to hex.
The two packed versions is identical afterwards except for precisely at the end where they differ. I suppose this is some data created by the packer. It's also a tad but shorter than the original. And when converted back to hex the original and the version converted back are identical all the way except that the re packed version ends at address A3xxxx or something similar while the original ends at Address FFxxxx.
So my question is if I should fill that address gap with FF perhaps?
Or leave it as is. That I think would mean that this part is not overwritten when flashing the software so it might cause a problem when flashing a costume edited version of the software that is shorter and do not overwrite all of the old code.
The two packed versions is identical afterwards except for precisely at the end where they differ. I suppose this is some data created by the packer. It's also a tad but shorter than the original. And when converted back to hex the original and the version converted back are identical all the way except that the re packed version ends at address A3xxxx or something similar while the original ends at Address FFxxxx.
So my question is if I should fill that address gap with FF perhaps?
Or leave it as is. That I think would mean that this part is not overwritten when flashing the software so it might cause a problem when flashing a costume edited version of the software that is shorter and do not overwrite all of the old code.