F29H85x-SDK  1.03.00.00
 
UartDownload.cpp File Reference

Introduction

High-level UART workflow (download host image to target)

Note
For all downloads, the flash programmer sends the application the same way it does the kernel. In both instances, the flash programmer send one byte and the device echos back that same byte.

Functions

int _UartBoot (FlashProgrammer::UartInterface &uartHandle, FILE *fptr)
 Loads the program to device by sending the file to BootROM/flash kernel via the boot ROM method (byte-by-byte send with byte-by-byte acknowledgement) Note: This is the default behavior from BootROM for uart boot.
 
int _PktDataMode (FlashProgrammer::UartInterface &uartHandle, FILE *fptr)
 Loads the program to device by sending the file to BootROM/flash kernel via the buffered method (frame-by-frame send with frame acknowledgement) Note: This flow has error-detection and error-handling support and therefore recommended for all kernel applications.
 
int downloadBootloader (FlashProgrammer::UartInterface &uartHandle, const char *kernelFile)
 Download a (SBL) kernel to the device via BootROM.
 
int downloadApplication (FlashProgrammer::UartInterface &uartHandle, const char *applicationFile, const size_t maxPacketSize)
 Download an application image with certificate to the device.