Hi @JONATHAN LL
Hope you are doing well! Thank you for the support!
I want to integrate the two NCS projects . The first one is as mentioned below which is regarding the nrf21540 internal register read.
nrf21540 internal register read issues
And 2nd is "Radio test Example" NCS. Can you please guide me in this regard that how to integrate?
I tried it by copying 1st code in the "Radio test Example" main.c file. It compiled successfully but reboots continuously. 1st project is also accessing the SPI pins, CS and Pdn, and Radio test examples also the same pins.
These are the points I found to integrate!
-
Clone the NCS repository from GitHub (https://github.com/nrfconnect/sdk-nrf) and set up the environment as per the documentation.
-
Navigate to the
examples/radio
directory in the NCS repository. -
Copy the
CMakeLists.txt
file from the radio example directory to your project's directory. -
Copy the
src
directory and its contents from the radio example directory to your project's directory. -
Copy the
include
directory and its contents from the radio example directory to your project's directory. -
Update the
CMakeLists.txt
file in your project's directory to include the radio test example as a dependency. You can do this by adding the following lines to theCMakeLists.txt
file:
# Add radio test example as a dependency
add_subdirectory(radio)
target_link_libraries(${YOUR_PROJECT_NAME} PRIVATE radio_test)
After integrating the radio test example into your project, you should be able to use the functions and structures defined in the radio
directory to test the radio functionality of your device. You can also modify the example to fit your specific use case by changing the configurations and settings in the radio_config.h
file.
Thanks in Advance!
Regard,
Muhammad Usman