Files | |
| file | CommandLine.h |
| Includes the command line utility functions to parse all command parameters. | |
| file | Common.h |
| Commonly shared libraries, macros and global variables. | |
| file | FlashStatus.h |
| Utility file to interpret Flash Status Packet Info (FlashStatusPkt_t) | |
| file | OutputStream.h |
| Includes output stream abstract class based on std::ostream. | |
| file | PacketParser.h |
| Includes the general function and strcture used in packet communication protocol. | |
| file | SoCIDParser.h |
| Interprets SocID info. | |
| file | UartDownload.h |
| Includes the abstracted UART download flows and its associated sub-functions. | |
| file | UartInterface.h |
| Includes low-level abstraction interface function to UART serial port. | |
| file | UartPacket.h |
| Includes High-level UART packet flow implementation. | |
| file | CommandLine.cpp |
| Command line prints, error checks and parameter parsing functions. | |
| file | FlashStatus.cpp |
| Utility file to interpret Flash Status Packet Info (FlashStatusPkt_t) | |
| file | PacketParser.cpp |
| Includes the general function and strcture used in packet communication protocol. | |
| file | SoCIDParser.cpp |
| Interprets SOCID_Info. | |
| file | UartDownload.cpp |
| High-level UART workflow (download host image to target) | |
| file | UartInterface.cpp |
| Low-level abstraction interface to UART serial port read and write. | |
| file | UartPacket.cpp |
| Includes High-level UART packet flow implementation. | |
Data Structures | |
| class | CoutStream |
| class | NullStream |
| class | FileStream |
Functions | |
| void | parseCommandLine (int argc, char *argv[]) |
| void | exitApp (int iRetcode) |
| int | printFlashStatus (std::ostream &console, FlashStatusPkt_t &flashPkt) |
| Prints the Flash Status Packet Info (FlashStatusPkt_t) to the console. | |
| int | printSocID (std::ostream &console, void *data, size_t length) |
| Prints the SoC ID Info to the provided console. | |
| int | printBromStatus (std::ostream &console, void *data, size_t length) |
| Prints the Brom Status Info to the provided console. | |
| 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. | |
| void | printVersion (void) |
| void | printWelcome (void) |
| void | showHelp (void) |
| void | setDeviceName (const char *deviceName) |
| void | setInputOptions (const char *optionList) |
| void | checkErrors (void) |
| int | _printFMSTAT_f29h85x (std::ostream &console, FlashStatusPkt_t &flashPkt) |
| int | _printSocId_f29h85x (std::ostream &console, void *data, size_t length) |
| int | _printbromStatus_f29h85x (std::ostream &console, void *data, size_t length) |
| void | convertEndian (void *data, std::size_t byteSize) |
| 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. | |
Namespaces | |
| namespace | FlashProgrammer |
Macros | |
| #define | FLASH_PROGRAMMER_VERSION 2.1.0 |
| #define | ENABLE_PERIPHERAL_BOOT |
| #define | DEFAULT_PAYLOAD_SIZE 512U |
| #define FLASH_PROGRAMMER_VERSION 2.1.0 |
| #define ENABLE_PERIPHERAL_BOOT |
| #define DEFAULT_PAYLOAD_SIZE 512U |
| void parseCommandLine | ( | int | argc, |
| char * | argv[] ) |
| void exitApp | ( | int | iRetcode | ) |
| int printFlashStatus | ( | std::ostream & | console, |
| FlashStatusPkt_t & | flashPkt ) |
Prints the Flash Status Packet Info (FlashStatusPkt_t) to the console.
| console | The output stream to print the Flash Status Packet Info |
| flashPkt | The Flash Status Packet Info to be printed |
| int printSocID | ( | std::ostream & | console, |
| void * | data, | ||
| size_t | length ) |
Prints the SoC ID Info to the provided console.
| console | The output stream to print the SoC ID Info |
| data | Pointer to the data containing SoC ID information |
| length | The length of the data to be printed |
| int printBromStatus | ( | std::ostream & | console, |
| void * | data, | ||
| size_t | length ) |
Prints the Brom Status Info to the provided console.
| console | The output stream to print the Brom Status Info |
| data | Pointer to the data containing Brom Status information |
| length | The length of the data to be printed |
| int downloadBootloader | ( | FlashProgrammer::UartInterface & | uartHandle, |
| const char * | kernelFile ) |
Download a (SBL) kernel to the device via BootROM.
| uartHandle | Handle to an instance of UART interface |
| kernelFile | The name of the kernel file |
| int downloadApplication | ( | FlashProgrammer::UartInterface & | uartHandle, |
| const char * | applicationFile, | ||
| const size_t | maxPacketSize ) |
Download an application image with certificate to the device.
| uartHandle | Handle to an instance of UART interface |
| applicationFile | The name of the application image |
| maxPacketSize | Optional packet size input to limit to maximum size of allowable bytes |
| void printVersion | ( | void | ) |
| void printWelcome | ( | void | ) |
| void showHelp | ( | void | ) |
| void setDeviceName | ( | const char * | deviceName | ) |
| void setInputOptions | ( | const char * | optionList | ) |
| void checkErrors | ( | void | ) |
| int _printFMSTAT_f29h85x | ( | std::ostream & | console, |
| FlashStatusPkt_t & | flashPkt ) |
| int _printSocId_f29h85x | ( | std::ostream & | console, |
| void * | data, | ||
| size_t | length ) |
| int _printbromStatus_f29h85x | ( | std::ostream & | console, |
| void * | data, | ||
| size_t | length ) |
| void convertEndian | ( | void * | data, |
| std::size_t | byteSize ) |
| 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.
| uartHandle | Handle to an instance of UART interface |
| fptr | File handler pointer |
| 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.
| uartHandle | Handle to an instance of UART interface |
| fptr | File handler pointer |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |