M0+ based microcontroller. This application note also guides you on setting up the PSOC™ HV MS development environment. Intended audience This document is intended for anyone using PSOC™ HV MS family MCUs. Application note Please read the sections “Important notice” and “Warnings” at the end of this document 002-34115 Rev. *C www.infineon.com 2025-02-20...
Getting started with PSOC™ HV MS family Table of contents Table of contents About this document ........................1 Table of contents ..........................2 Introduction .......................... 3 Feature set ..........................4 Function summary ..........................5 Development environment and tools ..................9 Evaluation board .............................
Getting started with PSOC™ HV MS family Introduction Introduction This application note provides an overview of the device feature set, and describes the development environment and tools to get started with the CY8C41xxLxE-HVSxxx series from the PSOC™ HV MS family. PSOC™...
Getting started with PSOC™ HV MS family Feature set Feature set PSOC™ HV MS (64K/128K) is a fully integrated programmable embedded system for several automotive HMI, body, and powertrain applications. The system features an Arm® Cortex®-M0+ processor, and programmable and reconfigurable analog and digital blocks. PSOC™...
Getting started with PSOC™ HV MS family Feature set CPU subsystem PSOC HV MS M0S8 SWD/TC SPCIF architecture DataWire/ Arm® Cortex®-M0+ Flash SRAM P-DMA 32-bit 48 MHz 128 KB 16 KB 16 KB 8 ch FAST MUL Read accelerator SRAM controller Initiator/MMIO AHB-Lite ROM controller...
Page 6
Getting started with PSOC™ HV MS family Feature set High-voltage subsystem • Regulator output voltage supports 3.3 V or 5 V selectable with ±2% trimmed accuracy − Regulator current: up to 60 mA − Thermal shutdown − Operates directly off 12 V/24 V battery (tolerates up to 42 V) −...
Page 7
Getting started with PSOC™ HV MS family Feature set Table 1 shows the PSOC™ HV MS devices summary. Table 1 PSOC™ HV MS device summary Feature PSOC™ HV MS-64K PSOC™ HV MS-128K Core 32-bit Cortex®-M0+ CPU 32-bit Cortex®-M0+ CPU Maximum frequency 24 MHz to 48 MHz 24 MHz to 48 MHz Interrupt...
Page 8
Getting started with PSOC™ HV MS family Feature set Feature PSOC™ HV MS-64K PSOC™ HV MS-128K Precision internal low-power oscillator ±5% 32 kHz ±5% 32 kHz (PILO) Internal low-speed oscillator (ILO) 40 kHz 40 kHz Functional safety for ASIL-B Memory protection unit (MPU) Available Available Basic watchdog timer (WDT)
CYHVMS-64K-56-001 has Arm® standard MIPI 10-pin connector for the debug interface by third-party interfaces, and Infineon KitProg3 low-level communication interface for programming and debugging. The evaluation board can be used for development of software. For more information on board details, see the PSOC™ HV MS Evaluation Board user guide [5].
Getting started with PSOC™ HV MS family Development environment and tools Figure 4 shows the CYHVMS-64K-56-001 Evaluation Board block diagram. Status LED Mode SW VBUS LED USB Lines USB micro PSOC 5LP PSOC 5LP program header Fuse 0-OHM Power LED 12 V wall Not mount 10-pin MIPI...
Page 11
Getting started with PSOC™ HV MS family Development environment and tools PSOC™ HV MS device: Connection/peripheral Dummy header/test pin U2 (56-QFN package) Pin # Pin name P1.0 SAR ADC VREF J12.1 P1.1 J11 extension header [36] J10.9 VDDIO I/O power connected to VDDD (3.3 V or 5 V): 0.1 μF + 3.3 μF capacitors VSSD Digital GND...
Getting started with PSOC™ HV MS family Development environment and tools PSOC™ HV MS device: Connection/peripheral Dummy header/test pin U2 (56-QFN package) Pin # Pin name P4.7 CAPSENSE™ button 2 LED J9.8 P4.6 CAPSENSE™ button 1 LED J9.7 P4.5 CAPSENSE™ button 2 RX J9.6 P4.4 CAPSENSE™...
Page 13
Getting started with PSOC™ HV MS family Development environment and tools +---adc * +---deep_sleep main_cm0plus.c +---die_temp main_cm0plus.c +---dual main_cm0plus.c +---multi main_cm0plus.c +---single main_cm0plus.c \---triple main_cm0plus.c +---canfd * +---canfd_with_pcan main_cm0plus.c +---canfdNode0 main_cm0plus.c \---canfdNode1 main_cm0plus.c +---capsense main_cm0plus.c project_config.c project_config.h \---usercfg cy_cs_cfg.h +---CSX_buttons CSX_buttons.csproject cy_cs_cfg.h +---CSX_buttons_litekit **...
Page 14
Getting started with PSOC™ HV MS family Development environment and tools +---dma +---1d_transfer main_cm0plus.c \---desc_chain main_cm0plus.c +---eeprom main_cm0plus.c +---flash main_cm0plus.c +---gpio +---all_leds main_cm0plus.c \---button main_cm0plus.c +---i2c +---i2c_master main_cm0plus.c \---i2c_slave main_cm0plus.c +—iso uart * +---host main_cm0plus.c \---node main_cm0plus.c +---lin \---slave main_cm0plus.c PLinMaster.linproj +---lpcomp main_cm0plus.c...
Page 15
Getting started with PSOC™ HV MS family Development environment and tools main_cm0plus.c +---spi +---highLevelDriverMaster main_cm0plus.c +---highLevelDriverSlave main_cm0plus.c +---lowLevelDriverMaster main_cm0plus.c \---lowLevelDriverSlave main_cm0plus.c +---sysclk main_cm0plus.c +---sysflt +---flash main_cm0plus.c \---sram main_cm0plus.c +---sysint \---button_interrupt main_cm0plus.c +---syspm +---deepsleep_gpio main_cm0plus.c \---sleep_gpio main_cm0plus.c +---sysreset main_cm0plus.c +---systick main_cm0plus.c +---syswdt +---crwdt main_cm0plus.c...
Getting started with PSOC™ HV MS family Development environment and tools Device in user mode 3. CM0+ executes the user application from the code flash region The following steps are involved in the application startup sequence: 4. System reset (@0x0000 0000) 5.
Page 18
Getting started with PSOC™ HV MS family Development environment and tools Boot process is executed The main function of the boot process is to configure the system. Reset Release Applies trims Lifecycle stage and protection from eFuse and supervisory flash Debug and Test Access Restrictions Hardware ROM Boot Process System protection setting...
Getting started with PSOC™ HV MS family Development environment and tools 3.2.4 Sample code Code Listing 1 shows a sample code for CM0+ startup and Code Listing 2 shows a sample code for CM0+ main function. Code Listing 1 Sample code for CM0+ startup ;************************************************************************ ;* Start-up Code ;************************************************************************...
Page 20
Getting started with PSOC™ HV MS family Development environment and tools Code Listing 1 Sample code for CM0+ startup r7, =__iar_program_start ; Note: Control flow does not necessarily return here. ; On some tool-chains (e.g. IAR) control flow will never return from ;...
Peripheral drivers Peripheral drivers are a set of firmware drivers that provide APIs for accessing hardware. These APIs perform initialization and control activities of each peripheral. Table 3 lists the peripheral drivers that Infineon provides. Table 3 Peripheral drivers Driver...
Page 22
Getting started with PSOC™ HV MS family Development environment and tools Driver Description API functionality GPIO General-purpose I/O ports Configures and access device input/output pins Inter-Integrated Circuit provides master and slave data transfer Local Interconnect Network (LIN) Provides master and slave data transfer capabilities LPCOMP Low-power comparators...
2. Under Software, find PSOC™ 4 HV Family AutoPDL and middleware and click Request to get access to the AutoPDL software Once the order request is approved, you will receive an email from Infineon Developer Center (R-IFX- DeveloperCent@infineon.com). Product installer key (License Key) and a link to download the software...
After the setup wizard appears, click Next Figure 8 Setup wizard Enter the License key which is included in the email from Infineon Developer Center and click Next Figure 9 Adding license key Read the license agreement. Select I accept the agreement and click Next Application note 002-34115 Rev.
Page 25
Getting started with PSOC™ HV MS family Development environment and tools Figure 10 Accepting license agreement Read the information and click Next Figure 11 Reading the information for package Select the install folder and click Next to continue Application note 002-34115 Rev.
Page 26
Getting started with PSOC™ HV MS family Development environment and tools Figure 12 Selecting the installation folder Select the components that you want to install and click Next to continue Figure 13 Selecting components The AutoPDL and middleware package installer checks for the existing AutoPDL drivers/middleware and documents in the installation folder.
Page 27
Getting started with PSOC™ HV MS family Development environment and tools Figure 14 Replacing the existing contents Confirm the details and click Install Figure 15 Installing AutoPDL and middleware Read the Precautions for Use and click Next Application note 002-34115 Rev. *C 2025-02-20...
Page 28
Getting started with PSOC™ HV MS family Development environment and tools Figure 16 Reading the precautions for using the package 10. Click Finish to complete the installation Figure 17 Finishing the installation Device header files The setup wizard for device header files appears automatically In the setup wizard, click Next Read the license agreement.
Page 29
Getting started with PSOC™ HV MS family Development environment and tools Figure 18 Selecting the installation folder Select the PSOC™ HV device for which you want to install headers and click Next to continue Figure 19 Selecting headers Check your selection and click on install Application note 002-34115 Rev.
Page 30
Getting started with PSOC™ HV MS family Development environment and tools Figure 20 Installing the package Click Finish to complete the installation Code examples The setup wizard for code examples automatically appears. In the setup wizard, click Next Read the license agreement. Select I accept the agreement and click Next Read the information and click Next Select the install folder as the same as selected while installing the middleware and device header.
Getting started with PSOC™ HV MS family Development environment and tools Figure 22 Selecting the required code example Check your selection and click Install Figure 23 Ready for installation Click Finish to complete the installation 3.4.2.3 IAR EWARM flash patch configuration update Copy and paste (or replace) the flash loader files (in the arm folder) to the IAR installation folder.
Getting started with PSOC™ HV MS family Development environment and tools Figure 24 Copying the folder 3.4.3 Example usage of AutoPDL The following steps are for PSOC™ HV MS-64K. In case of using PSOC™ HV MS-128K, adjust the number and follow the same step.
Page 33
Getting started with PSOC™ HV MS family Development environment and tools Figure 26 Sample code for main_cm0plus.c 3. Write the define value for your target device: Open C:\INFINEON_AUTO_SW\PSoC4HV_PDL_Vxxxxx\source\userenv\cy_pdl_config.h The device names supported by the standard evaluation board are as follows: (evaluation board) or (lite-kit board) HVPA-144K: CY8C4147LCE_HV423...
Page 34
Getting started with PSOC™ HV MS family Development environment and tools Figure 27 Changing cy_pdl_config.h 4. Select Project > Rebuild All to build the project Figure 28 Rebuilding the project Note: If you did not request a SafeTlib license, two errors will occur. If you see the errors, remove the cy_pstl_user_callout.c and libpstl.a files and then select Rebuild all.
Page 35
Getting started with PSOC™ HV MS family Development environment and tools Remove cy_pstl_ user_callout.c Remove libpstl.a Figure 29 Fixing SafeTlib license errors 5. Confirm the initial jumper and switch settings (See Figure 30): SW4 – Battery side − J19 – Short −...
Page 36
Getting started with PSOC™ HV MS family Development environment and tools Short Battery side J5 Short Right side Figure 30 CYHVMS-64K-56-001 initial jumper and switch settings Note: If you do not have the IAR I-jet Debugger, skip steps 9 to 12. 6.
Page 37
Getting started with PSOC™ HV MS family Development environment and tools Figure 32 Configuring the debugger 8. To set correct debugger, open Project > Options Figure 33 Options for debugger 9. Find Debugger in Category, and select I-jet in the Driver column Figure 34 Finding debugger 10.
Page 38
Getting started with PSOC™ HV MS family Development environment and tools Figure 35 Downloading the application 11. Push the reset switch (SW2) on the board, and then confirm that the LEDs (D4, D5) are blinking 12. To download application using onboard KitProg3, do the following: Connect the USB cable to J1 of the CYHVMS-64K-56-001 Evaluation Board with the 12 V power supply from J14 (See Figure...
Page 39
Getting started with PSOC™ HV MS family Development environment and tools Figure 37 Checking the debugger settings 14. Select Project > Options to change the settings Figure 38 Options to change settings 15. Select CMSIS DAP from Category, and click the Interface tab. Check that the settings are as follows: Probe config: Auto −...
Page 40
Getting started with PSOC™ HV MS family Development environment and tools Figure 40 Rebuilding the project 18. Download the project to PSOC™ HV MS device by selecting Project > Download > Download active application Figure 41 Downloading the application 19. Push the reset switch (SW2) on the board, and then confirm that the LED (D4, D5) is blinking 20.
Getting started with PSOC™ HV MS family Development environment and tools Figure 42 Debugging the project 3.4.4 Other sample codes The other code examples are in this folder: C:\INFINEON_AUTO_SW_\PSoC4HV_PDL_MW_Vxxxx\examples Figure 43 Example sample codes 1. Go to any code sample folder (e.g., sar) and copy the main_cm0plus.c file in the folder Application note 002-34115 Rev.
Getting started with PSOC™ HV MS family Development environment and tools Copy Figure 44 Copying main_cm0plus.c file 2. Navigate to PSOC4HV_PDL_MW_Vxxxxx\examples\Tools\psoc4hvms64k and replace the copied main_cm0plus.c file Replace Figure 45 Copying the license file 3. From the same folder, open psoc4hvms64k_Eva_license.eww (or qAWpsoc4hvms64k_flash_cm0plus_template.eww for source file license) to open the IAR EWARM sample project 4.
Development environment and tools Flash programming tools Table 6 lists the supported flash programming tools. Infineon MiniProg4 programmer interface is for development purposes. For mass production purposes, JTAG programmer from a third-party is suitable. For Infineon Auto Flash Utility, contact Technical Support to obtain this software.
Summary Summary This application note guided you to set up PSOC™ HV MS development environment. Infineon provides an evaluation board and a wealth of sample software to help you get started with PSOC™ HV MS family. To evaluate the CYHVMS-64K-56-001 Evaluation Board, contact your local sales representative or Technical Support.
Getting started with PSOC™ HV MS family Glossary Glossary Table 8 Glossary Terms Description analog-to digital converter Automotive Electronics Council Advanced High-Performance Bus application programming interface AutoPDL Automotive Peripheral Driver Library brownout detector CAPSENSE™ capacitive sensing CM0+ Arm® Cortex®-M0+ (processor core name) central processing unit CPUSS CPU subsystem...
Page 46
Getting started with PSOC™ HV MS family Glossary Terms Description non-maskable interrupt PILO precision low-power oscillator power-on reset pulse width modulation quad flat no-lead random access memory read-only memory successive approximation register serial communication block signal-to-noise ratio serial peripheral interface SRAM static RAM SRSS...
Getting started with PSOC™ HV MS family References References The following are the PSOC™ HV MS family series application notes, datasheets, and reference manuals. Contact Technical Support to obtain these documents or get support. AN234116 – Hardware design guide for PSOC™ HV MS family PSOC™...
Getting started with PSOC™ HV MS family Revision history Revision history Document Date Description of changes revision 2022-03-24 Initial release 2023-04-11 Added PSOC™ HV MS-128K information in all chapters 2023-09-18 Updated number of low-power comparator Corrected typos 2025-02-20 Updated to use AutoPDL Application note 002-34115 Rev.
All referenced product or service names and trademarks are the property of their respective owners. PSOC™, formerly known as PSoC™, is a trademark of Infineon Technologies. Any references to PSoC™ in this document or others shall be deemed to refer to PSOC™.
Need help?
Do you have a question about the PSOC HV MS Series and is the answer not in the manual?
Questions and answers