Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change component to "BlueNRG_2" from "BlueNRG_MS" #394

Open
aaron-yang-dev opened this issue Dec 14, 2022 · 0 comments
Open

How to change component to "BlueNRG_2" from "BlueNRG_MS" #394

aaron-yang-dev opened this issue Dec 14, 2022 · 0 comments

Comments

@aaron-yang-dev
Copy link

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.

Cannot specify link libraries target "mbed-ble-bluenrg2" which is not built by this project.

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 ?

  1. Replace "BlueNRG_MS" to "BlueNRG_2" in line17
  2. Add cmd in shell as below:
    mbed-tools configure -m NUCLEO_F401RE -t GCC_ARM
    mbed-tools compile -m NUCLEO_F401RE  -t GCC_ARM

Log

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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant