avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Patching EEPROM image for production


From: Ned Konz
Subject: Re: [avr-gcc-list] Patching EEPROM image for production
Date: Thu, 05 Oct 2006 11:02:46 -0700
User-agent: Thunderbird 1.5.0.7 (Macintosh/20060909)

dimax un wrote:
Hi Folks,

I'm trying to find clean solution for the following system problem.
I have configuration structure in EEPROM:
struct VPD_t
{
  char sn[10];
  char id[20];
}VPD EEPMEM;

While linking I generate EEPROM image in lets say VPD.eep file.
For production purposes I need to burn every product with different sn
and id. So I have to patch VPD.eep all the time.
I'm trying to make a script that has VPD.eep sn and id on it's input
and generates VPS_sn.eep with patched sn and id on it's output.

Why not just program it in two (or more) pieces using a single script?

Unchanging VPD.eep programmed first; doesn't program the area for the SN
and ID numbers.
Then generate the SN/ID on the fly and burn it into the right place.

You can reserve space in your main program for it and know where it is
by using a named linker section for it and using the section pragma to
place it in the right place.

avrdude is good for this.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]