Infineon AIROC CYW43022 Getting Started

Wi-fi & bluetooth combo chip on imx8 nano developer kit v3
Table of Contents

Advertisement

Quick Links

Getting started with AIROC™ CYW43022 Wi-Fi &
Bluetooth® combo chip on iMX8 Nano Developer
Kit V3

About this document

Scope and purpose
This guide provides step-by-step instructions to configure the AIROC™ CYW43022 Wi-Fi & Bluetooth® combo
chip. This guide provides an overview of setting up the host Embedded Artists iMX8 Nano, loading the WLAN
driver, measuring the power consumption in Deep Sleep mode, establishing a Wi-Fi connection between an
Access Point (AP) and station (STA). Configuring Bluetooth® and Bluetooth® Low Energy is also explained step-
by-step.
Security is an integral part of AIROC™ devices, and the guide describes the security features embedded in the
AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip.
Intended audience
This document is intended for customers using the AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8
Nano Developer's Kit V3 as the host.
User guide
Please read the sections "Important notice" and "Warnings" at the end of this document
002-38499 Rev. *A
www.infineon.com
2023-09-29

Advertisement

Table of Contents
loading

Summary of Contents for Infineon AIROC CYW43022

  • Page 1: About This Document

    This document is intended for customers using the AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer’s Kit V3 as the host. User guide Please read the sections “Important notice” and “Warnings” at the end of this document 002-38499 Rev. *A www.infineon.com 2023-09-29...
  • Page 2: Table Of Contents

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Table of contents Table of contents About this document ........................1 Table of contents ..........................2 Document structure ..........................4 Overview of hardware components ..................5 What’s inside the box (included in kit) ....................
  • Page 3 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Table of contents 7.3.4 Initialize the build..........................35 7.3.5 Custom iMX toolchain ........................36 7.3.6 Building the image ........................... 36 7.3.7 Building the kernel zImage ......................36 Building the FMAC driver from backports ....................
  • Page 4: Document Structure

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Overview of hardware components Document structure Section 2, Overview of hardware components provides an overview of the various hardware components provided in the kit. Section 3, CYW43022 rework for power measurement provides the hardware rework to be done for power...
  • Page 5: Overview Of Hardware Components

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Overview of hardware components Overview of hardware components What’s inside the box (included in kit) Host platform – iMX8M Nano Developer’s Kit V3 from Embedded Artists (see Figure •...
  • Page 6 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Overview of hardware components The following are the hardware components of the setup: 1. Antennas 2. AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip 3. Power ON/OFF switch 4.
  • Page 7: Cyw43022 Rework For Power Measurement

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 CYW43022 rework for power measurement CYW43022 rework for power measurement Note: This section explains the hardware rework to be done for power measurement. Disable JTAG and Bluetooth®...
  • Page 8 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 CYW43022 rework for power measurement VDDIO changes: Remove R12 0Ω resistor to measure VDDIO current (I ) individually (the red and black • VDDIO wires highlighted in Figure 4 are connected at the VDDIO pad) and connect both wires across the pad of the...
  • Page 9 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 CYW43022 rework for power measurement JTAG changes : Mount R228 (JTAG pulled LOW) to disable JTAG. User guide 002-38499 Rev. *A 2023-09-29...
  • Page 10: Wi-Fi Bringup

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Wi-Fi bringup Wi-Fi bringup Wi-Fi image compatibility Connect CYW43022 to the M.2 E-key connector (J33) on the iMX8 Nano Developer’s Kit V3 board, as shown in Figure Connect the serial port of the iMX8 Nano Developer’s Kit V3 to the USB port of the laptop to make a serial connection (see...
  • Page 11 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Wi-Fi bringup Figure 7 Serial Access Application-PuTTy Now, power on the host. It will show kernel logs on the terminal and will prompt you to add a username and password for login.
  • Page 12: Load The Fmac Drivers And Firmware

    CYW43022.zip release package in the host platform. 3. Navigate to the CYW43022/Wi-Fi directory. Note: If you have a pre-flashed host from Infineon Technologies, the firmware files are already present in the /lib/firmware/cypress directory. If not and you flash the image using the Flashing the pre-build...
  • Page 13: Configure The Airoc™ Cyw43022 Wi-Fi & Bluetooth® Combo Chip As Sta

    WEP, WPA, WPA2, WPA3 (IEEE 802.11i), and WPA-EAP. It implements the key negotiation with an authenticator and controls the roaming and association of STA devices. The wpa_supplicant version 2.10 or above with Infineon patches is required. /etc/wpa_supplicant.conf is the default path for the WPA supplicant configuration file.
  • Page 14: Using Wpa_Cli

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Wi-Fi bringup 4.3.2 Using wpa_cli 1. Use the following command to initialize wpa_cli: root@imx8mnea-ucom:~/CYW43022/Wi-Fi# ./wpa_cli This command can be used to interact with wpa_supplicant. It can be used to query current status, change configuration, trigger events, and request interactive user input.
  • Page 15: Using Wpa_Supplicant Configuration

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Wi-Fi bringup 4.3.3 Using wpa_supplicant configuration Use one of the following sample contents depending on the required security in the conf file available at etc/wpa_supplicant.conf: # WPA Supplicant with open networksecurity configuration.
  • Page 16: Configuring Cyw43022 In Deep Sleep Mode

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Wi-Fi bringup ace=1p2p_device=1 update_config=1 device_name=EA-iMX8-LINUX config_methods=virtual_push_button physical_display keyboard interworking=1 sae_pwe=2 sae_groups=19 network={ ssid="ifx-wpa3" scan_ssid=1 ieee80211w=2 key_mgmt=SAE proto=RSN pairwise=CCMP sae_password="password" Configuring CYW43022 in Deep Sleep mode Wi-Fi or IoT devices should remain associated with an access point (AP) and need to consume less power.
  • Page 17: Set Up Current Measurement

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Wi-Fi bringup 4.4.2 Set up current measurement 1. Power OFF the iMX8 Nano Developer Kit V3 board before making the series connections. 2. For VBAT (3.3 V), do the following (see Figure 11): a) Connect J4 of the reworked CYW43022 board in series with the power monitor.
  • Page 18 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Wi-Fi bringup SLEEP DEEP SLEEP SLEEP DEEP SLEEP TIME Figure 9 Waveform of the CYW43022 chip entering the Deep Sleep mode Figure 9 shows the waveform of Ivbat and Ivddio transitioning from the Sleep state to the Deep Sleep state. User guide 002-38499 Rev.
  • Page 19 81.582 µA 76.227 µA DTIM 10 55.912 µA 78.726 µA 54.907 µA 22.048 µA Note: Table 1 lists the sample of the current consumption tested in an Infineon development environment; actual results may vary. User guide 002-38499 Rev. *A 2023-09-29...
  • Page 20: Bluetooth® Bringup

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Bluetooth® bringup Bluetooth® bringup Bring up AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip for Bluetooth® Verify whether the BT_REG_ON pin is configured properly using the following command (see Figure 11): Figure 11...
  • Page 21: Airoc™ Btstack

    5.2.2 AIROC™ BTSTACK AIROC™ BTSTACK is optimized to work with Infineon controllers. It implements the WICED Bluetooth® APIs and supports Bluetooth® BR/EDR and Bluetooth® LE core protocols. AIROC™ BTSTACK is built with two variants: Bluetooth® LE only and Dual-Mode. The Bluetooth® LE library has APIs that only support Bluetooth® LE features, while the Dual-Mode library supports both Bluetooth®...
  • Page 22: Bluetooth® Firmware

    Send and receive command to and from the Bluetooth® chip to test few Bluetooth® features during • manufacturing. Test the RF performance of the Infineon Bluetooth® classic and Bluetooth® Low Energy devices. MBT sends • an HCI command to the device and then waits for HCI complete events.
  • Page 23: Antenna Configuration

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Bluetooth® bringup 3. Copy the Bluetooth® firmware patch file from the release package (CYW43022/BT/FW/CYW43012C1_wlbga_iPA_dLNA.hcd) to the CYW43022/BT/mbt/cyw43022/scripts_for_imx8 directory and rename it to “FW.hcd”. 4. Navigate to the /home/ifx/scripts_for_imx8 directory. 5.
  • Page 24: Bluez Support

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Bluetooth® bringup For example, you can use the following Bluetooth® firmware file for dLNA configuration: CYW43022/BT/FW/CYW43012C1_wlbga_iPA_dLNA.hcd. BlueZ support 1. Download the Bluetooth® firmware patch file. For more details, see the Programing Bluetooth®...
  • Page 25: Airoc™ Cyw43022 Wi-Fi & Bluetooth® Combo Chip Security

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip security AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip security Overview The value of IoT devices is based on being smart, connected, and increasingly secure. Many applications demand secure processing elements and secure connections to the cloud.
  • Page 26: Bluetooth® Subsystem

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip security NVRAM Bootloader 512-KB Boundary 384-KB Boundary Firmware Figure 16 Wi-Fi subsystem RAM (640 KB) 6.2.1.2 Bluetooth® subsystem During the patch firmware download through UART, Bluetooth®...
  • Page 27: Bluetooth® Subsystem

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip security 6.2.2.2 Bluetooth® subsystem When the OTP bit is programmed, Bluetooth® firmware enables secure boot in boot flow. •...
  • Page 28: Root Of Trust (Rot) And Bootloader Flow (Wi-Fi)

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip security 4. BT SMEM: In compatibility mode, ARMCM4 in the Bluetooth® subsystem can directly access SoCs of the WLAN subsystem, while in secure mode, this shared interface is read or write disabled.
  • Page 29 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip security The following are the steps involved in the firmware validation: 1. The hash is calculated from the root public key that is available in the TRX Header. If this hash of the root public key matches “Hashed Public Key”...
  • Page 30: Root Of Trust (Rot) And Bootloader Flow (Bluetooth®)

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip security Root of Trust (RoT) and bootloader flow (Bluetooth®) RoT is the anchor for all security, and it requires HW support. The Cortex®-M4 core in the Bluetooth® subsystem and the Cortex®-M3 core in the Wi-Fi subsystem provide the necessary encryption services and isolation between system components.
  • Page 31: Appendix

    This will download uuu_imx8mn_ucom_5.15.32.zip. 2. Unzip the uuu_imx8mn_ucom_5.15.32.zip image package. 3. Contact the local Infineon FAE or sales representative to get the CYW43022.zip release package. 4. Unzip the CYW43022.zip release package. 5. Copy the image file and imx8mn-ea-ucom-kit_v3_ifx_inband.dtb available in the CYW43022 package folder to uuu_imx8mn_ucom_5.15.32\files.
  • Page 32 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix Figure 24 uuu -lsusb command Note: If the board already has the Linux 5.15.32 kernel, skip step 12 and proceed to step 13. 10.
  • Page 33: Bring Up Airoc™ Cyw43022 Wi-Fi & Bluetooth® Combo Chip Toolchain For Custom Image

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix 17. Enter the following command to save the changes: u-boot=> saveenv 18. Enter the following command to confirm the changes: u-boot=> printenv fdt_file 19.
  • Page 34: Required Packages

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix 7.3.2 Required packages The Yocto project requires the following packages to be installed on the host machine: sudo apt-get update sudo apt-get install openssh-server sudo service ssh restart sudo apt-get update sudo apt-get install gawk wget git-core diffstat unzip texinfo \...
  • Page 35: Download Yocto Recipes

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix 7.3.3 Download Yocto recipes The Yocto project consists of many recipes used when building an image. These recipes come from several repositories; the repo tool is used to download these repositories. A branch must be selected of the ea-yocto- base repository.
  • Page 36: Custom Imx Toolchain

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix 7.3.5 Custom iMX toolchain 1. Build an image to create the toolchain. See the following example: bitbake meta-toolchain This creates a file build-imx8mnea-ucom-xwayland/tmp/deploy/sdk. Go to the cd build-imx8mnea-ucom- xwayland/tmp/deploy/sdk location to install the toolchain.
  • Page 37 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix reset-delay-us = <2000>; reset-post-delay-ms = <100>; #reset-cells = <0>; regulators { compatible = "simple-bus"; @@ -275,7 +277,7 @@ assigned-clocks = <&clk IMX8MN_CLK_UART1>; assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_80M>; resets = <&modem_reset>;...
  • Page 38 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix CONFIG_SND_IMX_SOC=y CONFIG_SND_SOC_IMX_AK4458=y @@ -824,3 +824,18 @@ CONFIG_CORESIGHT_SOURCE_ETM4X=y CONFIG_MEMTEST=y CONFIG_TOUCHSCREEN_GOODIX=y CONFIG_DRM_PANEL_RAYDIUM_RM68200=y +CONFIG_CFG80211=m +CONFIG_BCMDHD=n +CONFIG_USB_SERIAL=y +CONFIG_USB_SERIAL_CONSOLE=y +CONFIG_USB_SERIAL_GENERIC=y +CONFIG_USB_SERIAL_FTDI_SIO=y +CONFIG_ASYMMETRIC_KEY_TYPE=y +CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y +CONFIG_X509_CERTIFICATE_PARSER=y +CONFIG_PKCS7_MESSAGE_PARSER=y +#3.1 Disable cfg80211 regdb for the kernel above v5.4.18 +CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=n +CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=n +CONFIG_LOCALVERSION="IFX_FMAC"...
  • Page 39 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix index 79dbf90216b5..a82c43eeb6d7 100644 --- a/drivers/mmc/core/sdio_io.c +++ b/drivers/mmc/core/sdio_io.c @@ -812,3 +812,46 @@ void sdio_retune_release(struct sdio_func *func) mmc_retune_release(func->card->host); EXPORT_SYMBOL_GPL(sdio_retune_release); +/** sdio_set_sdclk - set SD clock enable/disable and sd_mode @func: SDIO function attached to host + */ +int sdio_set_sdclk(struct sdio_func *func, unsigned int flags)
  • Page 40 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix @@ -2262,6 +2262,37 @@ void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) struct sdhci_host *host = mmc_priv(mmc); u8 ctrl; /* 43012 WAR: To Support SD Clock to avoid back powering from HOST Controller u16 clk;...
  • Page 41 Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix #endif /* LINUX_MMC_PM_H */ diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h index 478855b8e406..ce99d11e9466 100644 --- a/include/linux/mmc/sdio_func.h +++ b/include/linux/mmc/sdio_func.h @@ -175,4 +175,5 @@ extern void sdio_retune_crc_enable(struct sdio_func *func);...
  • Page 42: Building The Fmac Driver From Backports

    Nano Developer Kit V3 Appendix Building the FMAC driver from backports 1. Contact a local Infineon FAE or sales representative to get the CYW43022.zip release package. 2. Build the FMAC driver using the following commands: cd ea-bsp/kernel/linux-imx $ copy the fmac zip file to the machine $ unzip cypress-fmac-*.zip...
  • Page 43: Debugging The Fmac Driver

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Appendix 7.4.1 Debugging the FMAC driver 1. Enable the debug feature in backports source code. Enable CPTCFG_BRCMDBG and CONFIG_DEBUG_FS in the following brcmfmac file: $ vi defconfigs/brcmfmac Add the following lines to the brcmfmac file: $ CPTCFG_BACKPORTED_DEBUG_INFO=y...
  • Page 44: Glossary

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Glossary Glossary Access Point Local Area Network Multimedia card On the Go SDIO Secure Digital Input Output Station Ultra-low-power Universal Serial Bus Universal update utility Wired Equivalent Privacy WLAN Wireless Local Area Network...
  • Page 45: Revision History

    Getting started with AIROC™ CYW43022 Wi-Fi & Bluetooth® combo chip on iMX8 Nano Developer Kit V3 Revision history Revision history Document Date Description of changes revision 2023-09-04 Initial release. 2023-09-29 Added the CYW43022 rework for power measurement section. User guide 002-38499 Rev.
  • Page 46: Disclaimer

    All referenced product or service names and trademarks are the property of their respective owners. The Bluetooth® word mark and logos are registered trademarks owned by Bluetooth SIG, Inc., and any use of such marks by Infineon is under license.

Table of Contents