微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI Zigbee设计交流 > how to enable the "MT“ function via UART in "Gateway project" (CC2538+CC3000)

how to enable the "MT“ function via UART in "Gateway project" (CC2538+CC3000)

时间:10-02 整理:3721RD 点击:

i'm study the "gateway" solution , now the demo could works .

but in order to learn more about this solution , we want to open the MT function .

my steps as bellow : [ zstack 1.1.0, z-tools2.0, usb to serial cable]

1> add preprocessor symbles in the"gateway"  project options.

       ewarm

SECURE=1

HAL_UART=TRUE

ZTOOL_P1

MT_TASK

MT_SYS_FUNC

MT_ZDO_FUNC

MT_UART

MT_UTIL_FUNC

MT_AF_FUNC

MT_NWK_FUNC

LCD_SUPPORTED=DEBUG

CC2538_USE_ALTERNATE_INTERRUPT_MAP=1

HAL_LCD=FALSE

SELECT_TEST

2> disable the flowcontrol in the file MT_UART.c

        #if 0

         #ifdef ZNP_UART_TEST

         uartConfig.flowControl          = FALSE;

         #else

         uartConfig.flowControl          = TRUE;

         #endif

#else

         uartConfig.flowControl          = FALSE;

#endif

3> compile and download the binary into CC2538


4> open the Ztool2.0 with " datebits:8 rate:38400 parity:none handshake:none stopbits:1 " , but it can't find the devices at all.


so could anyone help to check if there were something wrong ? and what's the right settings for "gateway" to enable|open MT function


thank you .


Guohua,

Your setting seems ok.

Please verify the MT function on SmartRF06EB+CC2538EM platform.

 

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top