William Reynolds
/
LPC_Bootloader
Diff: main.cpp
- Revision:
- 0:15536fa79743
- Child:
- 1:0872c208795f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Sep 27 15:44:55 2011 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" +#include "LPC.h" + +SerialBuffered lpc(1024, p9, p10); + +int main() { + //RESET CHIP TO LOAD TO BEFORE RUNNING PROGRAM!!! + lpc.InitUART(230400); //Specified limit of 230400 baud + lpc.ProgramFile("/fs/t.bin"); //Write your program name in this box with the prefix /fs/ (sometimes unstable with special characters and long names) +} + +//To add new chips to load to, add a case to the switch function in ID.cpp, using the ID code and last sector number information \ No newline at end of file