Cypress CYW954907AEVAL1F User Manual

Cypress CYW954907AEVAL1F User Manual

Evaluation kit
Hide thumbs Also See for CYW954907AEVAL1F:

Advertisement

Quick Links

CYW954907AEVAL1F
Evaluation Kit User Guide
Doc. No. 002-22338 Rev. **
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
www.cypress.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CYW954907AEVAL1F and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress CYW954907AEVAL1F

  • Page 1 CYW954907AEVAL1F Evaluation Kit User Guide Doc. No. 002-22338 Rev. ** Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 www.cypress.com...
  • Page 2 A critical component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products.
  • Page 3: Table Of Contents

    Reset Control......................32 Ethernet ........................33 Micro SD Connector/Slot ...................35 JTAG Connector ......................36 4.7.1 On-board Programmer/Debugger and Serial Interface Chip......36 4.7.2 External JTAG ....................36 Connectors ........................38 4.8.1 WICED Header ....................38 4.8.2 Arduino-Compatible Headers.................40 CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 4 5.4.3 Flow Chart......................53 5.4.4 Access Point Credentials ................54 5.4.5 Verify Output ....................54 Publish_subscribe_aws .....................55 5.5.1 Project Description ..................55 5.5.2 Hardware Connections...................56 5.5.3 Flow Chart......................56 5.5.4 Verify Output ....................57 Revision History CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 5 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.
  • Page 6: Introduction

    VAL1F EVK enables customers to evaluate and develop single-chip Wi-Fi applications using CYW54907 devices. The CYW954907AEVAL1F EVK uses WICED Studio 6.0 (or later) to develop and debug your CYW54907 project. CYW954907AEVAL1F EVK offers footprint-compatibility with Arduino shields. In addition, the kit features an RJ-45 Ethernet connector, and onboard programmer/debugger and serial bridge chip.
  • Page 7 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 CYW954907AEVAL1F EVK does not come with all the hardware needed to perform the demon- strations documented in this guide.
  • Page 8: Cyw954907Aeval1F Board Details

    16. External JTAG Header (J3) 17. Arduino Header (J10) 18. Arduino Header (J12) 19. External PHY chip(U12) - BCM5241 20. External ADC Chip (U3) 21. Micro SD Connector/slot (J7) Figure 1-2. CYW954907AEVAL1F Evaluation Board CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 9 Introduction Figure 1-3. CYW954907AEVAL1F Evaluation Board (Back View) CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 10: Wiced Studio Development System Overview

    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.
  • Page 11: Wiced Studio Code Examples

    <WICED SDK installation folder>/WICED-Studio-6.0/43xxx_Wi-Fi/doc. WICED-QSG204 available in the same path is a good document to start with. Figure 1-5. Filter for Wi-Fi Code Example in WICED Studio CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 12: Kit Code Examples

    CYW54907 using this kit. These examples are described in the Code Examples chapter. Getting Started To learn quickly about CYW954907AEVAL1F EVK, refer to the CYW954907AEVAL1F Quick Start Guide inside the kit box. This user guide will help you get acquainted with CYW954907AEVAL1F EVK: Software Installation chapter describes the installation of the kit software.
  • Page 13: Iot Resources And Technical Support

    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 documenta- tion, schematic diagrams, product bill of materials, PCB layout information, and software updates.
  • Page 14: Acronyms

    Power-on-Reset Power Management Unit VTRIM Voltage Trimming Low Power Oscillator GPIO General Purpose Input Output UART Universal Asynchronous Receiver/Transmitter Amazon Web Services Integrated Development Environment WLAN Wireless Local Area Network CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 15: Software Installation

    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 16 If WICED Studio 6.0 (or later) is opened with 43xxx_Wi-Fi as the WICED Filter (Figure 1-5), then the new folders appear as shown in Figure 2-2. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 17 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 2-3. Figure 2-3. Refresh Top Folder CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 18: Kit Operation

    Kit Operation This chapter introduces you to the CYW954907AEVAL1F EVK and the features that will be used as part of 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.
  • Page 19: Cyw954907Aeval1F Kit Connection

    Jack (center pin positive). When powered from USB, there are two logical USB devices: a USB- JTAG device and a USB-UART device. Drivers for the CYW954907AEVAL1F EVK are automatically installed during the WICED SDK installation process. When you connect the kit for first time to your...
  • Page 20: Troubleshooting

    If an error occurred during the automatic driver installation process, the driver may be manually installed from the following directory: <WICED-SDK>\Drivers\Windows\wiced_uart. If the CYW954907AEVAL1F EVK does not appear in the Device Manager, verify that the +3V3 LED is turned ON and check the USB cable.
  • Page 21: Building, Programming, And Debugging Cyw954907Aeval1F Evk

    Building and Programming a Project for CYW954907AEVAL1F in WICED Studio To build and program a project for CYW954907AEVAL1F EVK, perform the following steps: 1. To open the WICED IDE on Windows PC, go to Start > All Programs > Cypress > WICED-Stu- dio.
  • Page 22 It is recommended to do Make clean when any new files are added or removed to the corresponding Target. Note: Ensure that you have connected CYW954907AEVAL1F EVK to the same PC via USB prior to executing the build target.
  • Page 23 Note: Exact Port number will vary with the corresponding PC port d. Press the Reset button (see Figure 1-1) on the CYW954907AEVAL1F EVK to view the appli- cation start-up messages. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 24: Troubleshooting

    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 out- lined in this post. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 25: Debugging A Project Using Breakpoints

    Kit Operation 3.4.3 Debugging a Project using Breakpoints After programming a project, it is possible to debug it in CYW954907AEVAL1F EVK using the built in debugger. Note that the scan example used in 3.4.1 Building and Programming a Project for CYW954907AE- VAL1F in WICED Studio IDE section is also used here.
  • Page 26 6. To terminate the Debugging session, click Run > Terminate, or click on the red Square icon. Once you terminate the session, click on "C/C++" in the upper right corner to return to the C/C++ perspective. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 27 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. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 28 Kit Operation Figure 3-9. Show Breakpoints Icon Figure 3-10. Enabling Breakpoint for Current Execution CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 29: Hardware

    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 Instal- lation. <WICED_SDK_Directory>\43xx_Wifi\platforms\CYW954907AEVAL1F\schematics. Bootstrap...
  • Page 30: User Switches

    Table 4-2. User Switch available on the board CYW54907 Pin Alternate Enumeration in Switch WICED_ENUM_ID Name WICED USER_1 (SW3) PWM_5 WICED_GPIO_18 WICED_BUTTON1 USER_2 (SW1) GPIO_8 WICED_GPIO_4 WICED_BUTTON2 Figure 4-1. User Switch Circuit Diagram CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 31: Led

    Table 4-3. User LED Available on the Board Alternate Enumeration in Switch CYW54907 Pin Name WICED_ENUM_ID WICED LED_1 PWM_3 WICED_GPIO_16 WICED_LED1 LED_2 GPIO_9 WICED_GPIO_5 WICED_LED2 Figure 4-2. User LED Circuit Diagram CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 32: Reset Control

    32.768 kHz clock after VBAT and VDDIO have reached 90% of their final values. To ensure proper boot up, the RC delay circuit for HIB_REG_ON_IN is essential as shown in Figure 4-4. Figure 4-3. Reset Circuit Diagram Figure 4-4. HIB_REG_ON_IN RC Delay Circuit CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 33: Ethernet

    TXD2 RMII_G_TXD3 MII_TXD3 TXD3 RMII_G_RXD0 MII_RXD0 RXD0/PHYAD0 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 PWM_2 RESET_L CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 34 Hardware Figure 4-5. Ethernet MAC Controller to External PHY Connection CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 35: Micro Sd Connector/Slot

    Table 4-5. Micro SD Connector signals SL.No CYW54907 Based SIP Pin Name Micro SD Connector/Slot Name SDIO_DATA_0 DAT0 SDIO_DATA_1 DAT1 SDIO_DATA_2 DAT2 SDIO_DATA_3 CD/DAT3 SDIO_CMD SDIO_CLK PWM_0 DETECT Figure 4-6. Micro SD Connector Circuit Diagram CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 36: Jtag Connector

    External JTAG device. Figure 4-8 shows the connection between Olimex and the CYW954907AEVAL1F EVK. Figure 4-7. External JTAG Connector Circuit Diagram CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 37 Hardware Figure 4-8. JTAG to Olimex Connection CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 38: 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).
  • Page 39 J6.36 WICED_UART_1 TRL_6_UART1_RXD AL_PIN_1 WICED_PERIPHER- J6.37 UART1_TXD WICED_UART_1 AL_PIN_2 RF_SW_C- WICED_PERIPHER- J6.38 WICED_UART_3 TRL_8_UART2_RXD AL_PIN_7 WICED_PERIPHER- J6.39 UART2_TXD WICED_UART_3 AL_PIN_8 J6.40 HIB_WAKE J6.41 HIB_LPO_SEL J6.42 HIB_REG_ON_IN J6.43 USB2_DN J6.44 USB2_DP CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 40: Arduino-Compatible Headers

    Hardware 4.8.2 Arduino-Compatible Headers J9, J13, J12 and J10 are the Arduino headers available in the CYW954907AEVAL1F EVK. Table 4-8 shows the pinout of the Arduino Header. Note the following points while connecting an Arduino shield to the board: 5V pin of Header (J9) is not connected to the board.
  • Page 41: Uart Port Configuration On Cyw954907Aeval1F Kit

    WICED_PERIPHERAL_PIN_3 UART0_RXD UART0_RXD_IN J6:18 WICED_UART_2 WICED_PERIPHERAL_PIN_4 UART0_TXD UART0_TXD_OUT J6:20 WICED_UART_2 WICED_PERIPHERAL_PIN_5 UART0_CTS UART0_CTS_IN J6:22 WICED_UART_2 WICED_PERIPHERAL_PIN_6 UART0_RTS UART0_RTS_OUT J6:24 WICED_UART_2 WICED_PERIPHERAL_PIN_7 RF_SW_CTRL_8 RF_SW_CTRL_8_UART2_RXD J6:38 WICED_UART_3 WICED_PERIPHERAL_PIN_8 RF_SW_CTRL_9 RF_SW_CTRL_9_UART2_TXD J6:39 WICED_UART_3 CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 42: External Adc

    CYW54907 and the external ADC Circuit diagram is shown in Figure 4-9. Table 4-9. External ADC Connection I2C Line CYW54907 Pin Name WICED Enumeration Alternate Enumeration I2C_0_SDA WICED_GPIO_48 WICED_I2C_1 I2C_0_SCL WICED_GPIO_49 WICED_I2C_1 Figure 4-9. PWM CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 43: Pwm

    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/plat- form.c inside WICED Studio. The PWMs can be re-assigned to other pins by changing the first argument of the platform_pw- platform_pwm_peripherals structure in platform.c.
  • Page 44 Header Name PIN_GPIO_7 (DEFAULT) J10.4.4 Arduino D3 PIN_GPIO_1 J10.1 Arduino D0 PIN_GPIO_9 J12.9 Arduino SCK PIN_GPIO_11 J12.3 Arduino D10 PIN_GPIO_13 J10.3 Arduino D2 PIN_GPIO_15 J10.7 Arduino D6 PIN_PWM_5 − − CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 45: Code Examples

    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 Software Installation section. The code examples once un-zipped can be viewed in WICED Studio 6.0 (or later).
  • Page 46: Verify Output

    Also, the "NAME" string in the makefile must be unique among all projects in the apps folder. 5.3.2 Hardware Connections No specific hardware connections are required for this project because all connections are hard- wired on the CYW954907AEVAL1F EVK. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 47: Flow Chart

    Code Examples 5.3.3 Flow Chart Figure 5-1 illustrates the config_join_ping flow chart. Figure 5-1. config_join_ping Flow Chart CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 48: Verify Output

    Perform these steps to verify the output: Create and run a Make Target for the config_join_ping project using the description specified in Building and Programming a Project for CYW954907AEVAL1F in WICED Studio IDE. Open a Termi- nal Emulation program and connect to the WICED serial port as detailed in step 8 in the section UART Port Configuration on CYW954907AEVAL1F Kit.
  • Page 49 DCT. Ping the Access point (usually 192.168.1.1) or 8.8.8.8 (IP address of Google, if your AP is connected to internet) and check if the network is up and responding. The message "Ping Reply 11ms" is displayed as shown in Figure 5-4. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 50 Figure 5-4. Join and Ping To disconnect from the access point, use the command disconnect. The console component maintains a history of commands typed, which can be accessed using the Up/Down arrow keys. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 51: Adc_Measure

    Network Time protocol (NTP). If the Wi-Fi access point is not con- nected to the internet, then it will assume 00:00:00 UTC time and will start the web page. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 52: Hardware Connections

    GND and ADC channel 1 (to simulate zero scale). Alternately, you can con- nect an adjustable DC power supply to ADC channel 1. Figure 5-5. Potentiometer Connection CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 53: Flow Chart

    Code Examples 5.4.3 Flow Chart Figure 5-6 illustrates the adc_measure flow chart. Figure 5-6. adc_measure Flow Chart CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 54: Access Point Credentials

    Figure 5-8. It should be noted that the PC and CYW954907AEVAL1F EVK should be connected to the same access point. Rotate the potentiometer and verify that the value shown on web page changes accordingly. One easy way to validate the correct functioning is to rotate the potentiometer to one of the extremes and observe if the full- scale value appears.
  • Page 55: Publish_Subscribe_Aws

    CLIENT_AP_PASSPHRASE. Note that the security type may also have to be changed if the access point does not use WPA2 security. The Wi-Fi access point must have access to the inter- net to connect with AWS. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 56: Hardware Connections

    Code Examples 5.5.2 Hardware Connections No specific hardware connections are required for this project because all connections are hard- wired on the CYW954907AEVAL1F EVK. 5.5.3 Flow Chart CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 57: Verify Output

    To create a Thing, perform these steps: 1.In the AWS IoT Console window, choose Manage > Things on the left-hand panel, and then click the Create button as shown in Figure 5-9. Figure 5-9. Create Thing CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 58 AWS to create the same. 3. In the created Thing window, click the left arrow to navigate back to the AWS IoT Console win- dow. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 59 5. Select the check box Allow Effect and then click the Create button as shown in Figure 5-10. 6. In the created policy window, click to navigate back to the AWS IoT Console window. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 60 Code Examples Figure 5-10. Create policy CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 61 Backup the existing <WICED-SDK>\43xxx_Wi-Fi\resources\apps\aws_iot\cli- ■ ent.cer and rename the downloaded certificate as client.cer in the <WICED-SDK>\43xxx- _Wi-Fi\resources\apps\aws_iot\. Backup the existing <WICED-SDK>\43xxx_Wi- ■ Fi\resources\apps\aws_iot\privkey.cer and rename the downloaded private key as privkey.cer in <WICED-SDK>\43xxx_Wi-Fi\resources\apps\aws_iot\. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 62 9. Click Policies in the left-hand panel to validate if the correct policy is linked. 10. Click Things in the left-hand panel to validate if the correct Thing is linked. 11. Click the specific Thing. The Thing ARN window appears. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 63 This is "WICED_SECURITY _WPA2_- MIXED_PSK " if your access point uses WPA2-PSK. If your AP uses different security then choose correct one defined in enum wiced_security_t from 43xxx_Wi- Fi\WICED\WWD\include\wwd_- constants.h. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 64 Figure 5-15. Publish_Subscribe Output Go to Test. Type a topic name and click on Subscribe to topic. Publish to the same topic. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 65 Code Examples You will see the message published as follows in Monitor section. CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 66 Code Examples Figure 5-16. Messages Published CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...
  • Page 67: Revision History

    Revision History Document Revision History Document Title: CYW954907AEVAL1F Evaluation Kit User Guide Document Number: 002-22338 Origin of Revision ECN# Issue Date Description of Change Change 6010685 1/2/2018 SHJL Initial release CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **...

Table of Contents