William Reynolds
/
LPC_Bootloader
main.cpp@0:15536fa79743, 2011-09-27 (annotated)
- Committer:
- daugihao
- Date:
- Tue Sep 27 15:44:55 2011 +0000
- Revision:
- 0:15536fa79743
- Child:
- 1:0872c208795f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
daugihao | 0:15536fa79743 | 1 | #include "mbed.h" |
daugihao | 0:15536fa79743 | 2 | #include "LPC.h" |
daugihao | 0:15536fa79743 | 3 | |
daugihao | 0:15536fa79743 | 4 | SerialBuffered lpc(1024, p9, p10); |
daugihao | 0:15536fa79743 | 5 | |
daugihao | 0:15536fa79743 | 6 | int main() { |
daugihao | 0:15536fa79743 | 7 | //RESET CHIP TO LOAD TO BEFORE RUNNING PROGRAM!!! |
daugihao | 0:15536fa79743 | 8 | lpc.InitUART(230400); //Specified limit of 230400 baud |
daugihao | 0:15536fa79743 | 9 | lpc.ProgramFile("/fs/t.bin"); //Write your program name in this box with the prefix /fs/ (sometimes unstable with special characters and long names) |
daugihao | 0:15536fa79743 | 10 | } |
daugihao | 0:15536fa79743 | 11 | |
daugihao | 0:15536fa79743 | 12 | //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 |