Skip to content
Rhodri James edited this page Dec 7, 2015 · 6 revisions

upc2

A universal programmer and console program.

The ReadMe contains most of the information needed by users, so this wiki is notes about code structure, to-do lists and groaning.

Code Structure

The code can be broken down into:

  • Application front-end: upc2 isn't the only possible way to use the underlying bootloader system. Alternative front-ends should put their code in the progs directory.

  • Communications back-end: the serial interface code is implemented in an object-oriented manner, using function pointers. This allows different back-end mechanisms to be plugged in without (in theory) requiring any change to the rest of the code.

  • Core system: the core logic for running bootloads and the console. Alternative applications may need tweaks to these functions. Additional console escapes will be implemented here.

  • Protocols: functions to implement the individual download protocols.

Clone this wiki locally