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.
我尝试拷贝了 zstack-home-1.21 home automation 里面的samplelight 例子, 工程名暂时不修改。
只在zcl_samplelight.c 中的 void zclSampleLight_Init( byte task_id ) 函数中添加
/*Testing */
MT_UartInit();
MT_UartRegisterTaskID(task_id);
HalUARTWrite(0, "It is easy \n", sizeof("It is easy \n"))
目的就是下载程序后,上电实现 开发板通过串口 往 PC 发送一串数据。
编译成功后,下载到板子 发现没有反应。
记得在头文件中添加
#include "MT_UART.h"
#include "MT_APP.h"
#include "MT.h"
而同样拷贝了 zstack-CC2530-2.51a home automation 里面的samplelight 例子, 做以上的修改,下载在同一款开发板上,确可以实现。