Open desword opened 5 years ago
Here is the ram and rom usage reported.
The RAM and ROM reported in our paper states the usage of BLEach (the BLE link and PHY layer, the Parametrization layer, and the L2CAP layer) when it is configured of with a maximum IPv6 packet length of 512 bytes.
Per default, the BLEach uses a max. IPv6 packet length of 1024 bytes. To lower the max. length, you need to configure:
#define PACKETBUF_CONF_SIZE 512
#define SICSLOWPAN_CONF_MAC_MAX_PAYLOAD 512
#define UIP_CONF_BUFFER_SIZE 512
in your project-conf.h and set
#define CONN_TX_BUFFERS_NUM 12
in the /cpu/cc26xx-cc13xx/rf-core/ble-hal/ble-hal-cc26xx.c.
This should get you RAM and ROM usage comparable to the ones presented by our paper.
Thanks for your reply. I use the command size client.elf
or the size client.srf06-cc26xx
size client.srf06-cc26xx
text data bss dec hex filename
51900 483 12048 64431 fbaf client.srf06-cc26xx
The bss section is lowered.
Therefore, I need to collect the BLEach (the BLE link and PHY layer, the Parametrization layer, and the L2CAP layer) , then get the results shown in Table? But not directly the results from size
command? The results of size
actually contains all of modules including the contiki-os. So I need to extract the BLeach modules mannually from the *.o files in obj_srf06-cc26xx. Am I correct?
I have the way in https://github.com/contiki-ng/contiki-ng/wiki/Tutorial:-RAM-and-ROM-usage to calculate the ROM and RAM usage, however, the size seems too large. Besides, I also calculate the ROM and RAM usage cooresponding to different modules based on the xx.map and the *.o files in obj_cc26xx_cc13x0, here is the overall results of
client-demo
:I found that the ROM is nearly 52KB, and the RAM is nearly 15KB. It is very different from the size reported in the paper: https://wwwpub.zih.tu-dresden.de/~mzimmerl/pubs/spoerk17bleach.pdf
Anyone can help me ?