SAM9X75 Curiosity Wireless Kit - Wi-Fi® Getting Started Guide for Linux®

Last modified by Microchip on 2025/01/07 16:21

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 Applications" section.

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 USB C cable (power)

Required components not included in the box:

  • Serial to USB dongle

This getting started guide will help you enable the Soft Access Point (SoftAP) on the SAM9X75 Curiosity Wireless Kit. This allows a smartphone or PC to access a static web page through a browser.

Prepare M.2 Module Firmware Update

Program the WIxCS02 M.2 Wi-Fi Module with the correct firmware image.

Download the Harmony_support.bin and boot.bin files from the repository.

Warning:
The file named "boot.bin" is used in the programming of the M.2 module and during the application runtime.

These "boot.bin" files are two distinct files that share the same name. Ensure that the copied files are taken from the specific GitHub link for that step.

Open the repository in a new window (to keep this instruction page open),

GitHub EA03X56A-wifi/m2.

Perform steps 1.2 - 1.3 for each file (Linux_support.bin and boot.bin) to get to each specific file.

Click on each file to get to the download option.
Download option

Click on the Download raw file button.
Download raw file

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

Information

SD cards need to be formatted to a file system compatible with Microchip MPU devices, such as FAT32. For SD cards larger than 32 GB, a specific procedure must be followed. Please refer to the "How to Format and Partition an SD Card Larger Than 32GB Using DiskPart in Windows® for MPU)" guide for detailed instructions on preparing your SD card for use with the MPU device.

Set the SD card aside to be used in the hardware setup section.

Back to Top

Set Up the Board Components

Connect the components as shown in the accompanying images: 

 Insert the flange and antenna assembly into the antenna hole labeled "FD1" . 

Secure the antenna into the flange with the antenna wire going under the hole provided. 

Secure antenna ​​INsert antenna through hole

Insert the WIxCS02 M.2 Wi-Fi Module into J20 M.2 connector.
Insert module

Secure the provided screw on the "tapped hole" provided labeled as "STANDOFF1".
Secure screw

Insert the SD card in the SD Boot J14 slot.

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

Set the J24:M.2  I/F SEL to SDIO.

Connect a 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 the SAM9X75 Curiosity Board Serial Terminal on the 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

Check the serial port in the system.

user@comp:~/test$ dmesg | egrep
                     -i 'serial|ttyUSB'

Confirm serial port settings, assuming ttyUSB0 is the hardware connected.

user@comp:~/test$ stty -F /dev/ttyUSB0 -a

Set the parameters.

user@comp:~/test$ stty -F /dev/ttyUSB0
             115200 cs8 -cstopb -parenb

Set the serial port to use, for example, ttyS0 is selected.

user@comp:~/test$ setserial -g /dev/ttyUSB0

A built-in serial emulator is "cu". Assuming  /dev/ttyUSB0 is the terminal you want to use, run cu: 

user@comp:~/test$ cu -l dev/ttyUSB0

Back to Top

Verify M.2 Module Update

Power on the board.

Back to Top


Using the console, confirm that the image is used in the Device Firmware Update.

Confirm console

Back to Top

Set Up Demo Application

Take the SD card used in Step 1.2 of the Prepare M.2 Module Firmware Update section to copy the application and boot binaries. 

Back to Top


Back to Top


Place it in any directory of your choice.

Back to Top


Copy the downloaded file into the SD memory card using balenaEtcher.

Insert the SD memory card into the host computer.

Download, install, and run balenaEtcher.

Select the target to download.
balenaEtcher window Select Target button

Select the mounted SD card.
balenaEtcher Select target window

Select Flash.

balenaEtcher window Flash button

The SD card will be ready for use once flashing is completed.

Back to Top


Re-insert the SD card to SD Boot J14 slot. 

Back to Top


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

When the system is ready, the console terminal you set up earlier in this tutorial will show a prompt.

 Verify the login prompt is shown on the console.

Verify login prompt

Type or enter "root" to log in. No password is required.

If you do not see the prompt, press the enter key to force the prompt to refresh.

Back to Top

Perform the Test

Perform the test to display the static web page.

In the target console, run the following command:

# /root/Start_AP.sh

The console will display the following selection option:

Display section option

Enter "1" to select Open AP for security AP. 

Wait for the console to display the following logs. This indicates that the softAP mode setup is complete.

Console log display

On the PC, connect to the access point using the network name "microchip-SoftAP".

Connect to access point

Warning

Ensure there is no active Ethernet connection running simultaneously, as this may prevent the demo page from displaying properly.

On the PC, open a browser, then connect to the access point and enter this address as the URL: http://192.168.1.1.​​​​​​

Enter URL

Confirm the browser displays the following page:

Confirm the browser

Another way to test the Soft AP is to use a smartphone, and connect to the access point using the network name "microchip-SoftAP".

Soft AP smart phone test

Warning

Ensure there is no active internet connection (e.g., 4G, 5G) running simultaneously, as this may prevent the demo page from displaying properly.

On the smartphone, open a browser, then connect to the access point using the address: http://192.168.1.1 .

Connect access point

Confirm on the smartphone browser that the following page is displayed:

Confirm page

Back to Top

Explore Applications

Wireless ApplicationsTransparent UART communication between a smartphone and the SAM9X75 Curiosity Board using a BLE connection (SAM9X75 Curiosity Wireless Kit - BLE Getting Started Guide for Linux®)

Ethernet Applications

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

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, featuring compliance with the mikroBUS™ standard and an on-board 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, featuring 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 that 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.

Kernel fails to detect the WIxC02 M.2 module over SDIO.

The log "mmc1: new high speed SDIO card at address 0001" should be printed when the system is booted up if the kernel can detect the WIxCS02 M.2 Wi-Fi module over SDIO. If the Kernel cannot detect the module, the user can make sure:

  • Configure to SDIO at J24 (M.2 I/F SEL) on the SAM9x75 Curiosity Board. 
  • The WIxCS02 M.2 Wi-Fi Module is programmed with WILCS02 Wi-Fi firmware by following the Verify M.2 Module Update steps above.

When programming the WIxCS02 M.2 Wi-Fi module with the correct firmware image, the terminal shows: 

No File Found or Failed to read
the file from sdcard
DFU Failed - looping here
  • Confirm that all files are copied from the correct GitHub repository path.
    • Verify that the Linux_support.bin file is copied to the SD card.
    • Verify that the correct boot.bin file is copied to the SD card.
Fail to connect the softAP or fail to load the webpage.
  • Double-check if the external antennal is properly connected to the WIxCS02 M.2 Wi-Fi Module.
Terminal shows RomBoot message.
  • Verify that the SD card contains the right files.
  • Verify that the SD card is inserted properly.
I ran cu in Linux command line, how do I exit? Press keys Shift and (tilde) then the (dot) key and cu will exit and return to the command line.
I already have picocom installed. How do I use picocom instead of cu for my serial terminal? 

To use picocom, replace all of Step 4 with the following:

  • Connect the Serial-USB dongle to the host PC
  • Assuming  /dev/ttyUSB0 is  the terminal you want to use, run:
user@comp:~/test$ picocom -b 115200 -r -l /dev/ttyUSB0

Back to Top