From: 流平 易 <mic...@me...> - 2015-05-27 16:08:30
|
Hi all, I am trying to reduce the firmware size for cc2650 following the instructions on https://github.com/contiki-os/contiki/wiki/Reducing-Contiki-OS-firmware-size <https://github.com/contiki-os/contiki/wiki/Reducing-Contiki-OS-firmware-size>, as cc2650 has a maximum size of 128 KB Flash memory. However,after change Makefile and project-conf.h, it has no effect when building the hello-world example, the size of hello-world.srf06-cc26xx is still 192 KB. Michael-WS-Yees-MacBook-Pro:hello-world michael$ cat Makefile DEFINES+=PROJECT_CONF_H=\"project-conf.h\" CONTIKI_PROJECT = hello-world all: $(CONTIKI_PROJECT) CONTIKI_NO_NET = 1 CONTIKI = ../.. include $(CONTIKI)/Makefile.include Michael-WS-Yees-MacBook-Pro:hello-world michael$ Michael-WS-Yees-MacBook-Pro:hello-world michael$ cat project-conf.h /*--------------------------------------------------------------------*/ /* Disable button shutdown functionality */ #define BUTTON_SENSOR_CONF_ENABLE_SHUTDOWN 0 /*--------------------------------------------------------------------*/ /* Change to match your configuration */ /*#define NETSTACK_CONF_RDC contikimac_driver*/ #define NETSTACK_CONF_RDC nullrdc_driver #define IEEE802154_CONF_PANID 0xABCD #define CC26XX_RF_CONF_CHANNEL 25 #define CC26XX_MODEL_CONF_CPU_VARIANT 2650 /* CC2650 */ #define CC26XX_RF_CONF_BLE_SUPPORT 1 /* Only available with CC2650 */ /*--------------------------------------------------------------------*/ /* Disable the name strings from being stored */ #define PROCESS_CONF_NO_PROCESS_NAMES 1 /*--------------------------------------------------------------------*/ /* Disable TCP to reduce uIP/IPv6 stack size */ #define UIP_CONF_TCP 0 #define UIP_CONF_UDP 0 #endif /* PROJECT_CONF_H_ */ /*--------------------------------------------------------------------*/ Michael-WS-Yees-MacBook-Pro:hello-world michael$ Any ideas or solutions ? Best Regards, Michael W.S. Yee |