Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: adding protection to final binary image

2004-07-01 by Tutors of ESAcademy

--- In lpc2000@yahoogroups.com, Robert Adsett <subscriptions@a...>
wrote:
> >I am using GCC-ELF-ARM
> You could do as Chris suggested and modify the ld script to exclude
> that area, and then modify the hex. I think that in effect takes
> you back to the 3 section alternative above.
> 
> I'm a little leary about simply modifying the hex file since I have
> seen tools that fill the gaps in created hex files appropriately
> (usually meaning fill with FF).

True, but this will hopefully leave the flash cells in their erased
state, and the added word could still be programmed successfully.
But yes, it would not be exactly pretty... :)

I prefer a 'native' solution like the one that you outlined for
GNU-ARM, too, if possible. Here it is easy since the constant data
never changes, but if for example you have to rely on a separate tool
to generate a checksum to be stored at a fixed location it becomes
trickier. This is where I have used the hex file modification.

Chris
Tutor at ESAcademy
www.esacademy.com
www.canopenbook.com

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.