Code to load a LPC1114 over tx/rx. I have only tested with a 1114 chip but it should work with other LPC uControllers
Dependencies: DirectoryList MODSERIAL mbed
Fork of ika_shouyu_poppoyaki by
Revision 42:2b40666d8177, committed 2014-10-18
- Comitter:
- k4zuki
- Date:
- Sat Oct 18 07:36:54 2014 +0000
- Parent:
- 41:74b9ff21098f
- Child:
- 43:c7d6d62abc14
- Commit message:
- LPC82x series supported (only 824 is tested)
Changed in this revision
--- a/_user_settings.h Tue Nov 19 23:53:20 2013 +0000 +++ b/_user_settings.h Sat Oct 18 07:36:54 2014 +0000 @@ -1,7 +1,7 @@ #ifndef MBED_ISP___USER_SETTINGS__ #define MBED_ISP___USER_SETTINGS__ -// file name for the binary data +/// file name for the binary data // edit here if you need to use different file name or storage media #define SOURCE_FILE "/local/bin"
--- a/main.cpp Tue Nov 19 23:53:20 2013 +0000 +++ b/main.cpp Sat Oct 18 07:36:54 2014 +0000 @@ -41,7 +41,7 @@ err = isp_flash_write( SOURCE_FILE ); - printf( "\r\n %s\r\n\r\n", + printf( "\r\n %d: %s\r\n\r\n",err, err ? SUMMARY_MESSAGE_FAIL : SUMMARY_MESSAGE_SUCCESS
--- a/target_table.cpp Tue Nov 19 23:53:20 2013 +0000 +++ b/target_table.cpp Sat Oct 18 07:36:54 2014 +0000 @@ -10,9 +10,14 @@ { "LPC812M101JDH16", 0x00008120, 4096, 16384, 1024, BINARY, 0x10000300 }, { "LPC812M101JD20", 0x00008121, 4096, 16384, 1024, BINARY, 0x10000300 }, { "LPC812M101JDH20", 0x00008122, 4096, 16384, 1024, BINARY, 0x10000300 }, +///added for LPC82x series + { "LPC824M201JHI33", 0x00008241, 8192, 32768, 1024, BINARY, 0x10000300 }, + { "LPC822M101JHI33", 0x00008221, 4096, 16384, 1024, BINARY, 0x10000300 }, + { "LPC824M201JDH20", 0x00008242, 8192, 32768, 1024, BINARY, 0x10000300 }, + { "LPC822M101JDH20", 0x00008222, 4096, 16384, 1024, BINARY, 0x10000300 }, + }; - target_param *find_target_param( char *device_id_string ) { int id;