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
Diff: target_handling.cpp
- Revision:
- 35:0b434ef4af49
- Parent:
- 28:689c3880e0e4
- Child:
- 39:f68f9fa1e88e
diff -r eaca33d3e632 -r 0b434ef4af49 target_handling.cpp --- a/target_handling.cpp Thu Sep 26 11:51:03 2013 +0000 +++ b/target_handling.cpp Thu Sep 26 12:56:01 2013 +0000 @@ -19,25 +19,25 @@ while ( retry_count-- ) { reset_target( ENTER_TO_ISP_MODE ); - if ( !try_and_check( "?", "Synchronized", 0 ) ) + if ( !try_and_check( "?", "Synchronized" ) ) break; } if ( !retry_count ) return ( NULL ); - try_and_check2( "Synchronized\r\n", "OK", 0 ); - try_and_check2( "12000\r\n", "OK", 0 ); - try_and_check2( "U 23130\r\n", "0", 0 ); - try_and_check2( "A 0\r\n", "0", 0 ); + try_and_check2( "Synchronized\r\n", "OK" ); + try_and_check2( "12000\r\n", "OK" ); + try_and_check2( "U 23130\r\n", "0" ); + try_and_check2( "A 0\r\n", "0" ); - try_and_check( "K\r\n", "0", 0 ); + try_and_check( "K\r\n", "0" ); get_string( str_buf0 ); get_string( str_buf1 ); printf( " result of \"K\" = %s %s\r\n", str_buf0, str_buf1 ); - try_and_check( "J\r\n", "0", 0 ); + try_and_check( "J\r\n", "0" ); get_string( str_buf0 ); printf( " result of \"J\" = %s\r\n", str_buf0 );