Application Note
25 of 45
001-84858 Rev. *N
2021-03-23
PSoC 4 Programming Using an External Microcontroller (HSSP)
Testing the Example Projects
Figure 9
Upgrade Firmware using PSoC Programmer
9.3
For Kits with Onboard PSoC 5LP Programmer (KitProg2)
To test the HSSP project on kits listed in
, use the B_Hssp_Pioneer project attached with this
application note. When using this kit, you do not need an external host microcontroller; PSoC 5LP is present as
an onboard microcontroller.
The onboard PSoC 5LP device has the bootloader firmware that can load and run new bootloadable
applications through USB. Therefore, the HSSP project is built as a bootloadable project, and you can
download the
B_Hssp_Pioneer.cyacd
project to PSoC 5LP via USB to be used as an HSSP host programmer.
This project uses a USB-to-UART Component to display the programming outputs on HyperTerminal, which is a
standard program used for serial communication.
The project requires the changes listed in
to work with the CY8CKIT-041-40xx kits. Note that
corresponding changes should be done in the
RegisterDefines.h
file in the project.
Table 11
Pin Assignments for Different Kits
Host Pin
CY8CKIT-041-40xx
CY8CKIT-149
CY8CKIT-147
Pin_SWDCK
P12[3]
P12[3]
P12[3]
Pin_SWDIO
P12[2]
P12[2]
P12[2]
Pin_XRES
P12[4]
P12[4]
P12[4]
To test this project, follow these steps:
1.
Prepare the B_Hssp_Pioneer project:
a)
Generate the files containing the programming data (HexImage.c, HexImage.h) for your target device
using the
b)
Replace the existing
HexImage.c
and
HexImage.h
files with the generated ones.