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.
Hi All,
I'm using CC2538 as the Coordinator to setup a big network. I set the ZDSECMGR_TC_DEVICE_MAX to 150 on CC2538 in Z-Stack 3.0.1.
NV_RESTORE is enabled in my project.
When I power up the CC2538, it will create a new PANID network first time.
When I power cycle the device, it will create another new PANID network.
I'm confused why it create a new network PANID.
Thanks.
Hi Q W,
I have replicated the issue and am passing along to the Software Development Team, we will return with the suggested resolution shortly.
Regards,
Ryan
Hi Ryan,
I tried to increase the NV memory pages, but still have the issue.
From the NV items define below, it should more than 150 nodes.
#define ZCD_NV_TCLK_TABLE_START 0x0111
#define ZCD_NV_TCLK_TABLE_END 0x01FF
Thanks.
Hi Ryan,
In Zigbee 3.0 specification, this parameters will directly influence the capacity of large network.
Hope we can solve it as soon as possible.
Thanks.
All,
The issue is resolved for CC253x devices once increasing HAL_NV_PAGE_CNT to 12 and OSAL_NV_PHY_PER_PG to 2 as well as modifying NV_MEM and FLASH in the CC2538.icf:
FLASH = mem:[from 0x00200000 to 0x002797FF];
NV_MEM = mem:[from 0x00279800 to 0x0027F7FF];
The CC13x2 and CC26x2 devices use a completely different NV driver we are still working towards resolution on this platform.
Regards,
Ryan
Hello Ryan,
I get the following linker error even after implementing the recommended fix.
#define ZDSECMGR_TC_DEVICE_MAX 235//default value is 40
Error[Lp011]: section placement failed
unable to allocate space for sections/blocks with a total estimated minimum size of 0x42c8 bytes (max align 0x4) in <[0x2000'4000-0x2000'7fff]> (total uncommitted space 0x3f00).
Error[Lp021]: the destination for compressed initializer batch "P3-1" is placed at an address that is dependent on the size of the batch, which is not allowed when using lz77 compression. Consider using "initialize by copy with packing = zeros" (or none) instead.
Hello Prem,
Please regard my previous post (which has been edited) and make sure you are using the proper IAR version and compiler optimizations.
Regards,
Ryan
Hello Ryan,
I am using the below mentioned IAR version and compiler optimizations:
1) IAR EW for Arm v8.30.1
2) Compiler optimization set to High
3)using ZNP-CC2538ZNP-with-SBL project
default value in CC2538-sb.icf
1)FLASH = mem:[from 0x00200134 to 0x0027AFFF];
2)NV_MEM = mem:[from 0x0027C800 to 0x0027F7FF];
Still throws the same Error
I notice that the linker configuration values have not been changed as requested. Also, EWARM 8.22.1 should be used.
Regards,
Ryan
we changed the values as recommanded -
FLASH = mem:[from 0x00200000 to 0x002797FF];
NV_MEM = mem:[from 0x00279800 to 0x0027F7FF];
But it show the same error.
Also Note that we are using using ZNP-CC2538ZNP-with-SBL project.
Do you want us to use cc2538.icf file instead of CC2538-sb.icf in linker ??
I tried reducing the number. So I am able to compile the code for up to " #define ZDSECMGR_TC_DEVICE_MAX 140" only.
But my requirement to have support for 250 devices.
But with the recommended settings(same as below ) My gateway does not start and cc2538 does not appear in USB com port devices list.
HAL_NV_PAGE_CNT to 12
OSAL_NV_PHY_PER_PG 2
NV_MEM and FLASH in the CC2538.icf:
FLASH = mem:[from 0x00200000 to 0x002797FF];
NV_MEM = mem:[from 0x00279800 to 0x0027F7FF];
Hi, Ryan.
How do I change the parameters of the "CC2538_SBL_UART" project?
I set HAL_NV_PAGE_CNT to 12 and OSAL_NV_PHY_PER_PG to 2.
FLASH = mem:[from 0x00200000 to 0x002797FF];
NV_MEM = mem:[from 0x00279800 to 0x0027F7FF];
Then successfully compile the project.
However, when I downloaded the boot program to CC2538, IAR appeared the message "There were warnings while generating flash loader input."
See "Debug log" for details: