转载请注明出处,谢谢!
Msming 2019-6-26
ZigBee 3.0 EmberZNet EFR32MG 学习笔记-目录
ZigBee 3.0 EmberZNet EFR32MG 学习笔记-10-完全关闭EmberZNet中的默认打印和CLI
环境:Windows 10、Simplicity Studio 4
SDK: EmberZnet SDK 6.5.5.0
工程:Z3SwitchSoc
- 打开.isc配置文件,根据红色画线处配置,重新生成代码,如下图:
- 打开.hwconf硬件配置文件,根据红色画线配置,重新生成代码,如下图:
在生成的头文件(Z3SwitchSoc.h)找到如下定义,将其屏蔽掉,这里要吐槽一下,虽然在.isc配置文件中我们已经将CLI选择为“None”,但是生成的代码依然是“FULL”,不合理,所以我们要手动改动代码。
/**** HAL Section ****/
#define ZA_CLI_FULL //注释此行代码
更新:
The ZA_CLI_FULL macro is defined by the ZCL Framework Core plugin if its “Enable Command Line for Legacy CLI” is checked-in.
Disable this box and re-generate the project, then the .h file should not contain the macro anymore.
- 重新编译后就可以了。