This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530-RF4CE: any tip to make cc2530 znp use less ram ?

Part Number: CC2530-RF4CE
Other Parts Discussed in Thread: CC2530, Z-STACK

hi

i use zstack 3.0.0 and znp in cc2530 that have 8KB ram that is so low that not allowing me to increase NWK_MAX_DEVICE_LIST more than 10 device that is so so so low

i need at least 128 device 

each device need 28 byte in XData memory

when compile znp project with these option 

BDB_FINDING_BINDING_CAPABILITY_ENABLED=0
TC_LINKKEY_JOIN
NWK_MAX_DEVICE_LIST=2
ZDSECMGR_TC_DEVICE_MAX=30
ZNP_ENABLED
FEATURE_SYSTEM_STATS
MT_GP_CB_FUNC
MT_SYS_FUNC
MT_UTIL_FUNC
MT_ZDO_FUNC
HAL_SPI=FALSE
HAL_UART=TRUE
NV_RESTORE
BDB_REPORTING
SECURE=1
TC_LINKKEY_JOIN
NV_INIT
NV_RESTORE
xZTOOL_P1
xMT_TASK
xMT_APP_FUNC
MT_SYS_FUNC
xMT_ZDO_FUNC
xMT_ZDO_MGMT
xMT_APP_CNF_FUNC
xLCD_SUPPORTED=DEBUG
MULTICAST_ENABLED=FALSE
ZCL_READ
ZCL_WRITE
ZCL_BASIC
ZCL_IDENTIFY
ZCL_ON_OFF
ZCL_SCENES
ZCL_GROUPS
xZCL_LEVEL_CTRL
POWER_SAVING

it give me this memory map

 251 264 bytes of CODE  memory
      33 bytes of DATA  memory (+ 70 absolute )
   7 707 bytes of XDATA memory
     192 bytes of IDATA memory
       8 bits  of BIT   memory
     396 bytes of CONST memory

and when ichange  NWK_MAX_DEVICE_LIST to 10 

it give me this memory map

 251 264 bytes of CODE  memory
      33 bytes of DATA  memory (+ 70 absolute )
   7 931 bytes of XDATA memory
     192 bytes of IDATA memory
       8 bits  of BIT   memory
     396 bytes of CONST memor

and when i increase it to 11 it give me this compile error

Error[e16]: Segment XDATA_I (size: 0xbf align: 0) is too long for segment definition. At least 0x18 more bytes needed. The problem occurred while processing the segment placement command  
"-Z(XDATA)XDATA_Z,XDATA_I=_XDATA_START-_XDATA_END", where at the moment of placement the available memory ranges were "XDATA:1e59-1eff" 
   Reserved ranges relevant to this placement: 
   XDATA:1-4d0          XSTACK 
   XDATA:4d1-1eff       XDATA_Z 
   BIT:0-7              BREG 
   BIT:80-87            SFR_AN 
   BIT:90-97            SFR_AN 
   BIT:a0-af            SFR_AN 
   BIT:b8-c7            SFR_AN 
   BIT:f8-ff            SFR_AN 
Error while running Linker 

what can i do to be able more device capable of connected to coordinator znp . now its 10 , how can i increase it?