Ika Shouyu Poppoyaki - LPC82x supported
Fork of ika_shouyu_poppoyaki by
Revision 14:a7b9f74fb856, committed 2013-08-28
- Comitter:
- okano
- Date:
- Wed Aug 28 11:55:00 2013 +0000
- Parent:
- 13:60995bf8b2c7
- Child:
- 15:051ca36cc64b
- Commit message:
- "AUTO_PROGRAM_START" option added.; Header comment modified in main.cpp
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Aug 28 05:07:22 2013 +0000 +++ b/main.cpp Wed Aug 28 11:55:00 2013 +0000 @@ -1,9 +1,24 @@ /** * Sample of ISP operation for NXP MCUs * - * @author Akifumi (Tedd) OKANO, NXP Semiconductors - * @version 0.5 + * @author Tedd OKANO + * @version 0.6 * @date Aug-2013 + * + * This program programs MCU flash memory through UART. It uses + * "In-System Programming (ISP)" interface in target MCU (NXP LPC micro- + * controllers). + * + * The ISP is done by PC and serial cable normally. The ISP protocol is + * executed software on a PC. The software reads a data file and transfers + * the data with the ISP protocol. + * This program does same process of that. The mbed perform the function like + * "FlashMagic" and "lpc21isp". + * (This program not just copies the binary but also insert 4 byte checksum at + * address 0x1C.) + * + * This program currently supports LPC1114(LPC1114FN28/102 - DIP28-ARM) and + * LPC810(LPC810M021FN8 - DIP8-ARM). */ #include "mbed.h" @@ -115,6 +130,13 @@ "** The data has been written successflly :)" ); +//#define AUTO_PROGRAM_START +#ifdef AUTO_PROGRAM_START + wait_ms( 2 ); // wait 2 ms for just in case ;) + reset_target( NO_ISP_MODE ); + printf( " ** The program in flash has been started!!\r\n\r\n" ); +#endif + int i = 0; while ( 1 ) {