Application Note
34 of 45
001-84858 Rev. *N
2021-03-23
PSoC 4 Programming Using an External Microcontroller (HSSP)
Appendix A: Hex File Parser Application
Figure 15
Hex File Parser Application
1.
Select the hex file that needs to be programmed by clicking
Open Source P4 Hex File
and navigating to the
location of the file.
2.
Select the destination folder location in which the parsed
.c
and
.h
files (
HexImage.h
,
HexImage.c
) should be
created. Click
Select Target File Folder
to select the folder location.
Note:
Make sure that there are no files with the names HexImage.h or HexImage.c already in the target
folder location. Delete any such files or select a new folder location. A message is displayed to
notify you if the same file names are already present in the target folder location.
3.
After selecting the hex file and the target folder location, click
Parse Hex File
to generate the
.c
and
.h
files.
After parsing is complete, a message is displayed.
14.2
Adding the Generated Files to PSoC Creator Example Project
To add the generated
HexImage.c and HexImage.h
files to the PSoC Creator example project provided with this
application note, follow the steps in this section. They are required if you need to program a hex file into a
target device using PSoC 5LP as a host programmer. These steps apply to the project A_Hssp_Programmer and
B_Hssp_Pioneer for PSoC 4 HSSP.
1.
Select the Target File Folder location in the GUI, as shown in
. This is the folder in which the
main.c
file of the project is located.
2.
After the
HexImage.c
and
HexImage.h
files have been generated in the previous location, add those files to
the project workspace in PSoC Creator by clicking
Add Existing Item
in Workspace Explorer, as
shows.