下载了nRF5 SDK 17.1.0, 用的是 arm gcc 环境, 因为和例子里的硬件不一样, 基于同样是nRF52840的设备 10056 修改了一下 led 和 button 的定义 (文件 components/boards/pca10056.h)
#define LED_1 NRF_GPIO_PIN_MAP(0,6)
#define LED_2 NRF_GPIO_PIN_MAP(0,8)
#define LED_3 NRF_GPIO_PIN_MAP(0,15)
#define LED_4 NRF_GPIO_PIN_MAP(0,17)
#define LED_START LED_1
#define LED_STOP LED_4
#define LEDS_ACTIVE_STATE 0
#define LEDS_LIST { LED_1, LED_2, LED_3, LED_4 }
#define LEDS_INV_MASK LEDS_MASK
#define BSP_LED_0 6#define BSP_LED_1 8#define BSP_LED_2 15#define BSP_LED_3 17
#define BUTTONS_NUMBER 4
#define BUTTON_1 11#define BUTTON_2 20#define BUTTON_3 22#define BUTTON_4 24#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
之后编译运行 examples/peripheral 下的例子没问题, 编译用的是 gcc-arm-none-eabi-10-2020-q4-major
已经跑通了 blinky, blinky_freertos, temperature 这几个例子.
但是带蓝牙的例子, 例如 examples/ble_peripheral/ble_app_blinky, 一直没跑通. 编译可以正常编译, 生成hex, 但是写入板子后貌似不能运行, 没有蓝牙信号.
这个板子如果要跑蓝牙的例子, 需要调整什么设置吗?