Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MODSERIAL DirectoryList
Revision 52:4b1a0488e0e3, committed 2015-08-12
- Comitter:
- okano
- Date:
- Wed Aug 12 08:34:47 2015 +0000
- Parent:
- 51:981107d4e84f
- Commit message:
- LPC1115 support added
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
target_table.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 981107d4e84f -r 4b1a0488e0e3 main.cpp --- a/main.cpp Sun Jul 05 01:41:12 2015 +0000 +++ b/main.cpp Wed Aug 12 08:34:47 2015 +0000 @@ -2,8 +2,8 @@ * Sample of ISP operation for NXP MCUs * * @author Tedd OKANO - * @version 1.2 - * @date Jul-2015 + * @version 1.2.1 + * @date Aug-2015 * * This program programs MCU flash memory through UART. It uses * "In-System Programming (ISP)" interface in target MCU (NXP LPC micro- @@ -17,7 +17,8 @@ * (This program not just copies the binary but also insert 4 byte checksum at * address 0x1C.) * - * This program supports LPC1114, LPC81x, LPC82x, LPC1768/1769 and LPC11U68/LPC11E68. + * This program supports + * LPC1114, LPC1115, LPC81x, LPC82x, LPC1768/1769 and LPC11U68/LPC11E68. * * All detailed history is available in code publishing page. * Please find it on @@ -42,7 +43,7 @@ { int err; - printf( "\r\n\r\n\r\nmbed ISP program : programming LPC device from mbed (v1.1.2)\r\n" ); + printf( "\r\n\r\n\r\nmbed ISP program : programming LPC device from mbed (v1.2.1)\r\n" ); #ifndef ENABLE_FILE_SELECTOR err = isp_flash_write( SOURCE_FILE );
diff -r 981107d4e84f -r 4b1a0488e0e3 target_table.cpp --- a/target_table.cpp Sun Jul 05 01:41:12 2015 +0000 +++ b/target_table.cpp Wed Aug 12 08:34:47 2015 +0000 @@ -8,6 +8,7 @@ { "unknown ttarget", 0xFFFFFFFF, 1024, 4096, 4096, UUENCODE, 0x10000200 }, { "LPC1114FN28(FDH28)/102", 0x0A40902B, 4096, 32768, 4096, UUENCODE, 0x10000200 }, { "LPC1114FN28(FDH28)/102", 0x1A40902B, 4096, 32768, 4096, UUENCODE, 0x10000200 }, + { "LPC1115", 0x00050080, 8192, 65536, 4096, UUENCODE, 0x10000200 }, { "LPC810M021FN8", 0x00008100, 1024, 4096, 1024, BINARY, 0x10000300 }, { "LPC811M001JDH16", 0x00008110, 2048, 8192, 1024, BINARY, 0x10000300 }, { "LPC812M101JDH16", 0x00008120, 4096, 16384, 1024, BINARY, 0x10000300 }, @@ -54,6 +55,7 @@ result = ( (data_size / (4096 * 8)) + 16 ); } break; + case SECTOR_SIZE_VALIABLE4Kx24_AND_32KxN : if ( data_size <= (4096 * 24) ) { result = ( data_size / 4096 ); @@ -63,7 +65,6 @@ } break; - default : result = ( data_size / tpp->sector_size ); //break;