硬件平台为微雪BLE400的(将原来的16mhz晶振改为32mhz。两个旁电容改为22pf)
以nRF51_SDK_10.0.0_dc26b5e\examples\ble_peripheral\ble_app_uart项目为例
在main.c中进行修改
#if defined( USB_SYSTEM_CLOCK_32MHZ) #define DEVICE_NAME "Nordic_UART_32mhz" /**< Name of device. Will be included in the advertising data. */ #else #define DEVICE_NAME "Nordic_UART" /**< Name of device. Will be included in the advertising data. */