PSOC™ 4 HVMS 64K Lite Kit
Overview
The KIT_PSOC4-HVMS-64K_LITE is a lite kit based on the PSOC™ 4 HVMS 64K family, featuring a PSOC™ 4 HVMS 64K (CY8C4146LWE-HVS115X) microcontroller with an Arm® Cortex®-M0+ core running at up to 48 MHz.
Key features include 64 KB flash, 8 KB SRAM, and an onboard KitProg3 programmer/debugger with USB Micro-B connectivity.
Hardware
SoC: PSOC™ 4 HVMS 64K (CY8C4146LWE-HVS115X)
CPU: Arm® Cortex®-M0+ at 48 MHz
Flash: 64 KB
SRAM: 8 KB
Peripherals: SAR ADC, TCPWM, SCB (UART/SPI/I2C)
Debug: Onboard KitProg3 (SWD + UART bridge)
Power: USB powered via Micro-B connector
For more information about the PSOC™ 4 HVMS 64K and KIT_PSOC4-HVMS-64K_LITE:
Kit Contents
PSOC™ 4 HVMS 64K Lite kit board
USB-A to Micro-B cable
Quick start guide
Supported Features
The kit_psoc4_hvms_64k_lite board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo -
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
kit_psoc4_hvms_64k_lite/cy8c4146lwe_hvs115x target
On-target memory for this board target: 8 KiB of RAM, 64 KiB of Flash.
Type |
Location |
Description |
Compatible |
|---|---|---|---|
CPU |
on-chip |
ARM Cortex-M0+ CPU1 |
|
ARM architecture |
on-chip |
Infineon Serial Communication Blocks (SCB) node1 |
|
Clock control |
on-chip |
||
on-chip |
|||
on-chip |
|||
Counter |
on-chip |
Infineon TCPWM counter5 |
|
DMA |
on-chip |
Infineon DMAC1 |
|
Flash controller |
on-chip |
Infineon CAT1 flash controller1 |
|
GPIO & Headers |
on-chip |
||
Input |
on-board |
Group of GPIO-bound input keys1 |
|
Interrupt controller |
on-chip |
ARMv6-M NVIC (Nested Vectored Interrupt Controller) controller1 |
|
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
MTD |
on-chip |
Flash node1 |
|
Pin control |
on-chip |
Infineon CAT1 Pinctrl Container1 |
|
PWM |
on-chip |
Infineon TCPWM PWM5 |
|
Serial controller |
on-chip |
Infineon CAT1 UART1 |
|
SRAM |
on-chip |
Infineon PSOC4 HVMS on-chip SRAM1 |
|
Timer |
on-chip |
ARMv6-M System Tick1 |
|
on-chip |
Infineon TCPWM Timer5 |
||
Watchdog |
on-chip |
Infineon CAT1 Watchdog1 |
Connections and IOs
LEDs
Name |
GPIO Pin |
|---|---|
LED6 |
P0.7 (active high) |
LED7 |
P0.6 (active high) |
Default Zephyr Peripheral Mapping
Pin |
Function |
Usage |
|---|---|---|
P5.0 |
SCB1 UART TX |
Console TX |
P5.1 |
SCB1 UART RX |
Console RX |
P0.7 |
GPIO |
LED6 |
P0.6 |
GPIO |
LED7 |
P5.5 |
GPIO |
SW5 |
System Clock
The PSOC™ 4 HVMS 64K uses the Internal Main Oscillator (IMO) as the default system clock source. The clock path is:
IMO (Internal Main Oscillator): 48 MHz
CLK_HF: 48 MHz (system clock)
SRAM ECC
The PSOC™ 4 HVMS 64K SRAM has error correction and detection (ECC). In Zephyr the SRAM ECC is disabled by default: it is turned off early during reset, so uninitialized SRAM can be read without raising a fault.
To enable the SRAM ECC, set the infineon,sram-ecc property on the sram0 node, for
example in an application devicetree overlay:
&sram0 {
infineon,sram-ecc;
};
and pass the overlay to the build:
west build -b kit_psoc4_hvms_64k_lite samples/hello_world -- -DEXTRA_DTC_OVERLAY_FILE=ecc.overlay
With the ECC enabled, the whole SRAM is written at reset to generate valid ECC. This is
skipped after a reset that preserves the SRAM (for example a watchdog reset), so .noinit
data survives such a reset. After a power-on or a supply loss the whole SRAM is always
initialized.
Serial Port
The PSOC™ 4 HVMS 64K has two SCB (Serial Communication Block) interfaces
that can be configured as UART, SPI, or I2C. The Zephyr console output is
assigned to SCB1 (uart1), which is routed through the KitProg3
USB-UART bridge.
Default communication settings are 115200 8N1.
Building
Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b kit_psoc4_hvms_64k_lite samples/hello_world
Programming and Debugging
The kit_psoc4_hvms_64k_lite board supports the runners and associated west commands listed below.
| flash | debug | rtt | attach | debugserver | |
|---|---|---|---|---|---|
| openocd | ✅ (default) | ✅ (default) | ✅ | ✅ | ✅ |
The KIT_PSOC4-HVMS-64K_LITE includes an onboard programmer/debugger (KitProg3) which can be used to program and debug the PSOC™ 4 HVMS 64K Cortex-M0+ core.
Infineon OpenOCD Installation
The ModusToolbox™ Programming Tools package includes Infineon OpenOCD. Alternatively, a standalone installation can be done by downloading the Infineon OpenOCD release for your system and extracting the files to a location of your choice.
Note
Linux requires device access rights to be set up for KitProg3. This is
handled automatically by the ModusToolbox™ Programming Tools installation.
When doing a standalone OpenOCD installation, this can be done
manually by executing the script openocd/udev_rules/install_rules.sh.
Configuring a Console
Connect a USB cable from your PC to the KitProg3 USB Micro-B connector on the KIT_PSOC4-HVMS-64K_LITE. Use the serial terminal of your choice (minicom, PuTTY, etc.) with the following settings:
Speed: 115200
Data: 8 bits
Parity: None
Stop bits: 1
Flashing
One time, set the Infineon OpenOCD path:
west config build.cmake-args -- "-DOPENOCD=path/to/infineon/openocd/bin/openocd.exe"
Build and flash the application:
west build -b kit_psoc4_hvms_64k_lite -p always samples/hello_world
west flash
One time, set the Infineon OpenOCD path:
west config build.cmake-args -- -DOPENOCD=path/to/infineon/openocd/bin/openocd
Build and flash the application:
west build -b kit_psoc4_hvms_64k_lite -p always samples/hello_world
west flash
You should see the following message on the console:
*** Booting Zephyr OS build vX.Y.Z ***
Hello World! kit_psoc4_hvms_64k_lite
Debugging
# From the root of the zephyr repository
west build -b kit_psoc4_hvms_64k_lite samples/hello_world
west debug
Once the GDB console starts, you may set breakpoints and perform standard GDB debugging on the PSOC™ 4 HVMS 64K Cortex-M0+ core.