background image

 

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 

Содержание EVK BMD-345

Страница 1: ...stract This document describes how to set up the EVK BMD 345 evaluation kit to evaluate the BMD 345 modules It also describes the different options for debugging and the development capabilities inclu...

Страница 2: ...oducts names logos and designs included in this document Copying reproduction modification or disclosure to third parties of this document or any part thereof is only permitted with the express writte...

Страница 3: ...2 4 LEDs 9 2 5 Virtual COM port 10 2 6 32 kHz crystal oscillator 10 2 7 NFC connector 11 2 8 Current sensing headers 11 2 9 External SEGGER J Link debug interface 11 2 10QSPI 13 2 11GPIO jumpers 13 2...

Страница 4: ...ell as a USB peripheral connector user LEDs and a reset button 44 GPIO are available on headers that are compatible with the Arduino form factor This allows easy use of existing Arduino shields Curren...

Страница 5: ...SDK is your first stop for building fully featured reliable and secure applications with the nRF52 and nRF51 series It offers developers a wealth of varied modules and examples right across the spect...

Страница 6: ...rovided to allow by passing any of the protection diodes eliminating the voltage drop across them Care should be taken to not damage the supplies when the protection is by passed 2 1 1 Powering the bo...

Страница 7: ...by default Pressing reset while the interface IC is powered will cause a momentary reset signal on the RESET_N output of the interface IC which is connected via solder jumper to P0 18 of the BMD 345 m...

Страница 8: ...EVK BMD 345 User guide UBX 19051533 R01 Hardware description Page 8 of 27 Figure 4 Schematic Reset...

Страница 9: ...ser buttons The buttons and ESD protection can be completely removed from the circuit by breaking the associated jumper Figure 5 Schematic User buttons 2 4 LEDs User LEDs are provided on the evaluatio...

Страница 10: ...2 Virtual COM port connections Figure 7 Interface IC UART circuit 2 6 32 kHz crystal oscillator The evaluation board has a 32 768 kHz crystal oscillator connected to the BMD 345 module by default Thi...

Страница 11: ...e shield and the third pin to ground To measure current consumption use a multimeter or other precision voltage measurement device to measure voltage drop across pins one and two Current can also be m...

Страница 12: ...ating voltages outside 3 0 V to 3 3 V require the use of an external SEGGER J Link Debug Probe 2 EXT_SWDIO I O 3 GND Power Connect to SWDIO on the target hardware 4 EXT_SWDCLK O 5 GND Power Connect to...

Страница 13: ...re available to allow GPIO configuration Most solder jumpers are used to remove on board components from the module s GPIO nets to eliminate interference with external circuitry added on the I O heade...

Страница 14: ...pins of the BMD 345 EVK are not 5 V tolerant Arduino Uno style shields shall be configured to use 3 3 V DC VSHLD as the I O voltage reference The tables below are presented in order of the headers on...

Страница 15: ...P1 07 P1 07 GPIO 3 No connection 4 No connection 5 No connection 6 P1 03 P1 03 GPIO 7 No connection 8 P1 01 P1 01 GPIO Table 6 Header J7 Pin Pin name nRF52840 Function 1 P0 03 P0 03 GPIO AIN1 2 P0 04...

Страница 16: ...GPIO 9 P0 19 P0 19 OPEN GPIO QSPI CLK 10 P0 20 P0 20 OPEN GPIO QSPI DIO0 11 P0 21 P0 21 OPEN GPIO QSPI DIO1 12 P0 22 P0 22 OPEN GPIO QSPI DIO2 13 P0 23 P0 23 OPEN GPIO QSPI DIO3 14 P0 24 P0 24 GPIO 1...

Страница 17: ...referred Nordic SoftDevice Compatible Nordic DK BMD 345 EVAL nRF52840 S140 PCA10056 nRF52840 DK Table 11 u blox evaluation with Nordic DK cross reference 4 Install nRF Connect for desktop and optional...

Страница 18: ...nd then turn solid once the USB device is enumerated Some flickering is normal 3 After a few seconds the computer will recognize the evaluation board as a J Link device and install the USB Virtual COM...

Страница 19: ...titled mac_addr bin will be saved in the current directory The contents will contain the MAC address in little endian format 33 22 11 93 54 94 FF FF to correspond to the address 94 54 93 11 22 33 The...

Страница 20: ...ire 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...

Страница 21: ...tions The following window will appear Figure 18 Project options Click on Preprocessor then select Common from the drop down Figure 19 Preprocessor common options Double click on the Preprocessor Defi...

Страница 22: ...rd h A small block of code needs to be added to the application to enable this feature In main c add the following function above the advertising_start function static void pa_lna_assist uint32_t gpio...

Страница 23: ...f_gpio_pin_clear PA_MODE_PIN Set PA LNA Select Pin low for U FL nrf_gpio_cfg_output PA_A_SEL_PIN nrf_gpio_pin_clear PA_A_SEL_PIN Setup PA LNA TX and RX control pins with the SoftDevice pa_lna_assist P...

Страница 24: ...rol signals on logic analyzer Open the nRF Blinky mobile application Connect to the Nordic_Blinky device Figure 23 nRF Blinky scanning for devices LED1 will go off and LED2 will illuminate Operate the...

Страница 25: ...Page 25 of 27 Figure 24 nRF Blinky interaction with BMD 345 Eval nRF Connect can also be used to observe the RSSI and operate the example with manual interaction with the Bluetooth characteristics Fig...

Страница 26: ...data sheet 3 Nordic nRF52840 product specification 4 S140 SoftDevice specification 5 u blox package information guide doc no UBX 14001652 For regular updates to u blox documentation and to receive pr...

Страница 27: ...Office China Beijing Phone 86 10 68 133 545 E mail info_cn u blox com Support support_cn u blox com Regional Office China Chongqing Phone 86 23 6815 1588 E mail info_cn u blox com Support support_cn u...

Отзывы: