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.

Problem for replacing Z-Tool Interface from UART to USB CDC on CC2538 HA 1.2

Other Parts Discussed in Thread: CC2538, Z-STACK

■ Goal : To replace the Z-Tool interface from UART to USB CDC for custom design.

△ SmartRF06EB contains the XDS100v3 JTAG, so this debugger works as JTAG and serial port.

     However I would like to use the alternatives - J-Link & USB CDC (virtual serial port), because of more usefulness.

■ Build OK and succeed to connect Z-Tool, but does not respond in Z-Tool.

1. to Build

    -  add HAL_UART_USB in Defined Symbol

    - add the followings in Additional Include directories

        $PROJ_DIR$\..\..\..\..\..\Components\usblib\cc2538\source\library

        $PROJ_DIR$\..\..\..\..\..\Components\usblib\cc2538\source\library\cc2538

        $PROJ_DIR$\..\..\..\..\..\Components\usblib\cc2538\source\class_cdc

    - add the followings in Additional libraries

        $PROJ_DIR$\..\..\..\..\..\Components\usblib\cc2538\bin\iar\usblib.lib

        $PROJ_DIR$\..\..\..\..\..\Components\usblib\cc2538\bin\iar\usbcdc.lib

2. to Connect Z-Tool

    a. Connect an additional USB cable to CC2538EM.

    b. Install signed USB driver in the cc2538_foundation_firmware_1_0_1_0

    c. Check the port in the device manager.

    d. Connect the Z-Tool with the previously check com port.

3. CC2538 does not respond to any command in the Z-Tool.

I'm currently blocked in this problem. Are there anybody solving the problem?

  • Hi,

    foundation firmware does not support MT interface (the one that Z-tool uses).

    I would recommend you use ZNP workspace on Z-stack Home 1.2.0 and the USB port on the 2538EM, not the one on the SmartRF06.

    Please see this post for more details http://e2e.ti.com/support/wireless_connectivity/f/158/p/337372/1181556.aspx#1181556

    Thanks,

    TheDarkSide

  • Thanks for your attention.

    I tested more trials like the following.

    : firmware 1_0_1_0 → SampleSwitch in Z-Stack HA 1.2

    The fault of my previous work is selecting the SYS_RESET as first command.

    Except the SYS_RESET command, all other commands are working.

    After connecting with Z-Tool, SYS_RESET would also disconnect the USB CDC.

    Z-Tool seemed to be work but the connection of USB CDC was already disconnected.

    The Virtual COM library has fault in baudrate configuration.

    However, I prefer this simple way, because of light load for cc2538.

  • Hai
    My Aim : to have a custom app communicate with cc2538 over the usb ( something like updating firmware )
    I was able to configure the cc2538 to detect as usb cdc device in PC. But now am stuck because i need to know how the cc2538 can process my data from the PC app.
    In the Z mesh project i have tested this with Z tool . The Z tool commands are processed using MT_processevent task handler . Is there any other feasible option or should i create a task handler for my commands ?
    can i monitor what are the incoming messages from my app ?
    Any help is appreciated .
    thanks in advance.