Open your hex file in Notepad and look to see if it has any records at the top of the 16-bit address spae, e.g. 0xFF00 and higher. If so then those are used to program things like additional security bits. This data is likely being generated by your startup code, so you will need to modify or comment it out there.
Andy