Psoc miniprog3 program and debug kit guide (16 pages)
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 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.
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.
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.
<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. **...
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.
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.
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. **...
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. **...
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.
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...
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.
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. **...
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. **...
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. **...
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...
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. **...
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. **...
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).
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.
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.
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).
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. **...
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. **...
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. **...
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. **...
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.
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. **...
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. **...
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 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. **...
Need help?
Do you have a question about the CYW954907AEVAL1F and is the answer not in the manual?
Questions and answers