EVK BMD-345 - User guide
UBX-19051533 - R01
Contents
Page 20 of 27
3.3
Modify an example to enable the PA / LNA
The BMD-345 incorporates both the Nordic Semiconductor nRF52840 SoC and Skyworks RFX2411
RF front end (PA / LNA). The front end must be configured in order for the module to function properly.
This guide shows an example of the dynamic control using the S140 SoftDevice. Other types of
control are discussed in the BMD-345 data sheet.
3.3.1
Example setup
It’s good practice to create a copy of an SDK example so the original code is not modified. For the
example here, start with the ble_app_blinky example:
C:\u-blox\nRF5_SDK_16.0.0_98a08e2\examples\ble_peripheral\ble_app_blinky
Copy the entire folder structure to a new folder in the same example folder, for example:
C:\u-blox\nRF5_SDK_16.0.0_98a08e2\examples\ble_peripheral\ble_app_blinky_sd
Add a file called custom_board.h. This is used to define the required GPIO. It’s easiest to start with the
existing nRF52840 DK configuration file, pca10056.h, which is located here:
C:\u-blox\nRF5_SDK_16.0.0_98a08e2\components\boards\pca10056.h
Copy and rename it to:
C:\u
-
blox\nRF5_SDK_16.0.0_98a08e2\examples\ble_peripheral\ble_app_blinky_sd\pca10056\s140
\config\custom_board.h
Open the copied example in SEGGER Embedded Studio (SES):
C:\u
-
blox\nRF5_SDK_16.0.0_98a08e2\examples\ble_peripheral\
ble_app_blinky_sd
\pca10056\s140
\ses\ble_app_blinky_pca10056_s140.emProject
Right-click on the “Application” folder.
Select “Add existing file”. Navigate to the custom_board.h file. The project should now look like this:
Figure 17: Add custom_board.h to project