ISP example program.

Dependencies:   SLCD mbed USBLocalFileSystem

/media/uploads/va009039/lpc81isp-360x240.jpg

FRDM-KL46ZLPC810
UART RXDPTE23p2(P0_4)
UART TXDPTE22p8(P0_0)
nRESETD6p1(P0_5)
nISPD8p5(P0_1)
GNDGNDp7
3.3VP3V3p6

Copy binary image to the disk called LPC81ISP.
Push sw1 or sw3, start write to LPC810 flash.

Committer:
va009039
Date:
Sun Feb 16 12:56:12 2014 +0000
Revision:
1:cccfc461c61f
Parent:
0:ad2b1fc04955
add virtual COM.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 0:ad2b1fc04955 1 /* mbed Microcontroller Library
va009039 0:ad2b1fc04955 2 * Copyright (c) 2006-2012 ARM Limited
va009039 0:ad2b1fc04955 3 *
va009039 0:ad2b1fc04955 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
va009039 0:ad2b1fc04955 5 * of this software and associated documentation files (the "Software"), to deal
va009039 0:ad2b1fc04955 6 * in the Software without restriction, including without limitation the rights
va009039 0:ad2b1fc04955 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
va009039 0:ad2b1fc04955 8 * copies of the Software, and to permit persons to whom the Software is
va009039 0:ad2b1fc04955 9 * furnished to do so, subject to the following conditions:
va009039 0:ad2b1fc04955 10 *
va009039 0:ad2b1fc04955 11 * The above copyright notice and this permission notice shall be included in
va009039 0:ad2b1fc04955 12 * all copies or substantial portions of the Software.
va009039 0:ad2b1fc04955 13 *
va009039 0:ad2b1fc04955 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
va009039 0:ad2b1fc04955 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
va009039 0:ad2b1fc04955 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
va009039 0:ad2b1fc04955 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
va009039 0:ad2b1fc04955 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
va009039 0:ad2b1fc04955 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
va009039 0:ad2b1fc04955 20 * SOFTWARE.
va009039 0:ad2b1fc04955 21 */
va009039 0:ad2b1fc04955 22 #ifndef MBED_FATFILEHANDLE_H
va009039 0:ad2b1fc04955 23 #define MBED_FATFILEHANDLE_H
va009039 0:ad2b1fc04955 24
va009039 0:ad2b1fc04955 25 #include "FileHandle.h"
va009039 0:ad2b1fc04955 26
va009039 0:ad2b1fc04955 27 using namespace mbed;
va009039 0:ad2b1fc04955 28
va009039 0:ad2b1fc04955 29 class FATFileHandle : public FileHandle {
va009039 0:ad2b1fc04955 30 public:
va009039 0:ad2b1fc04955 31
va009039 0:ad2b1fc04955 32 FATFileHandle(FIL fh);
va009039 0:ad2b1fc04955 33 virtual int close();
va009039 0:ad2b1fc04955 34 virtual ssize_t write(const void* buffer, size_t length);
va009039 0:ad2b1fc04955 35 virtual ssize_t read(void* buffer, size_t length);
va009039 0:ad2b1fc04955 36 virtual int isatty();
va009039 0:ad2b1fc04955 37 virtual off_t lseek(off_t position, int whence);
va009039 0:ad2b1fc04955 38 virtual int fsync();
va009039 0:ad2b1fc04955 39 virtual off_t flen();
va009039 0:ad2b1fc04955 40
va009039 0:ad2b1fc04955 41 protected:
va009039 0:ad2b1fc04955 42
va009039 0:ad2b1fc04955 43 FIL _fh;
va009039 0:ad2b1fc04955 44
va009039 0:ad2b1fc04955 45 };
va009039 0:ad2b1fc04955 46
va009039 0:ad2b1fc04955 47 #endif