Hello,
Yes, I understand that it's the process you are following, but you mention that the hex files do not match between the application you are flashing and the memory dump.

When you are comparing the hex files are you considering the diagram I'm attaching? Or are you just comparing the hex file from the offset that you add to the application when you compile it?
Regards,
Estephania