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.
你後來是怎樣是搞出來? 是的两个开发板都要下载程序,接下来就去參考一下 sunmaysky.blogspot.com/.../use-ztool-z-stack-30-znp-to-set-up.html
我后来是把引脚配置好,就启动了,我看了你推荐我的文章,我的意思要两个开发板下载同样的程序吗,还是各下各的。
Z-Stack 3.0定义在Stack/Config/znp_cnf.opts里
我用的是原始協議棧沒有修改過的,跟你的會是一模一樣。你試試到OnBoard.c里的InitBoard()把下面的程序
#if defined CC2531ZNP znpCfg1 = ZNP_CFG1_UART; #elif defined CC2530_MK znpCfg1 = ZNP_CFG1_SPI; znpCfg0 = ZNP_CFG0_32K_OSC; #else znpCfg1 = P2_0; znpCfg0 = P1_2; // Tri-state the 2 CFG inputs after being read (see hal_board_cfg_xxx.h for CFG0.) P1INP |= BV(2); P2INP |= BV(0); #endif
改成
#if defined CC2531ZNP znpCfg1 = ZNP_CFG1_UART; #elif defined CC2530_MK znpCfg1 = ZNP_CFG1_UART; znpCfg0 = ZNP_CFG0_32K_OSC; #else znpCfg1 = ZNP_CFG1_UART; znpCfg0 = ZNP_CFG0_32K_OSC; // Tri-state the 2 CFG inputs after being read (see hal_board_cfg_xxx.h for CFG0.) P1INP |= BV(2); P2INP |= BV(0); #endif
再試試