1.. _cy8cproto_062_4343w:
2
3INFINEON CY8CPROTO-062-4343W
4############################
5
6Overview
7********
8
9The CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Prototyping Kit is a low-cost hardware
10platform that enables design and debug of PSoC 6 MCUs. It comes with a Murata
11LBEE5KL1DX module, based on the CYW4343W combo device, industry-leading CAPSENSE
12for touch buttons and slider, on-board debugger/programmer with KitProg3, microSD
13card interface, 512-Mb Quad-SPI NOR flash, PDM-PCM microphone, and a thermistor.
14
15This kit is designed with a snap-away form-factor, allowing the user to separate
16the different components and features that come with this kit and use independently.
17In addition, support for Digilent's Pmod interface is also provided with this kit.
18
19.. image:: img/board.jpg
20     :align: center
21     :alt: CY8CPROTO-062-4343W
22
23Hardware
24********
25
26For more information about the PSoC 62 MCU SoC and CY8CPROTO-062-4343W board:
27
28- `PSoC 62 MCU SoC Website`_
29- `PSoC 62 MCU Datasheet`_
30- `PSoC 62 MCU Architecture Reference Manual`_
31- `PSoC 62 MCU Register Reference Manual`_
32- `CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Website`_
33- `CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT User Guide`_
34- `CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Schematics`_
35
36Kit Features:
37=============
38
39- Support of up to 2MB Flash and 1MB SRAM
40- Dedicated SDHC to interface with WICED wireless devices.
41- Delivers dual-cores, with a 150-MHz Arm Cortex-M4 as the primary
42  application processor and a 100-MHz Arm Cortex-M0+ as the secondary
43  processor for low-power operations.
44- Supports Full-Speed USB, capacitive-sensing with CAPSENSE, a PDM-PCM
45  digital microphone interface, a Quad-SPI interface, 13 serial communication
46  blocks, 7 programmable analog blocks, and 56 programmable digital blocks.
47
48Kit Contents:
49=============
50
51- PSoC 6 Wi-Fi BT Prototyping Board
52- USB Type-A to Micro-B cable
53- Quick Start Guide
54
55Supported Features
56==================
57
58The board configuration supports the following hardware features:
59
60+-----------+------------+-----------------------+
61| Interface | Controller | Driver/Component      |
62+===========+============+=======================+
63| NVIC      | on-chip    | nested vectored       |
64|           |            | interrupt controller  |
65+-----------+------------+-----------------------+
66| SYSTICK   | on-chip    | system clock          |
67+-----------+------------+-----------------------+
68| GPIO      | on-chip    | GPIO                  |
69+-----------+------------+-----------------------+
70| UART      | on-chip    | serial port-polling;  |
71|           |            | serial port-interrupt |
72+-----------+------------+-----------------------+
73
74
75The default configuration can be found in the Kconfig
76
77:zephyr_file:`boards/arm/cy8cproto_062_4343w/cy8cproto_062_4343w_defconfig`
78
79
80System Clock
81============
82
83The PSoC 62 MCU SoC is configured to use the internal IMO+FLL as a source for
84the system clock. CM0+ works at 50MHz, CM4 - at 100MHz. Other sources for the
85system clock are provided in the SOC, depending on your system requirements.
86
87
88Fetch Binary Blobs
89******************
90
91cy8cproto_062_4343w board requires fetch binary files
92(e.g WIFI/Bluetooth chip firmware, CM0p prebuilt images, etc).
93
94To fetch Binary Blobs:
95
96.. code-block:: console
97
98   west blobs fetch hal_infineon
99
100
101Build blinking led sample
102*************************
103
104Here is an example for the :zephyr:code-sample:`blinky` application.
105
106.. code-block:: console
107
108   cd zephyr
109   west build -p auto -b cy8cproto_062_4343w samples/basic/blink
110
111OpenOCD Installation
112====================
113
114To get the OpenOCD package, it is required that you
115
1161. Download the software ModusToolbox 3.1. https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolbox
1172. Once downloaded add the path to access the Scripts folder provided by ModusToolbox
118   export PATH=$PATH:/path/to/ModusToolbox/tools_3.1/openocd/scripts
1193. Add the OpenOCD executable file's path to west flash/debug.
1204. Flash using: west flash --openocd path/to/infineon/openocd/bin/openocd
1215. Debug using: west debug --openocd path/to/infineon/openocd/bin/openocd
122
123
124Programming and Debugging
125*************************
126
127The CY8CPROTO-062-4343W includes an onboard programmer/debugger (KitProg2) with
128mass storage programming to provide debugging, flash programming, and serial
129communication over USB. Flash and debug commands must be pointed to the Cypress
130OpenOCD you downloaded above.
131
132On Windows:
133
134.. code-block:: console
135
136   west flash --openocd path/to/infineon/openocd/bin/openocd.exe
137   west debug --openocd path/to/infineon/openocd/bin/openocd.exe
138
139On Linux:
140
141.. code-block:: console
142
143   west flash --openocd path/to/infineon/openocd/bin/openocd
144   west debug --openocd path/to/infineon/openocd/bin/openocd
145
146Once the gdb console starts after executing the west debug command, you may
147now set breakpoints and perform other standard GDB debugging on the PSoC 6 CM4 core.
148
149Errata
150======
151
152+------------------------------------------------+----------------------------------------+
153| Problem                                        | Solution                               |
154+================================================+========================================+
155| The GPIO_INT_TRIG_BOTH interrupt is not raised | This will be fixed in a future release.|
156| when the associated GPIO is asserted.          |                                        |
157+------------------------------------------------+----------------------------------------+
158| GDB experiences a timeout error connecting to  | This will be fixed in a future release.|
159| a server instance started by west debugserver. |                                        |
160+------------------------------------------------+----------------------------------------+
161
162.. _PSoC 62 MCU SoC Website:
163    https://www.cypress.com/products/32-bit-arm-cortex-m4-psoc-6
164
165.. _PSoC 62 MCU Datasheet:
166    https://www.cypress.com/documentation/datasheets/psoc-6-mcu-psoc-62-datasheet-programmable-system-chip-psoc-preliminary
167
168.. _PSoC 62 MCU Architecture Reference Manual:
169    https://www.cypress.com/documentation/technical-reference-manuals/psoc-6-mcu-psoc-62-architecture-technical-reference-manual
170
171.. _PSoC 62 MCU Register Reference Manual:
172    https://www.cypress.com/documentation/technical-reference-manuals/psoc-6-mcu-psoc-62-register-technical-reference-manual-trm
173
174.. _CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Website:
175    https://www.infineon.com/cms/en/product/evaluation-boards/cy8cproto-062-4343w/
176
177.. _CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT User Guide:
178    https://www.infineon.com/cms/en/product/evaluation-boards/cy8cproto-062-4343w/#!?fileId=8ac78c8c7d0d8da4017d0f0118571844
179
180.. _CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Schematics:
181    https://www.infineon.com/cms/en/product/evaluation-boards/cy8cproto-062-4343w/#!?fileId=8ac78c8c7d0d8da4017d0f01126b183f
182
183.. _Infineon OpenOCD:
184    https://github.com/infineon/openocd/releases/tag/release-v4.3.0
185