boards/cypress/cy8ckit_062_wifi_bt/doc/index.rst
.. zephyr:board:: cy8ckit_062_wifi_bt
Overview
The PSOC 6 WiFi-BT Pioneer Kit (CY8CKIT-062-WiFi-BT) is a low-cost hardware platform that enables design and debug of the PSOC 62 MCU and the Murata LBEE5KL1DX Module (CYW4343W WiFi + Bluetooth Combo Chip).
The PSOC 6 WiFi-BT Pioneer Kit features the PSOC 62 MCU: a dual-core MCU, with a 150-MHz Arm Cortex-M4 as the primary application processor and a 100-MHz Arm Cortex-M0+ that supports low-power operations, 1MB of Flash, 288KB of SRAM, 104 GPIO, 7 programmable analog blocks, 56 programmable digital blocks, Full-Speed USB, a serial memory interface, a PDM-PCM digital microphone interface, and industry-leading capacitive-sensing with CapSense.
The PSOC 6 WiFi-BT Pioneer board offers compatibility with Arduino shields.
The Cortex-M0+ is a primary core on the board's SoC. It starts first and enables the CM4 core.
Hardware
For more information about the PSOC 62 MCU SoC and CY8CKIT-062-WiFi-BT board:
PSOC 62 MCU SoC Website_PSOC 62 MCU Datasheet_PSOC 62 MCU Architecture Reference Manual_PSOC 62 MCU Register Reference Manual_CY8CKIT-062-WiFi-BT Website_CY8CKIT-062-WiFi-BT User Guide_CY8CKIT-062-WiFi-BT Schematics_.. zephyr:board-supported-hw::
The PSOC 62 MCU SoC is configured to use the internal IMO+FLL as a source for the system clock. CM0+ works at 50MHz, CM4 - at 100MHz. Other sources for the system clock are provided in the SOC, depending on your system requirements.
The PSOC 62 MCU SoC has 9 SCB blocks 8 of each can be configured as UART interfaces for serial communication. At the moment UART5 on SCB5 and UART6 on SCB6 are configured. SCB5 is connected to the onboard KitProg2's USB-UART Bridge, SCB6 to P12_0, P12_1 pins on the J3 of the Arduino Uno R3 compatible PSOC 6 I/O header.
To get the OpenOCD package, it is required that you
Programming and Debugging
.. zephyr:board-supported-runners::
The CY8CKIT-062-WiFi-BT includes an onboard programmer/debugger (KitProg2) with mass storage programming to provide debugging, flash programming, and serial communication over USB. There are also PSOC 6 program and debug headers J11 and J12 that can be used with Segger J-Link. A watchdog timer is enabled by default. To disable it call Cy_WDT_Unlock() and Cy_WDT_Disable().
Only the CM0+ core starts by default after the MCU reset. In order to have
CM4 core working FW for both cores should be written into Flash. CM0+ FW
should starts the CM4 core at one point using
Cy_SysEnableCM4(CM4_START_ADDRESS); call. CM4_START_ADDRESS is 0x10060000 in
the current configuration. The CM0+/CM4 Flash/SRAM areas are defined in
:zephyr_file:dts/arm/infineon/cat1a/legacy/psoc6.dtsi.
Build the project for CM0+
.. zephyr-app-commands:: :board: cy8ckit_062_wifi_bt/cy8c6247/m0 :goals: build
Switch the DevKit into CMSIS-DAP mode using SW3 (LED2 should blink) and flash the board:
.. code-block:: console
$<openocd_path>\bin\openocd -c "source [find interface/cmsis-dap.cfg]"
-c "transport select swd" -c "source [find target/psoc6.cfg]"
-c "if [catch {program {<zephyr_path>\samples\hello_world\build\zephyr\zephyr.elf}} ]
{ echo {** Program operation failed } }
else { echo { Program operation completed successfully **} }"
-c "reset_config srst_only;reset run;psoc6.dap dpreg 0x04 0x00;shutdown"
Switch the DevKit back using SW3. Open a serial terminal (minicom, putty, etc.) and connect to the board with the following settings:
Reset the board and the following message will appear on the corresponding serial port:
.. code-block:: console
***** Booting Zephyr OS zephyr-v1.13.0-1877-g9d14874db1 ***** Hello World! cy8ckit_062_wifi_bt
References
.. target-notes::
.. _PSOC 62 MCU SoC Website: https://www.cypress.com/products/32-bit-arm-cortex-m4-psoc-6
.. _PSOC 62 MCU Datasheet: https://www.cypress.com/documentation/datasheets/psoc-6-mcu-psoc-62-datasheet-programmable-system-chip-psoc-preliminary
.. _PSOC 62 MCU Architecture Reference Manual: https://www.cypress.com/documentation/technical-reference-manuals/psoc-6-mcu-psoc-62-architecture-technical-reference-manual
.. _PSOC 62 MCU Register Reference Manual: https://www.cypress.com/documentation/technical-reference-manuals/psoc-6-mcu-psoc-62-register-technical-reference-manual-trm
.. _CY8CKIT-062-WiFi-BT Website: https://www.cypress.com/documentation/development-kitsboards/psoc-6-wifi-bt-pioneer-kit
.. _CY8CKIT-062-WiFi-BT User Guide: https://www.cypress.com/file/407731/download
.. _CY8CKIT-062-WiFi-BT Schematics: https://www.cypress.com/file/420846/download