Step 4.1: Configure Universal Synchronous Asynchronous Receiver Transmitter (USART) Peripheral Library and USART Pins
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.
Note: Here you are not connecting a UART (SERCOM), due to a shortage of pins on the PIC32CM MC00 Curiosity Nano Evaluation Kit.
Step 4.2: Associate BM71 Driver
Associate the BM71 driver with the SERCOM instance 3 (USART) peripheral by right-clicking on the yellow diamond.
Step 4.3: Configure Timer and Harmony Core Services
Note: This completes the configuration of UART, BM71 driver, Timer, and Harmony Core Service to interact with the BM71 Bluetooth module for wireless connectivity.