Wi-fi & bluetooth evaluation kit with raspberry pi cm4 host (with cyw55513 radio m2 card) (4 pages)
Summary of Contents for Infineon Cypress CYW954907AEVAL1F
Page 1
The document following this cover page is marked as “Cypress” document as this is the company that originally developed the product. Please note that Infineon will continue to offer the product to new and existing customers as part of the Infineon product portfolio.
Page 2
CYW954907AEVAL1F Evaluation Kit User Guide Document Number: 002-22338 Rev. *A Cypress Semiconductor An Infineon Technologies Company 198 Champion Court San Jose, CA 95134-1709 www.cypress.com www.infineon.com...
Safety Information The CYW954907AEVAL1F EVK is intended for use as a development platform for hardware or soft- ware in a laboratory environment. The board is an open-system design, which does not include a shielded enclosure. Due to this reason, the board may cause interference with other electrical or electronic devices in close proximity.
Introduction Thank you for your interest in the CYW954907AEVAL1F Evaluation Kit (EVK). The EVK enables customers to evaluate and develop single-chip Wi-Fi applications using CYW54907 devices. The EVK uses WICED Studio 6.0 (or later) to develop and debug your CYW54907 project. It offers footprint-compatibility with Arduino shields.
Page 8
Introduction Figure 1-1. CYW954907AEVAL1F Kit Contents Inspect the contents of the kit. If you find any part missing, contact your nearest Cypress sales office for assistance: www.cypress.com/support. Hardware Not Included with the Kit The EVK does not come with all the hardware needed to perform the demonstrations documented in this guide.
Introduction WICED Studio Development System Overview WICED Studio 6.0 (or later) supports application development using the WICED Evaluation Board (CYW954907AEVAL1F EVK). Tabs and their location in the WICED IDE are as shown in Figure 1-4. Figure 1-4 illustrates the following: 1.
Introduction WICED Studio Code Examples WICED Studio includes libraries and code examples supporting both Bluetooth and Wi-Fi platforms. Selecting the 43xxx_Wi-Fi Filter will show only Wi-Fi platform related files in the project explorer as shown in Figure 1-5. Application examples can speed up the design process by serving as templates for development. Code examples are located under the apps category (in the Project explorer window), as shown in Figure 1-6.
Introduction Figure 1-6. Code Examples under apps Category Kit Code Examples In addition to the examples available in WICED Studio, this EVK includes a few additional code examples, which can be used to quickly evaluate CYW54907 using this kit. These examples are described in the Code Examples chapter.
Introduction IoT Resources and Technical Support Cypress provides a wealth of data at www.cypress.com/internet-things-iot to help you to select the right IoT device for your design, and quickly and effectively integrate the device into your design. Cypress provides customer access to a wide range of information, including technical documentation, schematic diagrams, product bill of materials, PCB layout information, and software updates.
Introduction 1.10 Acronyms Table 1-2. List of Acronyms used in this Document Acronym Definition Serial Peripheral Interface Evaluation Kit Software Development Kit WICED Wireless Internet Connectivity for Embedded Devices JTAG Joint Test Action Group Inter-Integrated Circuit MQTT Message Queue Telemetry Transport Power-on-Reset Power Management Unit VTRIM...
Software Installation This chapter describes the steps to install the software tools and packages on a PC for using the CYW954907AEVAL1F EVK. This includes the WICED IDE in which the projects will be built and used for programming. Before You Begin All Cypress software installations require administrator privileges.
Page 17
Software Installation 4. Download the CY954907AEVAL1F_KitPackage.zip software from here. The software is available as a zip file. 5. Locate the WICED Wi-Fi-SDK directory in your PC. The default location is C:\Users\<user name>\Documents\WICED-Studio-6.0\43xxx_Wi-Fi, as shown in Figure 2-1. However, it may be in a different location depending on the path you choose when installing WICED Studio.
Page 18
Software Installation Figure 2-2. Setup Package in WICED Studio 6.0 (or later) 7. The CY954907AEVAL1F_KitPackage.zip package contains three code examples which add to the existing set of examples available in WICED Studio 6.0 or later. Unzipping creates the kits directory under apps, and adc_measure in the resources\apps directory. After unzipping, if the projects are not visible in WICED Studio 6.0 (or later), then right-click the top most folder (43xxx_Wi-Fi) and click Refresh, as shown in Figure...
Kit Operation This chapter introduces you to the CYW954907AEVAL1F EVK and the features that will be used as part of the kit operation. Features such as Wi-Fi connection and programming/debugging are discussed in this chapter. The chapter also describes the USB-UART that can be used to communicate with the CYW54907 device on this EVK.
Kit Operation CYW954907AEVAL1F Kit Connection The CYW954907AEVAL1F EVK can be powered by the following options: External power supply and USB. When using an external power supply, use a 5 V - 12 V, 2A power supply with 2.1-mm DC Jack (center pin positive).
Kit Operation The Device Manager window identifies the WICED USB Serial COM port as COMXX. The assigned port number varies between systems. If the device displays two WICED USB Serial Ports (WICED USB Serial port and WICED USB JTAG Port) instead of one, then follow the link mentioned in this post.
Kit Operation Building, Programming, and Debugging 3.4.1 Building and Programming a Project in WICED Studio IDE Do the following to build and program a project for CYW954907AEVAL1F EVK: 1. Open the WICED IDE on Windows PC: go to Start > All Programs > Cypress > WICED- Studio.
Page 23
Kit Operation 4. Enter snip.scan-CYW954907AEVAL1F download run in the Target name field and click Note: The list of all commands that can be provided in the Make target is listed in <WICED-SDK installation directory>/ 43xxx_Wi-Fi/Makefile. snip.scan-CYW954907AEVAL1F download run indicates the following: snip = directory inside apps folder scan = Sub-directory and name of the application to be built.
Page 24
Kit Operation b. You will see the following window. Click on Serial and select corresponding COM Port for your WICED device. Then click on OK c. In the Terminal Emulator, go to Setup > Serial port…. Select the correct COM port and baud rate as follows.
Kit Operation 8. The output of the Terminal Emulation program should be similar to what is shown in Figure 3-6. Figure 3-6. Console Output 3.4.2 Troubleshooting If a “download_dct” error message is displayed despite connecting the board, follow the steps outlined in this post.
Page 26
Kit Operation If -debug is not added, it will be built for release. The important difference between the debug and release configurations is the optimization. Debug is built with no optimization and release is built with optimization. It is possible to debug without using debug as well, but with many variables and lines optimized away, many breakpoints might not get hit.
Page 27
Kit Operation 3. Open the scan.c file from the Project Explorer window. Click on the line with WPRINT_APP_INFO( ( "Waiting for scan results...\n" ) ); and press Ctrl+Shift+B. A blue hollow circle along with a check mark appears next to the line number as shown in Figure 3-8.
Page 28
Kit Operation 8. Right-click the desired breakpoint checkbox and click Breakpoint Properties…. Click the last_built.elf check box, as shown in Figure 3-10. The check mark appears before the actual breakpoint indicating its association with the current execution. Figure 3-9. Show Breakpoints Icon Figure 3-10.
Hardware This chapter describes the CYW954907AEVAL1F EVK hardware and its different blocks, such as Bootstrap, reset control, Arduino-compatible headers, and module connectors. The schematic is available at the following location after installing the software from Software Installation: <WICED_SDK_Directory>\43xx_Wifi\platforms\CYW954907AEVAL1F\schematics Bootstrap and Control Pins Bootstrap options available in the CYW954907AEVAL1F EVK are shown in Table 4-1.
Page 30
Hardware Table 4-1. Bootstrap Options Available in CYW954907AEVAL1F EVK (continued) Strap Pull Strp Function Chip default Board Default SDIO Mode: GPIO_13 0 = SDIO Device R141=10K to WLAN_VDDIO 1 = SDIO Host Host DAP Clock Sel 1 = Enable XTAL clock for DAP sub system RF_SW_CTRL_5 0 = Disable Use Test clock TCK for DAP sub sys- PMU resource initialization mode selection...
Page 31
Hardware 2. HIB_REG_ON_IN Used by the Hibernation (HIB) block to power up internal CYW54907 regulators. If the HIB_REG_ON_IN pin is LOW, regulators are disabled. For the HIB_REG_ON_IN pin to work as designed, HIB_REG_ON_OUT must be connected to REG_ON. The CYW54907/BCM54907 datasheet states that HIB_REG_ON_IN needs to be delayed by at least two cycles of the 32.768-kHz clock after VBAT and VDDIO have reached 90% of their final values.
Page 32
Hardware 3. HIB_WAKE Used to wakeup chip from Hibernation mode. This pin should be pulled HIGH. Figure 4-4. HIB_WAKE Strapping Option 4. USB2_HOST_DEV_SEL Used to select the USB mode; it is set in USB DEVICE mode by default. 0 = USB HOST mode 1 = USB DEVICE mode Figure 4-5.
Page 33
Hardware Note: Default setup is JTAG_SEL = HIGH / TAP_SEL = HIGH. Figure 4-6. JTAG_SEL and GPIO_8_TAP_SEL Strapping Option 6. GPIO_1_GSPI_MODE GPIO_1 is used for gSPI mode. By default, CYW54907 enables gSPI. 0 = gSPI engine enabled 1 = gSPI engine disabled 7.
Hardware 10. GPIO_13_SDIO_MODE GPIO_13 is used to select the SDIO mode; it is set in SDIO HOST mode by default. 0 = SDIO Device 1 = SDIO Host Figure 4-8. GPIO_13_SDIO_MODE Strapping Option 11. RF_SW_CTRL_7_RSRC_INIT_MODE_UART1_TX_OUT This pin should be pulled HIGH. Highly Recommended to pull up RF_SW_CTRL_7 via a 10K resistor to WLAN_VDDIO during bootup.
Hardware Figure 4-9. User Switch Circuit Diagram There are two user LEDs available named LED_1 and LED_2. Table 4-3 shows the pin name and enumeration used in WICED for these LEDs. Table 4-3. User LED Available on the Board Alternate Enumeration in Switch CYW54907 Pin Name WICED_ENUM_ID...
Hardware Figure 4-11. Reset Circuit Diagram Figure 4-12. HIB_REG_ON_IN RC Delay Circuit Ethernet The Ethernet MAC Controller in the CYW54907 interfaces to an external PHY chip BCM5241 using the Media Independent Interface (MII) as shown in Figure 4-13. The same signals are also listed in Table 4-4.
Page 37
Hardware Table 4-4. CYW54907 EMAC to PHY Chip Connection (continued) SL. NO CYW54907 Pin Name Net Name in Schematic BCM5241 Pin Name RMII_G_RXD1 MII_RXD1 RXD1/ANEN_L RMII_G_RXD2 MII_RXD2 RXD2/F100 RMII_G_RXD3 MII_RXD3 RXD3/ISOLATE RMII_MDIO MII_MDIO MDIO RMII_MDC MII_MDC RMII_G_TXEN MII_TXEN TXEN RMII_G_RXDV MII_RXDV_CRS_DV RXDV PWM_2...
Hardware Micro SD Connector/Slot Micro SD connector is connected to the SDIO Interface of CYW54907. CYW54907 supports both SDIO 3.0 Host and device modes. Figure 4-14 shows the interface between Micro SD connector and CYW54907. These signals are listed in Table 4-5.
Hardware 4.7.2 External JTAG To use the External JTAG connector (J3), set all positions in switch SW4 to closed and connect your external JTAG debugger. Ensure that the drivers for the debugger hardware are installed in the same PC where WICED Studio is installed. When using Olimex connectors, for example Olimex_ARM-USB-TINY-H, add "JTAG=Olimex_ARM-USB-TINY- H"...
Hardware Connectors 4.8.1 WICED Header J6 is the WICED header available on CYW954907AEVAL1F EVK. This is a 44-pin header containing I2C, SDIO, UART, SPI, PWM lines, and I/Os. Note that some signals are shared with Arduino header (UART0 Tx/Rx) and On-board Programmer/debugger chip (UART1). Table 4-7 illustrates the J6 pinout.
Hardware UART Port Configuration on CYW954907AEVAL1F Kit CYW54907 has three UART ports: slow UART, fast UART, and GCI UART. Slow UART and GCI UART are 2-wire interfaces, while fast UART is a 4-wire interface that can support up to a 3-Mbps baud rate.
Hardware 4.11 There are six dedicated PWM outputs available on CYW54907. These PWMs can be multiplexed onto different pins. You can find their definitions in platforms/CYW954907AEVAL1F/platform.c inside WICED Studio. The PWMs can be reassigned to other pins by changing the first argument of the platform_pwm_t platform_pwm_peripherals structure in platform.c.
Code Examples This chapter demonstrates the functionality of CYW54907 devices using the CYW954907AEVAL1F EVK code examples. Download and extract the zip file from the CYW954907AEVAL1F EVK web page as specified in the Software Installation section. The code examples once unzipped can be viewed in WICED Studio 6.0 (or later).
Code Examples 5.2.3 Verify Output Do the following to verify the output: 1. Create and run a make target for the gpio project using the description specified in Building and Programming a Project in WICED Studio IDE. After initialization of the platform, LEDs will keep flashing (toggling). When a user switch is pressed, the corresponding LED turns off.
Code Examples 5.3.3 Flowchart Figure 5-1 illustrates the config_join_ping flowchart. Figure 5-1. config_join_ping Flowchart System Initialized Initialize Command Console to STDIO UART Add New Commands to the Console Commands List Wait for Command from Console Execute Corresponding Function from command Table 5.3.4 Verify Output Do the following to verify the output:...
Page 49
Code Examples Figure 5-2. Initial Console Output 4. Type the command scan to find the list of available Wi-Fi access points as shown in Figure 5-3. CYW954907AEVAL1F Evaluation Kit User Guide, Document Number: 002-22338 Rev. *A...
Page 50
Code Examples Figure 5-3. Scan Output 5. Type the command config <SSID> <password> . This command writes the given configuration in the Device Configuration Table (DCT). These values are stored in flash memory on the board. 6. Type the command print_config to validate if the SSID and password match and are appropriately written in the DCT.
Page 51
Code Examples Figure 5-4. Join and Ping 8. To disconnect from the access point, use the disconnect command. The console component maintains a history of commands typed, which can be accessed using the Up/Down arrow keys. CYW954907AEVAL1F Evaluation Kit User Guide, Document Number: 002-22338 Rev. *A...
Code Examples ADC_measure 5.4.1 Project Description This project demonstrates measuring values from the external ADC chip on the board and posting the values to a web page accessible from the WLAN network. This code example is based on existing code example (apps/demo/temp_control) available in the WICED Studio 6.0 (or later). On startup, the adc_measure code example joins the Wi-Fi Access Point specified in the wifi_config_dct.h file and starts a web page where the ADC count is reported.
Code Examples 5.4.2 Hardware Connections Connect a potentiometer (10 kΩ) between VCC and GND with the center terminal connected to channel 1 of the ADC (pin A1 in the Arduino header) as shown in Figure 5-5. If you do not have a potentiometer to test, you can connect a wire between VCC and ADC channel 2 (to simulate full scale) or a wire between GND and ADC channel 1 (to simulate zero scale).
Code Examples 5.4.4 Access Point Credentials 1. Enter your credentials (SSID and pass phrase key) in the wifi_config_dct.h file. 2. Update the following macros: CLIENT_AP_SSID: update with your access point's SSID ❐ CLIENT_AP_PASSPHRASE: update with your access point's pass phrase key ❐...
Code Examples Figure 5-8. Webpage Publish_subscribe_aws 5.5.1 Project Description This project demonstrates publishing a message to a Thing in the Amazon Web Services (AWS) cloud and subscribing to the same messages. A Thing is a representation of a specific device or logical entity.
Code Examples 5.5.2 Hardware Connections No specific hardware connections are required for this project because all connections are hardwired on the CYW954907AEVAL1F EVK. 5.5.3 Flowchart Initialize WLAN Certificates and key valid? Bring up the WLAN interface and connect to MQTT Broker Error? Open the connection, subscribe to messages, and publish messages...
Code Examples 5.5.4 Verify Output 5.5.4.1 Set up an AWS Account and Create a Thing, Policy, and Certificate An AWS account allows you to view AWS account activity, view usage reports, and manage AWS Security Credentials. When you sign up for AWS, your AWS account is automatically signed up for all services in AWS, including AWS IoT.
Page 58
Code Examples 2. Each Thing is uniquely identified by its name. Assign a name in the Name field, and click Create thing. For example, “54907_aws”. Note: It is possible to exchange messages without a need to create a thing (by having a certificate with an attached policy), but it is recommended by AWS to create it.
Page 59
Code Examples 3. In Add statement, specify the Action as iot:*. 4. Assign an Amazon Resource Name (ARN) in the Resource ARN field. To use a wild card, change the last part of Resource ARN as follows: "arn:aws:iot:us-east-1:xxxxxxxxxxxx:topic/replaceWithATopic" "arn:aws:iot:us-east-1:xxxxxxxxxxxx:* Notes: Use the region that you selected when you set up your account.
Page 60
Code Examples Create a Certificate for a Thing 1. In the AWS IoT Console window, go to Manage > Things, and then click the created Thing (for example: 54907_aws). The created Thing window appears. 2. In the left navigation pane, click Security and then click Create certificate. Figure 5-11.
Page 61
Code Examples 4. Click the Activate button and then click the Attach a policy button as shown in Figure 5-12. The Add authorization to certificate window appears (see Figure 5-13). Figure 5-12. Activate and Attach policy 5. Select the check box next to the policy you want to choose and then click Done. Figure 5-13.
Page 62
Code Examples 12. In left navigation pane, choose Interact. 13. Copy the Endpoint from the HTTPS tab as shown in Figure 5-14 Figure 5-14. Endpoint. 14. Navigate to the publish_subscribe.c file to update the MQTT_BROKER_ADDRESS macro with the endpoint address copied from HTTPS tab. Remove the first string before "." in endpoint and replace it with * and copy it to the REGION macro.
Page 63
Code Examples 5.5.4.3 Build, Program, and Verify Your Wi-Fi access point must be connected to the internet to verify the example. 1. Build and program the publish_subscribe_aws example using a similar procedure to the one provided in Building, Programming, and Debugging.
Page 64
Code Examples You will see the message published as follows in Monitor section. CYW954907AEVAL1F Evaluation Kit User Guide, Document Number: 002-22338 Rev. *A...
Page 65
Code Examples Figure 5-16. Messages Published CYW954907AEVAL1F Evaluation Kit User Guide, Document Number: 002-22338 Rev. *A...
Need help?
Do you have a question about the Cypress CYW954907AEVAL1F and is the answer not in the manual?
Questions and answers