|
| 1 | +.. zephyr:board:: cy8cproto_041tp |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +The PSOC™ 4100T Plus evaluation kit enables you to evaluate and develop applications using the PSOC™ 4100T Plus microcontroller, part of Infineon’s PSOC™ 4 family. |
| 7 | +The device integrates an Arm Cortex-M0 CPU running up to 48 MHz, combining programmable analog and digital subsystems to support flexible mixed-signal designs. It features up to 128 KB Flash and 16 KB SRAM, and includes a wide range of configurable peripherals such as SAR ADC, comparators, opamps (CTBm), CapSense™ capacitive touch sensing, and TCPWM for timer/counter/PWM functionality. |
| 8 | + |
| 9 | +32-bit MCU subsystem |
| 10 | +- 48-MHz Arm® Cortex®-M0+ CPU with single-cycle multiply |
| 11 | +- Up to 128 KB of flash with read accelerator |
| 12 | +- Up to 32 KB of SRAM |
| 13 | +- Direct memory access (DMA) |
| 14 | +- Low-power 1.71 V to 5.5 V operation |
| 15 | +- Deep sleep mode with 6 μA always-on touch sensing |
| 16 | +- Active touch detection and tracking with 200 μA (average) |
| 17 | +- Real Time clock-SW is available |
| 18 | +- Power supply: 3.3 V or 5 V operation |
| 19 | + |
| 20 | +Programming and Debugging |
| 21 | +************************* |
| 22 | + |
| 23 | +.. zephyr:board-supported-runners:: |
| 24 | +
|
| 25 | +Building |
| 26 | +======== |
| 27 | + |
| 28 | +Here is an example for building the :zephyr:code-sample:`hello_world` sample application. |
| 29 | + |
| 30 | +.. zephyr-app-commands:: |
| 31 | + :zephyr-app: samples/hello_world |
| 32 | + :board: cy8cproto_041tp |
| 33 | + :goals: build |
| 34 | + |
| 35 | +Flashing |
| 36 | +======== |
| 37 | + |
| 38 | +The KIT_XMC72_EVK includes an onboard programmer/debugger (`KitProg3`_) to provide debugging, flash programming, and serial communication over USB. Flash and debug commands use OpenOCD and require a custom Infineon OpenOCD version, that supports KitProg3, to be installed. |
| 39 | + |
| 40 | +Infineon OpenOCD Installation |
| 41 | +============================= |
| 42 | + |
| 43 | +Both the full `ModusToolbox`_ and the `ModusToolbox Programming Tools`_ packages include Infineon OpenOCD. |
| 44 | +Installing either of these packages will also install Infineon OpenOCD. |
| 45 | + |
| 46 | +If neither package is installed, a minimal installation can be done by downloading the `Infineon OpenOCD`_ release for your system and manually extract the files to a location of your choice. |
| 47 | + |
| 48 | +.. note:: Linux requires device access rights to be set up for KitProg3. This is handled automatically by the ModusToolbox and ModusToolbox Programming Tools installations. When doing a minimal installation, this can be done manually by executing the script ``openocd/udev_rules/install_rules.sh``. |
| 49 | + |
| 50 | +West Commands |
| 51 | +============= |
| 52 | + |
| 53 | +The path to the installed Infineon OpenOCD executable must be available to the ``west`` tool commands. There are multiple ways of doing this. The example below uses a permanent CMake argument to set the CMake variable ``OPENOCD``. |
| 54 | + |
| 55 | + .. tabs:: |
| 56 | + .. group-tab:: Windows |
| 57 | + |
| 58 | + .. code-block:: shell |
| 59 | +
|
| 60 | + # Run west config once to set permanent CMake argument |
| 61 | + west config build.cmake-args -- -DOPENOCD=path/to/infineon/openocd/bin/openocd.exe |
| 62 | +
|
| 63 | + # Do a pristine build once after setting CMake argument |
| 64 | + west build -b cy8cproto_041tp -p always samples/hello_world |
| 65 | +
|
| 66 | + west flash |
| 67 | + west debug |
| 68 | +
|
| 69 | + .. group-tab:: Linux |
| 70 | + |
| 71 | + .. code-block:: shell |
| 72 | +
|
| 73 | + # Run west config once to set permanent CMake argument |
| 74 | + west config build.cmake-args -- -DOPENOCD=path/to/infineon/openocd/bin/openocd |
| 75 | +
|
| 76 | + # Do a pristine build once after setting CMake argument |
| 77 | + west build -b cy8cproto_041tp -p always samples/hello_world |
| 78 | +
|
| 79 | + west flash |
| 80 | + west debug |
| 81 | +
|
| 82 | +Once the gdb console starts after executing the west debug command, you may now set breakpoints and perform other standard GDB debugging. |
| 83 | + |
| 84 | +References |
| 85 | +********** |
| 86 | + |
| 87 | +.. target-notes:: |
| 88 | + |
| 89 | +.. _cy8cproto_041tp Board Website: |
| 90 | + https://www.infineon.com/evaluation-board/CY8CPROTO-041TP |
| 91 | + |
| 92 | +.. _ModusToolbox: |
| 93 | + https://www.infineon.com/design-resources/development-tools/sdk/modustoolbox-software |
| 94 | + |
| 95 | +.. _ModusToolbox Programming Tools: |
| 96 | + https://www.infineon.com/design-resources/development-tools/sdk/modustoolbox-software/modustoolbox-programming-tools |
| 97 | + |
| 98 | +.. _Infineon OpenOCD: |
| 99 | + https://github.com/Infineon/openocd/releases/latest |
| 100 | + |
| 101 | +.. _KitProg3: |
| 102 | + https://github.com/Infineon/KitProg3 |
0 commit comments