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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.