Software protection and calibration on LPC2138

OP #1171976
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
Guest #1171977
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

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now