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: verification.cpp
- Revision:
- 35:0b434ef4af49
- Parent:
- 34:eaca33d3e632
- Child:
- 38:cb95bfe0546a
diff -r eaca33d3e632 -r 0b434ef4af49 verification.cpp --- a/verification.cpp Thu Sep 26 11:51:03 2013 +0000 +++ b/verification.cpp Thu Sep 26 12:56:01 2013 +0000 @@ -65,7 +65,7 @@ sprintf( command_str, "R %ld %ld\r\n", read_size, size ); // try_and_check( command_str, "0", MODE_SILENT ); - if ( try_and_check( command_str, "0", 0 ) ) + if ( try_and_check( command_str, "0" ) ) return ( ERROR_AT_READ_COMMAND ); get_binary( br, 1 ); @@ -130,7 +130,7 @@ } sprintf( command_str, "R %ld %ld\r\n", read_size, size ); - if ( try_and_check( command_str, "0", 0 ) ) + if ( try_and_check( command_str, "0" ) ) return ( ERROR_AT_READ_COMMAND ); get_binary_from_uucode_str( br, size );