EFR32x是Silicon Labs推出的低功耗高性能芯片,官方提供的开发平台是Simplicity Studio,是基于eclipse进行深度定制的集成开发环境,提供演示例程、代码编写调试、能耗分析、网络分析、硬件配置、sdk更新下载、文档下载等功能。这方面的资料较少,开发需要耐心。更新SDK建议先从官房GIT下载https://github.com/SiliconLabs
有过Nodic蓝牙开发比较容易上手,这家公司国内用的多,资料比价容易找。
开发界面:
demo工程:bt_soc_xg24_dev_kit_brd2601b为开发板整体测试的。
main:
int main(void)
{
// Initialize Silicon Labs device, system, service(s) and protocol stack(s).
// Note that if the kernel is present, processing task(s) will be created by
// this call.
sl_system_init();
// Initialize the application. For example, create periodic timer(s) or
// task(s) if the kernel is present.
app_init();
#if defined(SL_CATALOG_KERNEL_PRESENT)
// Start the kernel. Task(s) created in app_init() will start running.
sl_system_kernel_start();
#else // SL_CATALOG_KERNEL_PRESENT
while (1) {
// Do not remove this call: Silicon Labs components process action routine
// must be called from the super loop.
sl_system_process_action();
// Application process.
app_process_action();
#if defined(SL_CATALOG_POWER_MANAGER_PRESENT)
// Let the CPU go to sleep if the system allows it.
sl_power_manager_sleep();
#endif
}
#endif // SL_CATALOG_KERNEL_PRESENT
}
debug下载:可以看到板子各种传感器信息