6 years, 11 months ago.

Does it support CLI?

I import BLE_API and nRF51822 with CLI. Error occurred.

Compile [ 95.9%]: btle.cpp [Error] btle.cpp@267,27: macro "ASSERT" passed 2 arguments, but takes just 1 [Error] btle.cpp@267,5: 'ASSERT' was not declared in this scope [ERROR] .\nRF51822\TARGET_NRF5\source\btle\btle.cpp:267:27: error: macro "ASSERT" passed 2 arguments, but takes just 1 ASSERT(false, (void) 0); ^ .\nRF51822\TARGET_NRF5\source\btle\btle.cpp: In function 'void assert_nrf_callback(uint16_t, const uint8_t*)': .\nRF51822\TARGET_NRF5\source\btle\btle.cpp:267:5: error: 'ASSERT' was not declared in this scope ASSERT(false, (void) 0); ^

[mbed] ERROR: "python" returned error code 1. [mbed] ERROR: Command "python -u C:\Users\Darren\Desktop\Ball_CLI\mbed-os\tools\make.py -t GCC_ARM -m nRF51_DK source . build .\BUILD\nRF51_DK\GCC_ARM" in "C:\Users\Darren\Desktop\Ball_CLI" -

Question relating to:

Bluetooth Low Energy (a.k.a Bluetooth LE, BTLE, Bluetooth Smart)

1 Answer

6 years, 10 months ago.

I believe the target should be: NRF51_DK

Andrea, team mbed

same error occurred when setting target to "NRF51_DK".

and when target was "NRF51822", other error info. Compile [ 92.1%]: fds.c [Error] fds.c@46,54: 'fs_callback' undeclared here (not in a function) [Warning] fds_types_internal.h@71,16: 'm_nested_critical' defined but not used [-Wunused-variable] [Warning] fds.c@1443,13: 'fs_callback' defined but not used [-Wunused-function] [ERROR] .\nRF51822\TARGET_MCU_NRF51822\sdk\source\libraries\fds\fds.c:46:54: error: 'fs_callback' undeclared here (not in a function) FS_SECTION_VARS_ADD(fs_config_t fs_config) = { .cb = fs_callback, .num_pages = FDS_MAX_PAGES }; ^ In file included from .\nRF51822\TARGET_MCU_NRF51822\sdk\source\libraries\fds\fds.c:38:0: .\nRF51822\TARGET_MCU_NRF51822\sdk\source\libraries\fds\fds_types_internal.h:71:16: warning: 'm_nested_critical' defined but not used [-Wunused-variable] static uint8_t m_nested_critical; ^ .\nRF51822\TARGET_MCU_NRF51822\sdk\source\libraries\fds\fds.c:1443:13: warning: 'fs_callback' defined but not used [-Wunused-function] static void fs_callback(uint8_t op_code, ^

[mbed] ERROR: "python" returned error code 1. [mbed] ERROR: Command "python -u C:\Users\Darren\Desktop\Ball_CLI\mbed-os\tools\make.py -t GCC_ARM -m NRF51822 source . build .\BUILD\NRF51822\GCC_ARM" in "C:\Users\Darren\Desktop\Ball_CLI" -

posted by Darren Huang 05 Jun 2017