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.

Z-STACK: Cloning Z-Stack Network Properties Using the SimpleLink™ Wireless MCU Family

Part Number: Z-STACK
Other Parts Discussed in Thread: CC1352R

Hi TI !
I need to Cloning Z-Stack Network Properties from the CC1352-ZNP device.
Please, I have checked the documentation, if is possible please, check my practical problems / questions below.

There are some things not clear for me from the documentation.

Question 1-):
1-) Which one the MT command for read Z-Stack Network Properties?

If the answer is: SYS_NV_READ, I have the following problems:

Problem 1-)
I am sending via UART to my CC1352-ZNP the SYS_NV_READ command for to read ZCD_NV_EX_NWK_SEC_MATERIAL_TABLE.
I am sending:
0xFE 0x08 0x21 0x33 0x01 0x00 0x07 0x00 0x00 0x00 0x00 0x0C 0x10
The answer from the CC1352-ZNP:
0xFE 0x02 0x61 0x33 0x07 0x00 0x57


Question 2-)
2-) I did expect to get the a data stream of 12 bytes. Why I can't get the 12 bytes readed fron the NV memory?

Question 3-)
Which one the MT command for read ZCD_NC_PANID?

Which is the command correct  format?

Thank you very much, Best regards

  • Hi albgarc,

    Here is the Application Report in question and the Monitor and Test API.  SYS_NV_READ is correct for table entries, SYS_OSAL_NV_READ for non-tables (like ZCD_NV_PANID).  Did you pre-define FEATURE_NVEXID and MT_SYS_KEY_MANAGEMENT as instructed in SWRA671?  Have you followed all instructions to run the example successfully?

    Regards,
    Ryan

  • Hi Bryan !
    Sincerely thank you very much for your answer.
    Thank you very much for the clarification.
    Yes, I have checked SWRA671 and Monitor and Test API, but I haven't success. I need to find where is the problem.
    Yes, I have the pre-define FEATURE_NVEXID and MT_SYS_KEY_MANAGEMENT.

    Two practical examples of my problem:


    1-) I am sendidng the command SYS_OSAL_NV_READ for get the ZCD_NV_PANID.
    The command:
    0xFE 0x04 0x21 0x08 0x00 0x83 0x00 0x00 0xAE
    The answer:
    0xFE 0x02 0x61 0x08 0x02 0x00 0x69
    My problem is: in the answer I have't the PANID.
    Please, has do you idea about the reason of this problem? Please, has do you idea of the solution?

    2-) I am sendidng the command SYS_NV_READ for get the ZCD_NV_EX_NWK_SEC_MATERIAL_TABLE.
    The command: 0xFE 0x08 0x21 0x33 0x01 0x00 0x07 0x00 0x00 0x00 0x00 0x0C 0x10
    The answer:
    0xFE 0x02 0x61 0x33 0x07 0x00 0x57
    My problem is: in the answer I have't the ZCD_NV_EX_NWK_SEC_MATERIAL_TABLE.
    Please, has do you idea about the reason of this problem? Please, has do you idea of the solution?

    Sincerely, thank you very much again. 

    Best rgards

  • Hi albgarc,

    Did you clean and rebuild the project after setting the ZNP pre-defines, and did you erase all flash memory before re-programming the CC1352R (/P) device?  The length of SYS_OSAL_NV_READ should be 3 as stated in the MT API.  I was able to confirm these commands using Z-Tool and recommend that you use this software to further evaluate the UART packet structure.

    Regards,
    Ryan

  • Hi Ryan, 

    Thank you vey much

    I am advancing, my previous problem was that I inverted the Bytes lsb and msb in the fields with 2 bytes.
    All read command are ok for me, now I have problem with the write commands. I must to erase flash (or other tips) befor to issue a SYS_OSAL_NV_WRITE / SYS_NV_WRITE?

    Thank you vey much.

    Best Regards

  • Hello albgarc,

    I'm glad to hear you are making progress.  It is not required to erase NV items before writing to them but they must first be initialized.  What specific issues are you observing?  Be sure to provide specific instances and examples.

    Regards,
    Ryan

  • All is solved, I did capture the commands issued for the sample tool.

    Thank you very much.

    Best Rgerds