I have two boards, one is NUCLEO-L446RE, the other is NUCLEO-BNRG2A1. I want to modify the app_main.json in the BLE_Advertising example and change "BlueNRG_MS" to "BlueNRG_2". But I got an error.
Cannot specify link libraries target "mbed-ble-bluenrg2" which is not built by this project.
Configuring project and generating build system...
CMake Error at mbed-os/connectivity/drivers/ble/FEATURE_BLE/COMPONENT_BlueNRG_2/CMakeLists.txt:4 (target_sources):
Cannot specify sources for target "mbed-ble-bluenrg2" which is not built by
this project.
CMake Error at mbed-os/connectivity/drivers/ble/FEATURE_BLE/COMPONENT_BlueNRG_2/CMakeLists.txt:9 (target_link_libraries):
Cannot specify link libraries for target "mbed-ble-bluenrg2" which is not
built by this project.
-- Configuring incomplete, errors occurred!
See also "/mbed/mbed-os-example-ble/BLE_Advertising/cmake_build/NUCLEO_F401RE/debug/GCC_ARM/CMakeFiles/CMakeOutput.log".
See also "/mbed/mbed-os-example-ble/BLE_Advertising/cmake_build/NUCLEO_F401RE/debug/GCC_ARM/CMakeFiles/CMakeError.log".
ERROR: CMake invocation failed!
Problem
I have two boards, one is NUCLEO-L446RE, the other is NUCLEO-BNRG2A1. I want to modify the app_main.json in the BLE_Advertising example and change "BlueNRG_MS" to "BlueNRG_2". But I got an error.
mbed cli V2 version is
7.59.0
arm-none-eabi-gcc version is
10.3.1 20210824
mbed-os branch is
master
How is this defect reproduced ?
Log