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.

CC2538: How to modify CC2538 ZNP code with Z-Tool Application using a USB-Serial Converter .

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

I am in a similiar situation with the one in e2e.ti.com/.../795089

I set flowcontrol false, BR 115200 and MT_SYS_KEY_MANAGEMENT flag set in C/C++ Compiler -> Preprocessor tab .

My existing code is on CC2538ZNP-Debug,and i flash the D:/Texas Instruments/Z-Stack 3.0.1/Projects/zstack/ZNP/CC2538/CC2538ZNP-Debug/Exe/ZNP.out.

I use a USB-Serial Converter by connecting GND , EM_UART_TX & EM_UART_RX pins of SmartRF06.

And i removed the jumper on Enable UART over XDS100v3 pins.

 

But there is still the "no device found" response.

My set is like the attachments.Is there anythings wrong?

 Thanks.

 

 

  • For UART init parameters, you should revise the one in npInit of znp_app.c. I just verify it again on my CC2538DK and it works correctly.
  • I revised the code just like the attachement.But there is still 'no device found'.I am using  SmartRF06 Evaluation Board.

    Do I need to revise the flag set in C/C++ Compiler -> Preprocessor tab? And how? Thanks.

    My flag is like this.

    HAL_UART_USB
    USB_SETUP_MAX_NUMBER_OF_INTERFACES=5
    xHAL_SPI=TRUE
    HAL_UART=TRUE
    BDB_FINDING_BINDING_CAPABILITY_ENABLED=0
    TC_LINKKEY_JOIN
    ewarm
    CC2538_USE_ALTERNATE_INTERRUPT_MAP=1
    CC2538ZNP
    ZNP_ALT
    xPOWER_SAVING
    FEATURE_SYSTEM_STATS
    FEATURE_RESET_MACRO
    ZDNWKMGR_MIN_TRANSMISSIONS=0
    MT_UART_DEFAULT_OVERFLOW=FALSE
    ASSERT_RESET
    FAKE_CRC_SHDW
    ZCL_READ
    ZCL_DISCOVER
    ZCL_WRITE
    ZCL_BASIC

    I am doing my  graduation design. It is urgent.

  • My board is like the attachment.

  • You have to disable HAL_UART_USB. The followings are my predefined symbols.

    xHAL_UART_USB
    MT_SYS_KEY_MANAGEMEN
    USB_SETUP_MAX_NUMBER_OF_INTERFACES=5
    xHAL_SPI=TRUE
    HAL_UART=TRUE
    ZNP_ALT
    BDB_FINDING_BINDING_CAPABILITY_ENABLED=0
    DISABLE_GREENPOWER_BASIC_PROXY
    TC_LINKKEY_JOIN
    ewarm
    CC2538_USE_ALTERNATE_INTERRUPT_MAP=1
    CC2538ZNP
    ZNP_ALT
    xPOWER_SAVING
    FEATURE_SYSTEM_STATS
    FEATURE_RESET_MACRO
    ZDNWKMGR_MIN_TRANSMISSIONS=0
    MT_UART_DEFAULT_OVERFLOW=FALSE
    ASSERT_RESET
    FAKE_CRC_SHDW
    ZCL_READ
    ZCL_DISCOVER
    ZCL_WRITE
    ZCL_BASIC
  • Thank you so much.It works now.