Infineon PSoC 4 Quick Start Quide page 42

Table of Contents

Advertisement

PSoC 4 Programming Using an External Microcontroller (HSSP)
Appendix D: HSSP Functions
Function
Write_IO
Table 18
Function in Timeout.h
Function
DelayHundredUs()
Table 19
Functions in DataFetch.h
Function
HEX_ReadSiliconId()
HEX_ReadRowData()
HEX_ReadRowProtectionData() Copies the flash row protection data from the HexImage.c file to an
HEX_ReadChipProtectionData
HEX_ReadChecksumData()
GetFlashRowCount()
Table 20
Functions in ProgrammingSteps.h
Function
DeviceAcquire()
VerifySiliconId()
EraseAllFlash()
ChecksumPrivileged()
ProgramFlash()
VerifyFlash()
ProgramProtectionSettings() Programs the row protection data and chip protection data to the
VerifyProtectionSettings()
Application Note
Description
functions. Returns "true" if all SWD transactions succeeded (ACKed).
Writes a 32-bit data into the specified address of the CPU address space.
This function is implemented by using the Write_DAP() function. Returns
"true" if all SWD transactions succeeded.
Description
Introduces a delay of 100 µs to generate an active LOW pulse signal lasting
for 100 µs on the XRES pin.
Description
Copies the device silicon ID data from the HexImage.c file to an
indicated destination array.
Copies the flash row data from the HexImage.c file to an indicated
destination array. The flash row number is also passed as a
parameter to this function.
indicated destination array. The byte size of the protection data is
also passed as a parameter to this function.
Copies the chip protection data from the HexImage.c file to an
indicated destination.
Copies the checksum data from the HexImage.c file to an indicated
destination.
Returns the total number of flash rows in the target device from the
HexImage.c file.
Description
Enters the programming mode and acquires the target device.
Verifies whether the silicon ID of the target device and the hex file
match.
Erases the entire flash memory of the target device, including the
flash protection data.
Calculates the checksum of the privileged data in flash.
Programs the flash memory of the target device.
Verifies whether the flash data programmed to the target device
matches the hex file flash data.
target device.
Verifies whether the row protection data and chip protection data
programmed to the target device matches the data in the hex file.
42 of 45
001-84858 Rev. *N
2021-03-23

Advertisement

Table of Contents
loading

This manual is also suitable for:

An84858

Table of Contents