SAM9X75 Curiosity Wireless Kit - BLE Getting Started Guide for MPLAB® Harmony V3

Last modified by Microchip on 2025/01/08 13:45

Introduction

Thank you for evaluating the SAM9X75 Curiosity Wireless Kit. This guide will assist you in running the demonstration application designed for the kit. For a more detailed exploration of the kit's features and capabilities, please refer to the links in this guide's Explore Hardware section.

Information

Confirm the following components are present out of the box:

  • SAM9X75 Curiosity Board
  • LAN8840 EDS2 SODIMM extension board (P/N: EV12N54A)
  • RNBD451 Add-on Board (P/N EV25F14A)
  • WILCS02 M.2 Wi-Fi® Module Card (P/N EV59Y78A)
  • SD card
  • USB A to Micro-USB (power)

Required components not included in the box:

  • Serial to USB dongle
  • USB A to USB C cable
  • Microchip Bluetooth® Data (MBD) App (to be installed on a smartphone via the Apple® App Store® for iPhone® or Google Play™ Store for Android™)
  • Download and install the Docklight Scripting PC App
  • Download and install the TeraTerm open source terminal emulator

This getting started guide will demonstrate how to enable Transparent Universal Asynchronous Receiver Transmitter (UART) communication between a smartphone and the SAM9X75 Curiosity Board using a Bluetooth Low Energy (BLE) connection.

Step-by-Step Guide to Set Up RNBD Module for Data Mode

Set up RNBD module for Data mode:

Set the J2 power selection jumper of the RNBD451 board to USB - 3v3.

Connect the USB-C cable to the PC. This will power up the board and connect your serial port.

RNBD Data Mode jumper setting image

On the host computer, open a Docklight Scripting serial terminal application and Add Serial Command sequence as shown.

Double-click in the highlighted text box.

Docklight scripting image

Add the Command 1 serial sequence data to be sent.

Docklight Command1 image

Double-click in the highlighted text box.

Docklight open text for command 2 image

Add the Command 2 serial sequence data to be sent.

Docklight adding command 2 image

Double-click on the top right corner as shown to set up the Serial Baudrate settings and select the USB serial device channel.

Docklight serial setting image

Open the Serial Communication Port by double-clicking on the highlighted area.

Docklight open Serial terminal image

Serial port open status

 

Issue the serial commands and response from RNBD451 as shown.

Command Sequence1:

Issue Command1 sequence

Command Sequence 2:

Issue Command2 Sequence

Back to Top

Step-by-Step Guide to Download and Install Microchip Bluetooth Data App from Google Play Store and Apple Store

Set up for Android Smartphone:

On your Android device, locate the Google Play Store icon (usually found on the home screen or in the app drawer) and tap it to open the Google Play Store.


At the top of the Play Store, tap the search bar and type "Microchip Bluetooth Data".

Android MBD Search


On the app's page, tap the Install button.

Android MBD Install Steps

Back to Top

Setup for Apple iPhone

On your Apple device, locate the App Store icon (usually found on the home screen or in the app drawer) and tap it to open the App Store.


At the top of the App Store, tap the search bar and type "Microchip Bluetooth Data" app to download.

iPhone Store MBD Search


On the app's page, tap the GET button.

IPhone Install MBD

Back to Top

MPLAB® Harmony Demo Setup

Download the harmony.bin & boot.bin from the repository, GitHub_EA03X56A-ble.

Back to Top


Copy the downloaded harmony.bin and boot.bin to the SD card. 

Back to Top


Set the J2 power selection jumper of RNBD451 board to mikro - 3v3

Connection setup

Back to Top


Connect the components as shown in the accompanying image:

Connect the RNDB451 BLE Add-on Board to the J25 mikroBus™ connector.

Insert the SD card on the SD Boot J14 slot.

Connect the serial-USB dongle to the UART DEBUG J35 header.

Connect the USB-A to Micro ​​​​​USB-B cable to the J2 Micro ​​​​USB-B port for power.

Connect components

Back to Top

Set Up and Start SAM9X75 Curiosity Board Serial Terminal

Set up SAM9X75 Curiosity Board Serial Terminal on Host Computer.

On the host computer, open a Serial terminal with the following settings:

  • Baud Rate: 115200
  • Data: 8-bit
  • Parity: None
  • Stop: 1-bit
  • Flow Control: None

Open TeraTerm.

TeraTerm Image

On the file, select New connection > Serial.

Information

Note: The Serial Line (COM24) can be confirmed using the Window's Device Manager. Set to the Device Manager assigned line.

TeraTerm Choosing Serial

Press OK.

Click on Setup > Serial port....

Serial Port selection

Select Baudrate Speed to 115200.

Serial port baudrate

 

Select Setup > Terminal.

TeraTerm Setup Terminal Image

Check the boxes as shown below.

TeraTerm Setup Local Echo tx

Back to Top


Press the RESET (SW3) button on the SAM9X75 Curiosity Board to force a reset.

When the system is ready, the Serial Terminal that was set up earlier should show a prompt. 

Verify that the TRP UART Harmony application is running and binaries are loaded on the terminal.

H3 Boot Image

Back to Top

Set Up the Mobile Application

Select BLE UART.

BLE UART SubApp


Select the PIC32CXBZ option.

PIC32CXBZ MBD Image  


Scan for devices and once RNBD451_6BD1 is listed, cancel the scan.

MBD PIC32CXBZ Scan  Harmony Scan Copmlete Image


Pair and connect to the RNDB451.

Harmony Pair and Connect


Enable the text mode.

Harmony Text Mode Enable

TeraTerm TextMode Enable Console

Back to Top

Perform the Test

Perform the test to exchange the Text Message from Mobile to Console and vice versa.

Type the text to be sent on the mobile app then press SEND.

Text Message From MBD to Console

TeraTerm Console:

Console log message from MBD APP

Send a text message from Tera Term Console to MBD APP.

Press Enter and start typing from the console:

Text Message From Console to MBD APP

Received Message Confirmation in the MBD Mobile APP:

Message from Console to Mobile APP Image

Back to Top

Explore Applications

Wireless Applications

The SAM9X75 Curiosity Wireless Kit has a soft access point (SoftAP) that allows a smartphone or PC to access a static web page through a browser (See the "SAM9X75 Curiosity Wireless Kit—WiFi Getting Started Guide for Linux®"page).

Ethernet Applications

Iperf networking test between Host PC (as a TCP Client) on Microchip Curiosity Board (as a TCP Server) (See the "SAM9X75 Curiosity LAN Kit - Getting Started Guide for MPLAB® Harmony V3" page.)

MPLAB Discover Code ExamplesSAM9X75 Peripherals and Drivers Code Examples

Back to Top

Explore Hardware

SAM9X75 Curiosity LAN KitThe SAM9X75 Curiosity Development Board, featuring the high-performance, ultra-low power SAM9X75D2G MPU with an ARM926EJ-S CPU running up to 800 MHz and integrated 2 Gbit DDR3L memory, serves as the evaluation platform for the SAM9X7 Series MPU devices.

The RNBD451 Add-on Board is a cost-effective development platform for evaluating the RNBD451PE Bluetooth LE module. It features compliance with the mikroBUS standard and an onboard MCP2200 USB-to-UART converter for immediate use without additional hardware.

LAN8840 EDS2 Daughter Card

The EV12N54A LAN8840 EDS2 PHY Daughter Card offers copper Gigabit Ethernet connectivity for Microchip development platforms using the EDS2 interface.  It features the LAN8840 transceiver with PTP support for data transmission over standard CAT-5, CAT-5e, and CAT-6 UTP cables.

WINCS02UC Wi-Fi Network Controller Module

The WINCS02IC is a low-power IC featuring a 2.4 GHz IEEE 802.11b/g/n-compliant radio with integrated HPA, LNA, RF switches for TX/RX control, and a hardware-based security accelerator, designed to run Microchip's Wi-Fi and networking stack via SPI.

Back to Top

Troubleshooting

Common

Serial Terminal is not showing anything.

There are multiple possible reasons why the terminal does not show anything:

  • Double-check if the RX-TX signals of the serial cable are properly connected to the RX-TX signals of the board.
  • Double-check that the ground signal is properly connected.
  • Verify that the SD card contains the right files.
Terminal shows RomBoot message.
  • Verify that the SD card contains the right files.
  • Verify that the SD card is inserted properly.

Back to Top