EmbDev.net

Forum: ARM programming with GCC/GNU tools Software protection and calibration on LPC2138


von Cem E. (cemer)


Rate this post
useful
not useful
Hello,

I have two issues in my mind which need a solution sooner or later.

I am trying to activate the software protection on the lpc2138, i.e.
programming the flash 0x1fc with 0x87654321. I wonder what alternative
approaches there might be?

Also, what is your preferred way to embed the serial numbers and/or
calibration data into the flash area, after testing the board with the
production sw? Reprogramming whole sw takes alot time, compared to the
size of the changes.

Thanks
Cem

von Martin Thomas (Guest)


Rate this post
useful
not useful
Cem Eryasar wrote:

> I have two issues in my mind which need a solution sooner or later.
>
> I am trying to activate the software protection on the lpc2138, i.e.
> programming the flash 0x1fc with 0x87654321. I wonder what alternative
> approaches there might be?

Use .org <address> followed by .word <"magic value"> in you
startup-Assembler file. And make sure the bootloader is accessable (BSL
and UART0-Pins)  ;-)

> Also, what is your preferred way to embed the serial numbers and/or
> calibration data into the flash area, after testing the board with the
> production sw? Reprogramming whole sw takes alot time, compared to the
> size of the changes.

You can reserve a memory-sector for such data and program the
device-specific values received for example by UART using IAR-functions
to this page. Or use you programming-hardware (or maybe even the
bootloader) to write some binary data you create for each device to a
fixed address in flash memory.

Martin Thomas

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.