uracoli-devel
[Top][All Lists]
Advanced

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

[uracoli-devel] node configuration stored in flash


From: uracolix
Subject: [uracoli-devel] node configuration stored in flash
Date: Thu, 5 Aug 2010 22:30:00 +0200
User-agent: KMail/1.9.9

Hallo, 

in the context of Daniels WIBO, we found that 
a "non destroyable" structure that stores default addresses and other 
parameters should be put at the end of the flash (because the EEPROM 
can be easily erased).

In board.h there is now a structure node_config_t as well as 
an access function (static inline) get_node_config() which copies the
flash data to RAM.

As an example how to use this mechanism, check xmpl_radio_range.c,
it is basically:

{
 node_config_t nc;
 get_node_config(&nc);
 hif_dump(sizeof(node_config_t), &nc);
}

To create individual hex files with different contents for each
node, use the python scripts install/bin/wibo_<board>.py, e.g. with

python wibo_rfarduino.py -a 0xa5a5 \
                         -p 0x5555 \
                         -A 0x123456789abcdef \
                         -f xmpl_radio_range_rfarduino.hex 

It creates foo.hex an updated version of xmpl_radio_range_rfarduino.hex 
(foo.hex: work in progress!)

python wibo_rfarduino.py -h shows the usage.


Cheers, Axel



reply via email to

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