EmbDev.net

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


Author: Cem Eryasar (cemer)
Posted on:

Rate this post
0 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

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.