background image

www.infineon.com

Please note that Cypress is an Infineon Technologies Company.

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.

Continuity of document content

The fact that Infineon offers the following product as part of the Infineon product 
portfolio does not lead to any changes to this document. Future revisions will occur 
when appropriate, and any changes will be set out on the document history page.

Continuity of ordering part numbers

Infineon continues to support existing part numbers. Please continue to use the 
ordering part numbers listed in the datasheet for ordering.

Summary of Contents for Cypress CYW954907AEVAL1F

Page 1: ...rs as part of the Infineon product portfolio Continuity of document content The fact that Infineon offers the following product as part of the Infineon product portfolio does not lead to any changes t...

Page 2: ...W954907AEVAL1F 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 c...

Page 3: ...nd hereby do release Cypress from any claim damage or other liability arising from any Security Breach In addition the products described in these mate rials may contain design defects or errors known...

Page 4: ...1 9 Document Conventions 13 1 10 Acronyms 14 2 Software Installation 15 2 1 Before You Begin 15 2 2 Install Software 15 3 Kit Operation 18 3 1 Theory of Operation 18 3 2 On board Programmer Debugger...

Page 5: ...AL1F Kit 42 4 10 External ADC 42 4 11 PWM 43 5 Code Examples 45 5 1 Using Code Examples 45 5 2 GPIO 45 5 2 1 Project Description 45 5 2 2 Hardware Connections 45 5 2 3 Verify Output 46 5 3 Config_join...

Page 6: ...priate ESD protection by wearing an antistatic wrist strap attached to the chassis ground any unpainted metal surface on the board when handling parts Handling Boards CYW954907AEVAL1F boards are sensi...

Page 7: ...e chip The EVK supports only 3 3 V as the operating voltage WICED Studio 6 0 or later supports application development using a WICED development board CYW954907AEVAL1F The development system is compat...

Page 8: ...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 demonstra...

Page 9: ...J6 6 Arduino Header J13 7 User Switch 1 SW3 8 User Switch 2 SW1 9 Arduino Header J9 10 PCB Antenna Main ANT1 11 Connector for External Antenna 1 J1 12 CYW54907 Type 1PS Module Murata U14 13 PCB Antenn...

Page 10: ...CYW954907AEVAL1F Evaluation Kit User Guide Document Number 002 22338 Rev A 9 Introduction Figure 1 3 CYW954907AEVAL1F Evaluation Board Back View...

Page 11: ...s and their location in the WICED IDE are as shown in Figure 1 4 Figure 1 4 illustrates the following 1 Edit your application firmware 2 Help Window that contains instructions on building and download...

Page 12: ...t demonstrate how to use various WICED libraries and API functions The test directory contains applications that are used for simple test and utility The waf directory contains applications that are p...

Page 13: ...F Quick Start Guide inside the kit box This user guide will help you get acquainted with CYW954907AEVAL1F EVK The Software Installation chapter describes the installation of the kit software This incl...

Page 14: ...Community website https community cypress com For assistance go to www cypress com support 1 8 Additional Learning Resources Visit CYW954907AEVAL1F EVK and CYW54907 for additional learning resources i...

Page 15: ...elopment Kit WICED Wireless Internet Connectivity for Embedded Devices JTAG Joint Test Action Group I2 C Inter Integrated Circuit MQTT Message Queue Telemetry Transport POR Power on Reset PMU Power Ma...

Page 16: ...ssful installation Before you install the kit software close any other Cypress software that is currently running Ensure you have installed WICED Studio 6 0 or later 2 2 Install Software Follow these...

Page 17: ...rs as a regular serial communication Figure 2 1 WICED SDK Directory 6 Copy the CY954907AEVAL1F_KitPackage zip file and extract to a temporary location such as temp The zip file will extract two direct...

Page 18: ...ntains 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 direct...

Page 19: ...solution from Murata This board also contains a USB Serial interface JTAG programmer debugger This board features Arduino form factor compatible headers which enables Arduino shields to be plugged on...

Page 20: ...ivers for the CYW954907AEVAL1F EVK are automatically installed during the WICED SDK installation process When you connect the kit for first time to your PC it will initiate the driver search as shown...

Page 21: ...llation 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...

Page 22: ...directory hierarchy starting from apps with directory names separated by a period The project name is followed by a hyphen and then the platform name Finally the actions to be performed after the buil...

Page 23: ...s download to target run Resets the target and starts execution 5 Double click alternately right click and select Build Target the Clean Make Target to remove any output from the previous build You sh...

Page 24: ...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 Note Exact Port number wil...

Page 25: ...in this post 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...

Page 26: ...the project 1 Execute the make target described above to download the project to the device 2 Click the arrow next to the Debug icon as shown in Figure 3 7 and select 43xxx Wi Fi_Debug_Windows On the...

Page 27: ...ints window Note If the Breakpoint window does not appear choose Window Show View Breakpoints 6 To terminate the debugging session click Run Terminate or click on the red square icon Once you terminat...

Page 28: ...esired 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 wit...

Page 29: ...tion of the external POR After the POR each pin assumes the GPIO or alternative function specified in the CYW54907 Alternate GPIO function table in the CYW54907 datasheet 002 19312 You must ensure tha...

Page 30: ...rnal 32 768 kHz HIB crystal 0 LPO from HIB 1 Internal 32 kHz LPO Note You should use the external 32 768 kHz crystal for a more accurate clock Accuracy of the clock is critical when using power save m...

Page 31: ...in 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 VBA...

Page 32: ...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 USB2_HOST_DEV_SEL Strapping Option 5 JTAG_SEL and...

Page 33: ...bled 1 gSPI engine disabled 7 GPIO_7_WCPU_BOOT_MODE GPIO_7 is used for WCPU Boot mode and pulled HIGH for recommended TCMSRAM Boot mode 0 TCROM Boot 1 TCMSRAM Boot Figure 4 7 GPIO_7_WCPU_BOOT_MODE Str...

Page 34: ...ep Mode To wake up CYW54907 from deep sleep mode any GPIOs from GPIO_0 to GPIO_15 except GPIO_13 can be used The selected GPIO should not be pin muxed instead it should be a dedicated one for deep sle...

Page 35: ...ard programmer debugger and serial interface chip as shown in Figure 4 11 The CYW54907 BCM54907 datasheet states that HIB_REG_ON_IN needs to be delayed by at least 2 cycles of the 32 768 kHz clock aft...

Page 36: ...re also listed in Table 4 4 CYW54907 also supports Reduced Media Independent Interface RMII The controller can transmit and receive data at 10 Mbps and 100 Mbps Table 4 4 CYW54907 EMAC to PHY Chip Con...

Page 37: ...G_RXD1 MII_RXD1 RXD1 ANEN_L 11 RMII_G_RXD2 MII_RXD2 RXD2 F100 12 RMII_G_RXD3 MII_RXD3 RXD3 ISOLATE 13 RMII_MDIO MII_MDIO MDIO 14 RMII_MDC MII_MDC MDC 15 RMII_G_TXEN MII_TXEN TXEN 16 RMII_G_RXDV MII_RX...

Page 38: ...he connection between CYW54907 and On board Programmer Debugger chip In addition to the connections listed in the table JTAG_SEL and GPIO_8_TAP_SEL lines have been pulled high to make sure programming...

Page 39: ...ebugger 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 in your make target to debug...

Page 40: ...A N A J6 9 SPI_1_CLK WICED_GPIO_38 WICED_SPI_2 J6 10 I2S1_SD_OUT WICED_GPIO_37 WICED_I2S_3 J6 11 SPI_1_MISO WICED_GPIO_39 WICED_SPI_2 J6 12 SPI_0_CLK WICED_GPIO_20 WICED_SPI_1 J6 13 SPI_1_MOSI WICED_G...

Page 41: ...A J6 34 SDIO_DATA_3 WICED_GPIO_47 N A J6 35 SDIO_DATA_2 WICED_GPIO_46 N A J6 36 RF_SW_CTRL_6_UART1_RXD WICED_PERIPHERAL_PIN_1 WICED_UART_1 J6 37 UART1_TXD WICED_PERIPHERAL_PIN_2 WICED_UART_1 J6 38 RF_...

Page 42: ..._AD0 A0 N A J13 2 ARD_AD1 A1 N A J13 3 ARD_AD2 A2 N A J13 4 ARD_AD3 A3 N A J13 5 ARD_AD4_SDA A4 N A J13 6 ARD_AD5_SCL A5 N A J9 1 NC NC N A J9 2 ARD_IOREF IOREF N A J9 3 ARD_RESET RESET N A J9 4 3V3 3...

Page 43: ...hrough an I2C interface I2C_0 module Slave Address 0x33 Table 4 9 lists the connections between CYW54907 and the external ADC Circuit diagram is shown in Figure 4 17 Figure 4 17 External ADC Circuit D...

Page 44: ...WICED_PWM_1 Combinations Pin MUX Selection Header Pin Header Name PIN_GPIO_10 DEFAULT J12 4 Arduino D11 MOSI PIN_GPIO_0 J10 1 Arduino D0 PIN_GPIO_8 PIN_GPIO_12 J12 5 Arduino D12 MISO PIN_GPIO_14 PIN_G...

Page 45: ...2 PIN_PWM_3 Table 4 14 WICED_PWM_5 Combinations Pin MUX Selection Header Pin Header Name PIN_PWM_4 DEFAULT J6 1 Arduino A1 PIN_GPIO_0 J10 1 Arduino D0 PIN_GPIO_8 PIN_GPIO_10 J12 4 Arduino D11 MOSI PIN...

Page 46: ...dio 6 0 or later snip gpio CYW954907AEVAL1F download run for the gpio example which is already present in WICED Studio kits CYW954907AEVAL1F config_join_ping CYW954907AEVAL1F download run for the conf...

Page 47: ...0 or later SDK namely apps snip scan apps snip dct_read_write and test console On startup this application shows a console through which you can enter commands to scan configure join and ping Wi Fi a...

Page 48: ...g a Project in WICED Studio IDE 2 Open a Terminal Emulation program and connect to the WICED serial port as detailed in Atep 8 in the section UART Port Configuration on CYW954907AEVAL1F Kit After init...

Page 49: ...VAL1F Evaluation Kit User Guide Document Number 002 22338 Rev A 48 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...

Page 50: ...ash 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 7 Type the command join The join command joins the network s...

Page 51: ...ument Number 002 22338 Rev A 50 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 whic...

Page 52: ...ate adc_measure mk This is the makefile which adds the sources components in this application component HTTP_server device_configuration Xively SNTP and Gedday are used and the name of the application...

Page 53: ...a wire between GND and ADC channel 1 to simulate zero scale Alternately you can connect an adjustable DC power supply to ADC channel 1 Figure 5 5 Potentiometer Connection 5 4 3 Flowchart Figure 5 6 a...

Page 54: ...r to the procedure provided in Building and Programming a Project in WICED Studio IDE 2 If connection to the Wi Fi access point is successful wait for NTP time request to complete The output of the te...

Page 55: ...ibe c This file contains the main application function application_start which is the entry point and execution of the firmware application It also contains the function definitions for initializing p...

Page 56: ...this project because all connections are hardwired on the CYW954907AEVAL1F EVK 5 5 3 Flowchart Throw Error message and exit Initialize WLAN Bring up the WLAN interface and connect to MQTT Broker Cert...

Page 57: ...that you use For more information about AWS IoT see the help pages of AWS here Do the following to set up a new account 1 Open https aws amazon com and choose Create an AWS Account 2 Follow the onlin...

Page 58: ...xchange 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 3 In the created Thing window click the left arrow to naviga...

Page 59: ...you set up your account Replace xxxxxxxxxxxx with the appropriate value for your ARN In the ARN name ensure that you change topic replaceWithATopic to where indicates all topics If you want to use the...

Page 60: ...ate created page click the Download button for the certificate and private key to save each of them to your PC Notes The certificate and private key cannot be revisited later for download and must be...

Page 61: ...xt to the policy you want to choose and then click Done Figure 5 13 Select Policy 6 In the created policy window click to navigate back to the AWS IoT Console window 7 Go to Security Certificates The...

Page 62: ...s iot ap southeast 1 amazonaws com The created Thing policy and certificate are used to interact with the AWS IoT 5 5 4 2 Access Point Credentials 1 Enter your credentials SSID and pass phrase key in...

Page 63: ...o AWS IoT and subscribe to the specified topic 2 Press the switch USER _1 to turn LED_1 ON and OFF alternately as shown in Figure 5 15 Note that this is being done over the cloud That is pushing the s...

Page 64: ...CYW954907AEVAL1F Evaluation Kit User Guide Document Number 002 22338 Rev A 63 Code Examples You will see the message published as follows in Monitor section...

Page 65: ...CYW954907AEVAL1F Evaluation Kit User Guide Document Number 002 22338 Rev A 64 Code Examples Figure 5 16 Messages Published...

Page 66: ...65 Revision History Document Title CYW954907AEVAL1F Evaluation Kit User Guide Document Number 002 22338 Revision ECN Issue Date Description of Change 6010685 01 02 2018 Initial release A 6894645 06 08...

Reviews: