SDIO Driver Sample Application
Description
The SDIO Driver sample application validates SDIO host/device communication on SR110 with a connected WLAN module.
It performs an end-to-end SDIO bring-up and transfer sequence, including:
SDIO host initialization and clock/voltage setup.
SDIO device initialization flow (CMD0/CMD5/CMD52-based setup and readiness checks).
CMD52 register read/write verification.
CMD53 data transfer verification in byte mode and block mode (read and write).
Data integrity checks between transmitted and received buffers.
The sample logs each stage with pass/fail status so users can verify SDIO link functionality and transfer correctness.
Hardware Requirements
Astra Machina Micro (SR110)
WLAN chip module 4612 or 43711 attached to the board (required)
Prerequisites
Choose one setup path:
Building and Flashing the Example using VS Code
Use the VS Code flow described in the SR110 guide and the VS Code Extension guide:
Build (VS Code):
Open Build and Deploy -> Build Configurations.
Select sdio_sample_app in the Application dropdown.
Build with Build (SDK + App) for the first build, or Build App for rebuilds.
Flash (VS Code):
Use Image Conversion to generate the flash image.
Use Image Flashing (SWD/JTAG) to flash the firmware image.
Building and Flashing the Example using CLI
Use the CLI flow described in the SR110 guide:
Build (CLI):
From
<sdk-root>/examples, build the example:cd <sdk-root>/examples export SRSDK_DIR=<sdk-root> make cm55_sdio_sample_app_defconfig BOARD=SR110_RDK BUILD=SRSDK
Flash (CLI):
Activate the SDK venv (required for image generation tools):
# Linux/macOS source <sdk-root>/.venv/bin/activate # Windows PowerShell .\.venv\Scripts\Activate.ps1
Generate the flash image:
cd <sdk-root>/tools/srsdk_image_generator python srsdk_image_generator.py \ -B0 \ -flash_image \ -sdk_secured \ -spk "<sdk-root>/tools/srsdk_image_generator/B0_Input_examples/spk_rc4_1_0_secure_otpk.bin" \ -apbl "<sdk-root>/tools/srsdk_image_generator/B0_Input_examples/sr100_b0_bootloader_ver_0x012F_ASIC.axf" \ -m55_image "<sdk-root>/examples/out/sr110_cm55_fw/release/sr110_cm55_fw.elf" \ -flash_type "GD25LE128" \ -flash_freq "67"
Flash the firmware image:
cd <sdk-root> python tools/openocd/scripts/flash_xspi_tcl.py \ --cfg_path tools/openocd/configs/sr110_m55.cfg \ --image tools/srsdk_image_generator/Output/B0_Flash/B0_flash_full_image_GD25LE128_67Mhz_secured.bin \ --erase-all
Running the Application using VS Code Extension
Ensure the 4612/43711 WLAN chip is attached to the Astra Machina Micro board.
Press RESET on the board after flashing.
For logging output, click SERIAL MONITOR and connect to the DAP logger port on J14.
To make it easier to identify, ensure only J14 is plugged in (not J13).
The logger port is not guaranteed to be consistent across OSes. As a starting point:
Windows: try the lower-numbered J14 COM port first.
Linux/macOS: try the higher-numbered J14 port first.
If you do not see logs after a reset, switch to the other J14 port.
SDIO sample logs appear in the logger window, including CMD52/CMD53 transfer checks and pass/fail results.
Expected Logs
SR100.Logger warning 1771669272.006958 LOGR 0 M55 00:06:31:469:192 Changing logger interface to LOGGER_IF_UART_1
SR100.Logger info 1771669272.006958 SYS 0 M55 00:00:00:000:023 Application drivers initialization complete without errors.
SR100.Logger info 1771669272.017984 SYS 0 M55 00:00:00:004:210 sr110 SDK version 1.3.0
SR100.Logger info 1771669272.133226 SDIO 0 M55 00:00:00:106:701 SDIO Init Success
SR100.Logger info 1771669272.133226 SDIO 0 M55 00:00:00:107:219 SDIO Host Init Success
SR100.Logger info 1771669272.133226 SDIO 0 M55 00:00:00:109:501 Driver Strength Register: 0x00001007
SR100.Logger info 1771669272.133226 SDIO 0 M55 00:00:00:110:895 SDIO device initialized successfully on instance 1
SR100.Logger info 1771669272.14888 SDIO 0 M55 00:00:00:110:921 SDIO IO Device Init Success
SR100.Logger info 1771669272.14888 SDIO 0 M55 00:00:00:110:945 SDIO Initialization Complete
SR100.Logger info 1771669272.14888 SDIO 0 M55 00:00:00:111:696 Read Chip ID : 0xbf aa 40 10
SR100.Logger info 1771669272.14888 SDIO 0 M55 00:00:00:111:723 CMD52 Read/Write verification: start
SR100.Logger info 1771669274.689167 SDIO 0 M55 00:00:02:673:792 CMD52 Verification successful! All values matched
SR100.Logger info 1771669274.689167 SDIO 0 M55 00:00:02:673:819 CMD52 Read/Write verification: completed
SR100.Logger info 1771669274.689167 SDIO 0 M55 00:00:02:675:793 Block Write Completed!
SR100.Logger info 1771669274.717445 SDIO 0 M55 00:00:02:675:816 Setting the buffer to 0
SR100.Logger info 1771669274.718649 SDIO 0 M55 00:00:02:684:793 Block Read Completed!
SR100.Logger info 1771669274.718649 SDIO 0 M55 00:00:02:684:820 All values matched!
SR100.Logger info 1771669274.720658 SDIO 0 M55 00:00:02:685:793 Block Write Completed!
SR100.Logger info 1771669274.721665 SDIO 0 M55 00:00:02:685:816 Setting the buffer to 0
SR100.Logger info 1771669274.73682 SDIO 0 M55 00:00:02:694:794 Block Read Completed!
SR100.Logger info 1771669274.73682 SDIO 0 M55 00:00:02:694:820 All values matched!
SR100.Logger info 1771669274.73682 SDIO 0 M55 00:00:02:695:799 DATA MATCHED!!
SR100.Logger info 1771669274.73682 SDIO 0 M55 00:00:02:695:841 Block Write Completed!
SR100.Logger info 1771669274.73682 SDIO 0 M55 00:00:02:695:864 Setting the buffer to 0
SR100.Logger info 1771669274.752534 SDIO 0 M55 00:00:02:704:794 Block Read Completed!
SR100.Logger info 1771669274.752534 SDIO 0 M55 00:00:02:704:817 All values matched!
SR100.Logger info 1771669274.752534 SDIO 0 M55 00:00:02:704:852 DATA MATCHED!!
SR100.Logger info 1771669274.752534 SDIO 0 M55 00:00:02:705:794 Block Write Completed!
SR100.Logger info 1771669274.752534 SDIO 0 M55 00:00:02:705:817 Setting the buffer to 0
SR100.Logger info 1771669274.752534 SDIO 0 M55 00:00:02:714:795 Block Read Completed!
SR100.Logger info 1771669274.780773 SDIO 0 M55 00:00:02:714:821 All values matched!
SR100.Logger info 1771669274.784571 SDIO 0 M55 00:00:02:715:800 DATA MATCHED!!
SR100.Logger info 1771669274.784571 SDIO 0 M55 00:00:02:715:822 Setting the buffer to 0
SR100.Logger info 1771669274.784571 SDIO 0 M55 00:00:02:723:862 Block Read Completed!
SR100.Logger info 1771669274.786466 SDIO 0 M55 00:00:02:723:885 Setting the buffer to 0
SR100.Logger info 1771669274.786466 SDIO 0 M55 00:00:02:732:797 All values matched!
SR100.Logger info 1771669274.786466 SDIO 0 M55 00:00:02:732:820 Block Read Completed1!
SR100.Logger info 1771669274.786466 SDIO 0 M55 00:00:02:732:843 Setting the buffer to 0
SR100.Logger info 1771669274.786466 SDIO 0 M55 00:00:02:741:796 Block Read Completed!
SR100.Logger info 1771669274.800496 SDIO 0 M55 00:00:02:742:796 Block Write Completed!
SR100.Logger info 1771669274.800496 SDIO 0 M55 00:00:02:743:796 Block Write Completed!
SR100.Logger info 1771669274.800496 SDIO 0 M55 00:00:02:743:819 Setting the buffer to 0
SR100.Logger info 1771669274.800496 SDIO 0 M55 00:00:02:752:796 Block Read Completed!
SR100.Logger info 1771669274.800496 SDIO 0 M55 00:00:02:752:846 All values matched!
SR100.Logger info 1771669274.800496 SDIO 0 M55 00:00:02:753:801 DATA MATCHED!!
SR100.Logger info 1771669274.800496 SDIO 0 M55 00:00:02:753:824 SDIO Sample App Completed!