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: command_interface.cpp
- Revision:
- 26:a63e73885b21
- Parent:
- 22:bd98a782fba6
- Child:
- 27:2b5c1eb39bb5
--- a/command_interface.cpp Fri Sep 13 03:51:14 2013 +0000 +++ b/command_interface.cpp Fri Sep 13 12:56:23 2013 +0000 @@ -77,4 +77,15 @@ } +void erase_sectors( int last_sector ) +{ + char command_str[ STR_BUFF_SIZE ]; + sprintf( command_str, "P 0 %d\r\n", last_sector ); + try_and_check( command_str, "0", 0 ); + + *(command_str) = 'E'; + try_and_check( command_str, "0", 0 ); +} + +