1680.Connect Z-Tool with Stellaris

Download Report

Transcript 1680.Connect Z-Tool with Stellaris

Connect Z-Tool with Stellaris
[email protected]
Z-Tool Overview
• Monitor & Test (MT)
Interface
• Z-Tool
– Issue MT Commands
to ZigBee Device
1. Compiler Options
SampleApp’s
•
•
•
•
IAR_ARMCM3_LM
LCD_SUPPORTED
BUILD_ALL_DEVICES
HOLD_AUTO_START
Additional Options
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
IAR_ARMCM3_LM
LCD_SUPPORTED
BUILD_ALL_DEVICES
HOLD_AUTO_START
ZTOOL_P1
MT_AF_FUNC
MT_AF_CB_FUNC
MT_APP_FUNC
MT_DEBUG_FUNC
MT_NWK_FUNC
MT_NWK_CB_FUNC
MT_SYS_FUNC
MT_TASK
MT_UTIL_FUNC
MT_ZDO_FUNC
MT_ZDO_CB_FUNC
Not Supported Options
•
•
MT_SAPI_FUNC
MT_SAPI_CB_FUNC
1-1. Add Definition in EWARM
2. Code modification to works
\Components\mt \MT_DEBUG.c
•
Add to include sections
(due to MT_DEBUG_FUNC)
#include "mac_radio_defs.h"
Optional (HAL_KEY=FALSE)
•
\Components\hal\target
\LM3S9B96CC2520\hal_mac_cfg.h
#define HAL_MAC_CONFIG_TX_ACK_DONE_HIGH_LEVEL_INT()
{
GPIOIntTypeSet(HAL_MAC_TX_ACK_DONE_GPIO_PORT,
HAL_MAC_TX_ACK_DONE_GPIO_BIT,
GPIO_HIGH_LEVEL);
IntEnable(INT_GPIOJ);
}
\
\
\
\
\
\
3-1. Find Serial Port # of Stellaris
• Windows Device Manager
– Port (COM or LPT)
• Stellaris Virtual COM Port
• My System shows COM12
3-2. Serial Port Setting
Settings Window
Serial Port Settings
3-3. Successful Scanning