PIC18F BootLoader
Functions
main.c File Reference

In this file the functions are defined and processed the commands from the host. More...

#include <xc.h>
#include "system.h"
#include "FlashDriver.h"
#include "UARTDriver.h"
Include dependency graph for main.c:

Functions

void main (void)
 entry point of the system init functions are called from here.
 
void initVarConfigPort (void)
 function configures and initializes IO ports.
 
void runApplcn (void)
 PC is updated with the new pointer to execute loaded binary from the application flash program memory.
 
void runStateMachine (void)
 function executes different states of the system. SYS_SND_ADDRS_RANGE - Send the PIC programmable start and end address of the program memory SYS_WAIT_FOR_START_CMND - The Start command triggers system to start the process and initializes buffer counter SYS_RCV_FIRMWARE_HEADER - Get the total packet count from the host and applcn start address SYS_CONFIG_FLASH - Erase application program area and update table pointer SYS_FIRMWARE_UPDATE - Receive and put the binary chunks in the flash memory SYS_RUN_APPLCN - Run the application
 

Detailed Description

In this file the functions are defined and processed the commands from the host.

Author
Mallikarjun Tirlapur
Date
14 May, 2016, 11:04 PM