mirror of
https://github.com/Koenkk/Z-Stack-firmware.git
synced 2024-12-01 22:23:22 +01:00
.. | ||
bin | ||
images | ||
README.md |
CC2531 coordinator firmware
- Open
Z-Stack Home 1.2.2a.44539\Projects\zstack\ZNP\CC253x\znp.eww
with IAR Embedded workbench for 8051. - You will get a warning: The project file 'CC253(0/1).ewp' is in an old format. Would you like to convert it for use with this version?. Press yes for both.
- In the dropdown, set target to CC2531 - ProdHex.
- Right-click on CC2531 - ProdHex* and press options. Go to C/C++ compiler, preprocessor and in Defined symbols change
xTC_LINKKEY_JOIN
toTC_LINKKEY_JOIN
. Press OK. - Open CC2531 - ProdHex* ->
NWK/nwk_globals.h
and change:
#define NWK_MAX_DEVICE_LIST 20
to
#define NWK_MAX_DEVICE_LIST 30
- Open CC2531 - ProdHex* ->
ZMain/OnBoard.h
and change:
#if defined TC_LINKKEY_JOIN
#define MAXMEMHEAP 2170
#else
to
#if defined TC_LINKKEY_JOIN
#define MAXMEMHEAP 2687
#else
- Right-click on CC2531 - ProdHex* and click Rebuild all.
- Once finished, you can find the
.hex
file inZ-Stack Home 1.2.2a.44539\Projects\zstack\ZNP\CC253x\dev
.