[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[uracoli-devel] flash configuration data
From: |
uracolix |
Subject: |
[uracoli-devel] flash configuration data |
Date: |
Wed, 21 Apr 2010 23:22:17 +0200 |
User-agent: |
KMail/1.9.9 |
Hi,
I started implementing Daniels idea, to hold node specific configuration data,
e.g. as node address, panid, ... in flash memory.
The data section should be read from a fixed address in the flash memory ,
e.g. at FLASHEND - structure size or just before the boot loader start
address.
In order to update the configuration data, a little python script is added,
that generates an intel hex file, which is programmed with the -D option of
avrdude.
The workflow currently is:
1 flash the application (the config section is set to 0xff)
avrdude -P usb -p m1281 -c jtag2 -U myapp.hex
2 update the config section (w/o erase, e.g. punch zeros in the flash)
python Tools/nodecfg2ihex.py -a 1 -p 0x2222 |\
avrdude -P usb -p m1281 -c jtag2 -D -U fl:w:-:i
Now a step is needed that avrdude does not erase the entire flash
and leaves the config area untouched.
Cheers Axel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [uracoli-devel] flash configuration data,
uracolix <=