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
isp.h
- Committer:
- okano
- Date:
- 2013-09-20
- Revision:
- 31:1a4d59d7bd72
- Parent:
- 30:e0d7524661ca
- Child:
- 32:3700d5df4e18
File content as of revision 31:1a4d59d7bd72:
#ifndef MBED_ISP__ISP__ #define MBED_ISP__ISP__ int isp_flash_write( char *file_name ); void start_target_in_normal_mode( int baud_rate ); void start_success_indicator( void ); void toggle_led( char v ); enum { NO_ERROR = 0x00, ERROR_AT_TARGET_OPEN, ERROR_AT_FILE_OPEN, ERROR_AT_SECTOR_ERASE, ERROR_AT_MALLOC_FOR_WRITE_BUFF, ERROR_AT_WRITE_COMMAND, ERROR_AT_PREPARE_COMMAND, ERROR_AT_COPY_COMMAND, ERROR_AT_SENDING_CHECKSUM, ERROR_AT_MALLOC_FOR_VERIFY_FILE_BUFF, ERROR_AT_MALLOC_FOR_VERIFY_DATA_BUFF, ERROR_AT_READ_COMMAND, ERROR_DATA_DOES_NOT_MATCH }; #endif // MBED_ISP__ISP__