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.

Problems with ZNP example (Z-Stack 2.4.0)

Other Parts Discussed in Thread: CC2531, Z-STACK

 

Hello,

I am using Z-Stack 2.3.1's ZNP example with cc2531 to comunicate with my Zigbee network.

I want to upgrade the code to 2.4.0 stack.

My code is based in ZNP 2.3.1 stack's example and has some modifications. To upgrade, I have done the same modifications in the  ZNP 2.4.0 stack's example.

In Debug mode everything is OK, but when I change to ProdHex I have a problem.

when I have programmed the "*.hex" file in the cc2531 device, the computer doesn't recognize the device.

I don't understand it, because if I programme the device with 2.3.1's ZNP example "*.hex" file, the computer recognizes the device and everything is OK.

Can somebody help me with this problem?

  • Hello - you have found a bug that I have reported. In the meanwhile, you can work around it with this patch to InitBoard() in OnBoard.c:

    C:\Texas Instruments\ZStack-CC2530-2.4.0-1.4.0\Projects\zstack\ZMain\TI2530ZNP\OnBoard.c

    void InitBoard( uint8 level )
    {
      if ( level == OB_COLD )
      {
        // IAR does not zero-out this byte below the XSTACK.
        *(uint8 *)0x0 = 0;
        // Need to take ISR control from the embedded boot loader.
        *(uint8 *)0x1 = STACK_INIT_VALUE;
        // Interrupts off
        osal_int_disable( INTS_ALL );

  • Hello, 

    Thanks for you quickly answer.

    I have added the code and the problem has been solved.

    I think that you have a list of bugs and I want to get more information about it. Can you send me this list ? or Can I get it?

    Regards

  • Hello,

    I have found another problemm in ZNP proyect. Before to send start command the device is joinned to the PAN.

    Do you have the solution of it?

  • The ZAP Sample Apps are leaving the ZNP slave in a state in which it will restore its network settings on any powerup, until it is commanded to erase its network state and make a new join. Pay attention to how the ZAP sample apps control this NV item: ZCD_NV_STARTUP_OPTION

     

  • Hi Dirty Harry,

    I have read ZCD_NV_STARTUP_OPTION, and I have a question.

    In the 2.3.1 Zstack Version the ZNP doesn't restore its network when is powerup, and I want it. 

    Was the configution of the  ZCD_NV_STARTUP_OPTION the reason of the restore its network settings on powerup?

    Can you tell me how can i do to not restore the network settings on powerup?

  • It would probably help a lot working with the product to read the supporting documentation. So from here

    C:\Texas Instruments\ZAP-MSP430-2.5.0\Documents\CC2530ZNP Interface Specification.pdf

    ZCD_NV_STARTUP_OPTION

     

    Configuration ID: 0x0003; Size: 1 byte; Default value: 0

    This parameter controls the device startup options. This is a bit mask of the following values Bit position

    7-2

    1

    0

    Description

    Reserved

    STARTOPT_CLEAR_STATE

    STARTOPT_CLEAR_CONFIG

     

     

    STARTOPT_CLEAR_CONFIG – If this option is set, the device will overwrite all the configuration parameters (except this one) with the “default” values that it is programmed with. This is used to erase the existing configuration and bring the device into a known state.

    Note:

    The STARTOPT_CLEAR_CONFIG bit is read by the CC2530-ZNP device immediately when it powers up after a reset.

    When the configuration parameters are restored to defaults, the ZCD_NV_STARTUP_OPTION itself is not restored except for clearing the STARTOPT_CLEAR_CONFIG bit.

     

                     

    STARTOPT_CLEAR_STATE – If this option is set, the device will clear its previous network state (which would exist if the device had been operating on a network prior to the reset). This is typically used during application development. During regular device operation, this flag is typically not set, so that an accidental device reset will not cause loss of network state.

     

     

  • Hi Mr Dirty Harry.
    Would you can share with me the old Zstack CC2530-2.4.0-1.4.0?
    I have a device designed with this Old Zstack and i had lose that on my computer when my HD broken!

    BR
    Alex
  • I see Ravindra Kant is using Z-Stack 2.4.0 at e2e.ti.com/.../1799876 . Maybe you can send him a friend request and see if he can share it with you.