Rapid Prototyping with 32-bit MCU-based Curiosity Nano Evaluation Kit Using MPLAB® Harmony v3 Software Framework: Step 4
Configure Universal Synchronous Asynchronous Receiver Transmitter (USART) Peripheral Library and USART Pins
Under the Available Components tab, expand Peripherals > SERCOM.
Double-click on SERCOM3 to add the SERCOM instance 3 to the project.
Select the SERCOM3 Peripheral Library in the Project Graph, verify that the default SERCOM Operation Mode configuration is set as USART, and configure it.
Select the Pin Table tab and then scroll down to the SERCOM3 module as follows.
- Enable USART_TX (SERCOM3_PAD2) on PA24 (Pin #23)
- Enable USART_RX (SERCOM3_PAD3) on PA25 (Pin #24)
The BM71 XPRO needs two additional pins, one to reset the BLE module and the other to serve as the BM71 RX Indicator.
Configure these PORT pins needed by the BM71 XPRO in the MHC Pin Configurator as follows.
- Set the Custom Name as "BM71_RX_IND" on PA28 (Pin #27), Direction as Out, and Latch as High.
- Set the Custom Name as "STBYRST" on PA04 (Pin #04), Direction as Out, and Latch as High.
Under the Available Components tab, expand Tools, and add the STDIO component to the Project Graph. The BM71 driver has a dependency on the STDIO Library to print the logs.
Associate BM71 Driver
Associate the BM71 driver with the SERCOM instance 3 (USART) peripheral by right-clicking on the yellow diamond.
Configure Timer and Harmony Core Services
Under the Available Components tab, expand Harmony > System Services.
Double-click on TIME to add the timer system instance to the project.
Associate the TIME System Service with the timer instance 0 (TC0) peripheral by right-clicking on the red diamond.
Click on Harmony Core Service and configure as shown in Figure 10.