ISP example program.
Dependencies: SLCD mbed USBLocalFileSystem
FRDM-KL46Z | LPC810 | |
---|---|---|
UART RXD | PTE23 | p2(P0_4) |
UART TXD | PTE22 | p8(P0_0) |
nRESET | D6 | p1(P0_5) |
nISP | D8 | p5(P0_1) |
GND | GND | p7 |
3.3V | P3V3 | p6 |
Copy binary image to the disk called LPC81ISP.
Push sw1 or sw3, start write to LPC810 flash.
Diff: src/RamDiskFormat_LPC810.cpp
- Revision:
- 2:eafc1c6787c7
- Parent:
- 1:cccfc461c61f
diff -r cccfc461c61f -r eafc1c6787c7 src/RamDiskFormat_LPC810.cpp --- a/src/RamDiskFormat_LPC810.cpp Sun Feb 16 12:56:12 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,225 +0,0 @@ -#if 0 -#include "RamDisk.h" - -static const uint8_t block_image[] = { // 10 blocks -0x00,0x00,0x02, // block=0, size=512 -0xeb,0x3c,0x90,0x4d,0x53,0x44,0x4f,0x53,0x35,0x2e,0x30,0x00,0x02,0x01,0x06,0x00, -0x02,0x00,0x02,0x80,0x00,0xf8,0x01,0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00, -0x00,0x00,0x00,0x00,0x00,0x00,0x29,0xb4,0xc9,0xa3,0x84,0x4e,0x4f,0x20,0x4e,0x41, -0x4d,0x45,0x20,0x20,0x20,0x20,0x46,0x41,0x54,0x31,0x32,0x20,0x20,0x20,0x33,0xc9, -0x8e,0xd1,0xbc,0xf0,0x7b,0x8e,0xd9,0xb8,0x00,0x20,0x8e,0xc0,0xfc,0xbd,0x00,0x7c, -0x38,0x4e,0x24,0x7d,0x24,0x8b,0xc1,0x99,0xe8,0x3c,0x01,0x72,0x1c,0x83,0xeb,0x3a, -0x66,0xa1,0x1c,0x7c,0x26,0x66,0x3b,0x07,0x26,0x8a,0x57,0xfc,0x75,0x06,0x80,0xca, -0x02,0x88,0x56,0x02,0x80,0xc3,0x10,0x73,0xeb,0x33,0xc9,0x8a,0x46,0x10,0x98,0xf7, -0x66,0x16,0x03,0x46,0x1c,0x13,0x56,0x1e,0x03,0x46,0x0e,0x13,0xd1,0x8b,0x76,0x11, -0x60,0x89,0x46,0xfc,0x89,0x56,0xfe,0xb8,0x20,0x00,0xf7,0xe6,0x8b,0x5e,0x0b,0x03, -0xc3,0x48,0xf7,0xf3,0x01,0x46,0xfc,0x11,0x4e,0xfe,0x61,0xbf,0x00,0x00,0xe8,0xe6, -0x00,0x72,0x39,0x26,0x38,0x2d,0x74,0x17,0x60,0xb1,0x0b,0xbe,0xa1,0x7d,0xf3,0xa6, -0x61,0x74,0x32,0x4e,0x74,0x09,0x83,0xc7,0x20,0x3b,0xfb,0x72,0xe6,0xeb,0xdc,0xa0, -0xfb,0x7d,0xb4,0x7d,0x8b,0xf0,0xac,0x98,0x40,0x74,0x0c,0x48,0x74,0x13,0xb4,0x0e, -0xbb,0x07,0x00,0xcd,0x10,0xeb,0xef,0xa0,0xfd,0x7d,0xeb,0xe6,0xa0,0xfc,0x7d,0xeb, -0xe1,0xcd,0x16,0xcd,0x19,0x26,0x8b,0x55,0x1a,0x52,0xb0,0x01,0xbb,0x00,0x00,0xe8, -0x3b,0x00,0x72,0xe8,0x5b,0x8a,0x56,0x24,0xbe,0x0b,0x7c,0x8b,0xfc,0xc7,0x46,0xf0, -0x3d,0x7d,0xc7,0x46,0xf4,0x29,0x7d,0x8c,0xd9,0x89,0x4e,0xf2,0x89,0x4e,0xf6,0xc6, -0x06,0x96,0x7d,0xcb,0xea,0x03,0x00,0x00,0x20,0x0f,0xb6,0xc8,0x66,0x8b,0x46,0xf8, -0x66,0x03,0x46,0x1c,0x66,0x8b,0xd0,0x66,0xc1,0xea,0x10,0xeb,0x5e,0x0f,0xb6,0xc8, -0x4a,0x4a,0x8a,0x46,0x0d,0x32,0xe4,0xf7,0xe2,0x03,0x46,0xfc,0x13,0x56,0xfe,0xeb, -0x4a,0x52,0x50,0x06,0x53,0x6a,0x01,0x6a,0x10,0x91,0x8b,0x46,0x18,0x96,0x92,0x33, -0xd2,0xf7,0xf6,0x91,0xf7,0xf6,0x42,0x87,0xca,0xf7,0x76,0x1a,0x8a,0xf2,0x8a,0xe8, -0xc0,0xcc,0x02,0x0a,0xcc,0xb8,0x01,0x02,0x80,0x7e,0x02,0x0e,0x75,0x04,0xb4,0x42, -0x8b,0xf4,0x8a,0x56,0x24,0xcd,0x13,0x61,0x61,0x72,0x0b,0x40,0x75,0x01,0x42,0x03, -0x5e,0x0b,0x49,0x75,0x06,0xf8,0xc3,0x41,0xbb,0x00,0x00,0x60,0x66,0x6a,0x00,0xeb, -0xb0,0x4e,0x54,0x4c,0x44,0x52,0x20,0x20,0x20,0x20,0x20,0x20,0x0d,0x0a,0x52,0x65, -0x6d,0x6f,0x76,0x65,0x20,0x64,0x69,0x73,0x6b,0x73,0x20,0x6f,0x72,0x20,0x6f,0x74, -0x68,0x65,0x72,0x20,0x6d,0x65,0x64,0x69,0x61,0x2e,0xff,0x0d,0x0a,0x44,0x69,0x73, -0x6b,0x20,0x65,0x72,0x72,0x6f,0x72,0xff,0x0d,0x0a,0x50,0x72,0x65,0x73,0x73,0x20, -0x61,0x6e,0x79,0x20,0x6b,0x65,0x79,0x20,0x74,0x6f,0x20,0x72,0x65,0x73,0x74,0x61, -0x72,0x74,0x0d,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xac,0xcb,0xd8,0x55,0xaa, -0x06,0x0c,0x00, // block=6, size=12 -0xf8,0xff,0xff,0x03,0x40,0x00,0x05,0x60,0x00,0xff,0xff,0xff, -0x07,0x0c,0x00, // block=7, size=12 -0xf8,0xff,0xff,0x03,0x40,0x00,0x05,0x60,0x00,0xff,0xff,0xff, -0x08,0x7a,0x01, // block=8, size=378 -0x4c,0x50,0x43,0x38,0x31,0x49,0x53,0x50,0x20,0x20,0x20,0x08,0x00,0x00,0x00,0x00, -0x00,0x00,0x00,0x00,0x00,0x00,0x15,0x83,0x4d,0x44,0x00,0x00,0x00,0x00,0x00,0x00, -0x43,0x69,0x00,0x6e,0x00,0x00,0x00,0xff,0xff,0xff,0xff,0x0f,0x00,0xa6,0xff,0xff, -0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x00,0xff,0xff,0xff,0xff, -0x02,0x6f,0x00,0x72,0x00,0x6c,0x00,0x64,0x00,0x5f,0x00,0x0f,0x00,0xa6,0x4c,0x00, -0x50,0x00,0x43,0x00,0x38,0x00,0x31,0x00,0x32,0x00,0x00,0x00,0x2e,0x00,0x62,0x00, -0x01,0x6c,0x00,0x70,0x00,0x63,0x00,0x38,0x00,0x31,0x00,0x0f,0x00,0xa6,0x30,0x00, -0x5f,0x00,0x68,0x00,0x65,0x00,0x6c,0x00,0x6c,0x00,0x00,0x00,0x6f,0x00,0x77,0x00, -0x4c,0x50,0x43,0x38,0x31,0x30,0x7e,0x31,0x42,0x49,0x4e,0x20,0x00,0x54,0x55,0x83, -0x4d,0x44,0x4d,0x44,0x00,0x00,0x56,0xb7,0x4a,0x44,0x02,0x00,0x4c,0x08,0x00,0x00, -0x41,0x2e,0x00,0x66,0x00,0x73,0x00,0x65,0x00,0x76,0x00,0x0f,0x00,0xda,0x65,0x00, -0x6e,0x00,0x74,0x00,0x73,0x00,0x64,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff, -0x46,0x53,0x45,0x56,0x45,0x4e,0x7e,0x31,0x20,0x20,0x20,0x10,0x00,0x91,0x57,0x83, -0x4d,0x44,0x4d,0x44,0x00,0x00,0x58,0x83,0x4d,0x44,0x07,0x00,0x00,0x00,0x00,0x00, -0x42,0x65,0x00,0x72,0x00,0x5f,0x00,0x69,0x00,0x6e,0x00,0x0f,0x00,0xa8,0x64,0x00, -0x65,0x00,0x78,0x00,0x00,0x00,0xff,0xff,0xff,0xff,0x00,0x00,0xff,0xff,0xff,0xff, -0x01,0x2e,0x00,0x6d,0x00,0x65,0x00,0x74,0x00,0x61,0x00,0x0f,0x00,0xa8,0x64,0x00, -0x61,0x00,0x74,0x00,0x61,0x00,0x5f,0x00,0x6e,0x00,0x00,0x00,0x65,0x00,0x76,0x00, -0x4d,0x45,0x54,0x41,0x44,0x41,0x7e,0x31,0x20,0x20,0x20,0x20,0x00,0x60,0x58,0x83, -0x4d,0x44,0x4d,0x44,0x00,0x00,0x85,0x75,0x8e,0x41,0x00,0x00,0x00,0x00,0x00,0x00, -0x41,0x2e,0x00,0x54,0x00,0x72,0x00,0x61,0x00,0x73,0x00,0x0f,0x00,0x25,0x68,0x00, -0x65,0x00,0x73,0x00,0x00,0x00,0xff,0xff,0xff,0xff,0x00,0x00,0xff,0xff,0xff,0xff, -0x54,0x52,0x41,0x53,0x48,0x45,0x7e,0x31,0x20,0x20,0x20,0x20,0x00,0xbe,0x59,0x83, -0x4d,0x44,0x4d,0x44,0x00,0x00,0x85,0x75,0x8e,0x41, -0x28,0xff,0x01, // block=40, size=511 -0x00,0x10,0x00,0x10,0xdd,0x00,0x00,0x00,0x05,0x01,0x00,0x00,0xfd,0x00,0x00,0x00, -0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0xed,0xff,0xef, -0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00, -0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x03,0x01,0x00,0x00, -0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x01,0x00,0x00, -0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, -0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00, -0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x01,0x00,0x00, -0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, -0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, -0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00, -0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00,0x05,0x01,0x00,0x00, -0x05,0x48,0x85,0x46,0x00,0xf0,0x4a,0xf8,0xc0,0x46,0xc0,0x46,0x00,0xf0,0x36,0xf8, -0x00,0x48,0x00,0x47,0x81,0x01,0x00,0x00,0x00,0x10,0x00,0x10,0x02,0x48,0x85,0x46, -0x02,0x48,0x80,0x47,0x02,0x48,0x00,0x47,0x00,0x04,0x00,0x10,0xcd,0x01,0x00,0x00, -0xc5,0x00,0x00,0x00,0x04,0x48,0x80,0x47,0x04,0x48,0x00,0x47,0xfe,0xe7,0xfe,0xe7, -0xfe,0xe7,0xfe,0xe7,0xfe,0xe7,0x00,0x00,0xcd,0x01,0x00,0x00,0xc1,0x00,0x00,0x00, -0x30,0xb5,0x0b,0x46,0x01,0x46,0x00,0x20,0x20,0x22,0x01,0x24,0x09,0xe0,0x0d,0x46, -0xd5,0x40,0x9d,0x42,0x05,0xd3,0x1d,0x46,0x95,0x40,0x49,0x1b,0x25,0x46,0x95,0x40, -0x40,0x19,0x15,0x46,0x52,0x1e,0x00,0x2d,0xf1,0xdc,0x30,0xbd,0x70,0xb5,0x05,0x4c, -0x05,0x4d,0x03,0xe0,0x20,0x68,0x00,0x19,0x80,0x47,0x24,0x1d,0xac,0x42,0xf9,0xd1, -0x70,0xbd,0x00,0x00,0xd4,0x07,0x00,0x00,0xd8,0x07,0x00,0x00,0x06,0x4c,0x01,0x25, -0x06,0x4e,0x05,0xe0,0x20,0x46,0xe3,0x68,0x07,0xc8,0x2b,0x43,0x98,0x47,0x10,0x34, -0xb4,0x42,0xf7,0xd3,0xff,0xf7,0xa8,0xff,0xb4,0x07,0x00,0x00,0xd4,0x07,0x00,0x00, -0x10,0xb5,0x00,0xf0,0xb9,0xf8,0x00,0xf0,0x25,0xf9,0x10,0xbd,0x10,0xb5,0x00,0x21, -0x00,0xf0,0x6f,0xf8,0x10,0xbd,0x00,0x00,0xf0,0xb5,0x0b,0x4f,0x84,0x46,0xbb,0x68, -0xb8,0x68,0x00,0x28,0x0b,0xd1,0x01,0x20,0x00,0x07,0x1e,0x46,0x03,0x46,0x00,0x22, -0x94,0x00,0x35,0x59,0x52,0x1c,0x1d,0x51,0x30,0x2a,0xf9,0xd3,0xb8,0x60,0x60,0x46, -0x80,0x00,0xc0,0x18,0x01,0x64,0xf0,0xbd,0x00,0xed,0x00,0xe0,0x0a,0x48,0x01,0x68, -0x0a,0x4a,0x11,0x43,0x01,0x60,0x08,0x48,0x00,0x23,0x40,0x38,0x03,0x60,0x01,0x22, -0x42,0x60,0x41,0x68,0xc9,0x07,0xfc,0xd0,0x03,0x63,0x42,0x63,0x41,0x6b,0xc9,0x07, -0xfc,0xd0,0x82,0x63,0x70,0x47,0x00,0x00,0x80,0x80,0x04,0x40,0x80,0x00,0x04, -0x29,0x00,0x02, // block=41, size=512 -0x10,0xb5,0x0c,0x46,0x00,0xf0,0x0e,0xfa,0x20,0x46,0x10,0xbd,0x1c,0x22,0x51,0x43, -0x10,0xb5,0x08,0x18,0x08,0x30,0x00,0xf0,0x1f,0xf8,0x10,0xbd,0x70,0xb5,0x15,0x46, -0x0e,0x46,0x02,0x23,0x1c,0x22,0x0a,0x49,0x08,0x30,0x00,0xf0,0x3b,0xf8,0x04,0x46, -0x08,0x3c,0x2a,0x46,0x31,0x46,0x20,0x46,0x00,0xf0,0x4e,0xf9,0x4b,0x20,0xc0,0x01, -0x22,0x46,0x20,0x64,0x03,0x49,0x10,0x46,0x00,0xf0,0xe0,0xf9,0x20,0x46,0x70,0xbd, -0x8d,0x01,0x00,0x00,0x0d,0x02,0x00,0x00,0x01,0x68,0x00,0x29,0x00,0xd0,0x08,0x47, -0x42,0x68,0x00,0x2a,0x04,0xd0,0x01,0x46,0x83,0x69,0x08,0x31,0x10,0x46,0x18,0x47, -0x70,0x47,0x01,0x60,0x00,0x21,0x41,0x60,0x70,0x47,0x10,0xb5,0xff,0xf7,0xc0,0xff, -0x10,0xbd,0x70,0xb5,0x0c,0x46,0x05,0x46,0x03,0xe0,0x64,0x1c,0x28,0x46,0xff,0xf7, -0xf4,0xff,0x21,0x78,0x00,0x29,0xf8,0xd1,0x00,0x20,0x70,0xbd,0x10,0xb5,0xff,0xf7, -0xbd,0xff,0x10,0xbd,0xff,0xb5,0x81,0xb0,0x1c,0x46,0x17,0x46,0x0e,0x00,0x06,0xd0, -0x01,0x9d,0x02,0xe0,0x28,0x46,0xb0,0x47,0xed,0x19,0x64,0x1e,0xfa,0xd2,0x01,0x98, -0x05,0xb0,0xf0,0xbd,0x02,0xe0,0x08,0xc8,0x12,0x1f,0x08,0xc1,0x00,0x2a,0xfa,0xd1, -0x70,0x47,0x70,0x47,0x00,0x20,0x01,0xe0,0x01,0xc1,0x12,0x1f,0x00,0x2a,0xfb,0xd1, -0x70,0x47,0x00,0x00,0x10,0xb5,0x00,0x22,0x04,0x21,0x02,0x48,0xff,0xf7,0xd6,0xff, -0x10,0xbd,0x00,0x00,0x34,0x01,0x00,0x10,0x70,0x47,0x70,0x47,0xff,0xff,0xff,0xff, -0x00,0x28,0x01,0xd0,0x00,0xf0,0x7a,0xf8,0xfe,0xe7,0x00,0x29,0x07,0xd0,0x01,0x29, -0x04,0xd1,0x81,0x68,0x0a,0x68,0x40,0x68,0x02,0x43,0x0a,0x60,0x70,0x47,0x81,0x68, -0x0a,0x68,0x40,0x68,0x82,0x43,0xf8,0xe7,0x70,0xb5,0x04,0x46,0x15,0x46,0x0e,0x46, -0x48,0x1c,0x1b,0xd0,0x26,0x70,0x30,0x46,0x00,0xf0,0x20,0xf8,0x60,0x60,0x0c,0x48, -0xe0,0x60,0x0b,0x48,0x29,0x46,0x80,0x30,0x20,0x61,0x0a,0x48,0x60,0x61,0x0a,0x48, -0xa0,0x60,0x20,0x46,0xff,0xf7,0xd9,0xff,0x00,0x2d,0x03,0xd0,0x01,0x2d,0x05,0xd1, -0x00,0x21,0x00,0xe0,0x01,0x21,0x30,0x46,0x00,0xf0,0x5e,0xf8,0x70,0xbd,0x00,0x00, -0x00,0x22,0x00,0xa0,0x00,0x21,0x00,0xa0,0x00,0x20,0x00,0xa0,0x70,0xb5,0x05,0x46, -0x0e,0x48,0x00,0x21,0x02,0x68,0x01,0x24,0x00,0x2a,0x0e,0xd1,0x04,0x60,0x0c,0x48, -0x02,0x68,0x40,0x23,0x1a,0x43,0x02,0x60,0x09,0x4a,0x80,0x3a,0x50,0x68,0x13,0x15, -0x98,0x43,0x50,0x60,0x50,0x68,0x18,0x43,0x50,0x60,0x28,0x46,0xff,0xf7,0xa5,0xff, -0xe9,0x06,0xc9,0x0e,0x20,0x46,0x88,0x40,0x70,0xbd,0x00,0x00,0xe8,0x00,0x00,0x10, -0x80,0x80,0x04,0x40,0x42,0x68,0x00,0x29,0x01,0xd0,0xc0,0x68,0x00,0xe0,0x00,0x69, -0x02,0x60,0x70,0x47,0x7d,0x24,0xe4,0x00,0x03,0xa1,0x07,0x48,0xff,0xf7,0x51,0xff, -0x20,0x46,0x00,0xf0,0xc9,0xf9,0xf7,0xe7,0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,0x6f, -0x72,0x6c,0x64,0x0a,0x00,0x00,0x00,0x00,0x34,0x01,0x00,0x10,0x86,0xb0,0x01,0x22, -0x2a,0x00,0x02, // block=42, size=512 -0x07,0x21,0x68,0x46,0xff,0xf7,0x90,0xff,0x01,0x21,0x68,0x46,0xff,0xf7,0xda,0xff, -0x96,0x20,0x00,0xf0,0xb1,0xf9,0x00,0x21,0x68,0x46,0xff,0xf7,0xd3,0xff,0x96,0x20, -0x00,0xf0,0xaa,0xf9,0xf0,0xe7,0x00,0x00,0x42,0x1c,0x0f,0xd0,0x0a,0x28,0x0d,0xd0, -0x0b,0x28,0x0b,0xd0,0x08,0x4a,0x80,0x00,0x10,0x58,0x04,0x29,0x07,0xd0,0x02,0x68, -0x18,0x23,0x9a,0x43,0x89,0x07,0xc9,0x0e,0x11,0x43,0x01,0x60,0x70,0x47,0x01,0x68, -0x01,0x22,0x92,0x02,0xf8,0xe7,0x00,0x00,0xec,0x00,0x00,0x10,0xf8,0xb5,0x07,0x46, -0x0d,0x48,0x0e,0x46,0x80,0x68,0x05,0x09,0x28,0x46,0xff,0xf7,0x51,0xfe,0x39,0x68, -0x40,0x1e,0x08,0x62,0x09,0x4c,0xff,0x20,0x20,0x63,0x20,0x6b,0x39,0x68,0x40,0x1c, -0x09,0x6a,0x68,0x43,0x49,0x1c,0x71,0x43,0xff,0xf7,0x42,0xfe,0x21,0x6b,0x40,0x1a, -0x40,0x1e,0x60,0x63,0xf8,0xbd,0x00,0x00,0xc4,0x00,0x00,0x10,0xc0,0x80,0x04,0x40, -0x10,0xb5,0x01,0x2b,0x01,0xd0,0x02,0x2b,0x0a,0xd1,0x5b,0x1e,0xcc,0x1f,0x03,0x2c, -0x06,0xd2,0xc9,0x1f,0x00,0x2a,0x07,0xd0,0x01,0x2a,0x04,0xd0,0x02,0x2a,0x03,0xd0, -0x01,0x20,0xff,0xf7,0x1d,0xff,0x03,0x22,0x89,0x00,0x12,0x01,0x11,0x43,0x9a,0x01, -0x00,0x68,0x11,0x43,0x01,0x60,0x10,0xbd,0xf7,0xb5,0x16,0x46,0x44,0x4a,0x04,0x46, -0x00,0x21,0x10,0x78,0x82,0xb0,0x01,0x25,0x2b,0x46,0x8b,0x40,0x03,0x42,0x04,0xd0, -0x49,0x1c,0x03,0x29,0xf8,0xdb,0x00,0x21,0xc9,0x43,0x4b,0x1c,0x67,0xd0,0x3d,0x4f, -0x8b,0x03,0x21,0x71,0xdb,0x19,0x23,0x60,0x2b,0x46,0x8b,0x40,0x03,0x43,0x38,0x48, -0x39,0x4a,0x03,0x70,0x48,0x00,0x84,0x46,0x80,0x18,0x02,0x78,0x93,0x00,0x37,0x4a, -0x9f,0x18,0x3a,0x68,0x40,0x78,0xff,0x23,0x83,0x40,0x9a,0x43,0x03,0x9b,0x83,0x40, -0x13,0x43,0x3b,0x60,0x30,0x4a,0x60,0x46,0x92,0x1d,0x80,0x18,0x02,0x78,0x93,0x00, -0x2e,0x4a,0x9f,0x18,0x3a,0x68,0x40,0x78,0xff,0x23,0x83,0x40,0x9a,0x43,0x33,0x46, -0x83,0x40,0x13,0x43,0x3b,0x60,0x2a,0x48,0x45,0x61,0xcb,0x1c,0xdf,0x06,0xff,0x0e, -0x2a,0x46,0xba,0x40,0x27,0x4f,0x00,0x92,0x3a,0x60,0x02,0x68,0x0e,0x31,0x2f,0x46, -0x8f,0x40,0x3a,0x43,0x02,0x60,0x22,0x4a,0x80,0x3a,0x57,0x68,0x29,0x46,0x99,0x40, -0x8f,0x43,0x57,0x60,0x53,0x68,0x0b,0x43,0x53,0x60,0x41,0x69,0x1e,0x48,0x00,0x68, -0xff,0xf7,0xbe,0xfd,0x16,0x49,0x88,0x60,0x4b,0x21,0xc9,0x01,0x20,0x46,0xff,0xf7, -0x5d,0xff,0x01,0x23,0x00,0x22,0x08,0x21,0x20,0x46,0xff,0xf7,0x79,0xff,0x41,0x20, -0x21,0x68,0x40,0x01,0x88,0x60,0x13,0x48,0x00,0x9a,0x80,0x38,0x02,0x60,0x20,0x68, -0x01,0x68,0x29,0x43,0x01,0x60,0x03,0x98,0x06,0x28,0x03,0xd0,0x04,0xe0,0x01,0x20, -0xff,0xf7,0x96,0xfe,0x01,0x2e,0x09,0xd0,0x00,0x20,0x00,0x28,0x04,0xd0,0x04,0x48, -0x45,0x60,0x06,0xcc,0x42,0x61,0x01,0x61,0x05,0xb0,0xf0,0xbd,0x01,0x20,0xf4,0xe7, -0xc4,0x00,0x00,0x10,0x00,0x40,0x06,0x40,0x9c,0x07,0x00,0x00,0x00,0xc0,0x00,0x40, -0x2b,0xdb,0x01, // block=43, size=475 -0x80,0x80,0x04,0x40,0x80,0xe1,0x00,0xe0,0xc0,0x00,0x00,0x10,0x03,0x4b,0xd9,0x60, -0x00,0x79,0x03,0x49,0x80,0x00,0x0a,0x50,0x70,0x47,0x00,0x00,0xc4,0x00,0x00,0x10, -0x78,0x01,0x00,0x10,0x00,0xb5,0x0a,0x46,0x03,0x46,0x18,0x46,0x00,0xf0,0x05,0xf8, -0x00,0x28,0xfa,0xd0,0x18,0x68,0xc2,0x61,0x00,0xbd,0x00,0x68,0x80,0x68,0x04,0x21, -0x08,0x40,0x70,0x47,0x01,0x49,0x01,0x20,0x48,0x63,0x70,0x47,0xc0,0x40,0x00,0x50, -0x02,0x48,0x01,0x6b,0x49,0x08,0x49,0x00,0x01,0x63,0x70,0x47,0xc0,0x40,0x00,0x50, -0x10,0xb5,0x17,0x48,0x01,0x68,0x00,0x29,0x29,0xd1,0x01,0x21,0x01,0x60,0x15,0x48, -0x02,0x68,0x83,0x15,0x1a,0x43,0x02,0x60,0x12,0x48,0x80,0x38,0x42,0x68,0x1a,0x43, -0x42,0x60,0x11,0x4c,0x20,0x68,0x08,0x43,0x20,0x60,0xa0,0x88,0x0c,0x21,0x08,0x43, -0xa0,0x80,0x0f,0x48,0x0d,0x49,0x00,0x68,0xff,0xf7,0x3a,0xfd,0x40,0x01,0xa1,0x88, -0x20,0x38,0x08,0x43,0xa0,0x80,0xa0,0x88,0x04,0x21,0x88,0x43,0xa0,0x80,0x09,0x49, -0x09,0x20,0xff,0xf7,0x71,0xfd,0x01,0x20,0x07,0x49,0x40,0x02,0x08,0x60,0x10,0xbd, -0xdc,0x00,0x00,0x10,0x80,0x80,0x04,0x40,0x00,0x40,0x00,0x50,0x40,0x42,0x0f,0x00, -0xc0,0x00,0x00,0x10,0xdd,0x06,0x00,0x00,0x00,0xe1,0x00,0xe0,0x10,0xb5,0xff,0xf7, -0xb1,0xff,0x0d,0x4c,0x20,0x68,0x00,0x28,0x0e,0xd0,0x00,0xf0,0x17,0xf8,0x21,0x68, -0x0a,0x68,0x10,0x1a,0x00,0x28,0x0a,0xdc,0x88,0x68,0x20,0x60,0x62,0x68,0x00,0x2a, -0xf0,0xd0,0x48,0x68,0x90,0x47,0xed,0xe7,0xff,0xf7,0xa2,0xff,0x10,0xbd,0x08,0x68, -0x00,0xf0,0x12,0xf8,0x10,0xbd,0x00,0x00,0xe0,0x00,0x00,0x10,0x10,0xb5,0x04,0x48, -0x00,0x68,0x00,0x28,0x01,0xd1,0xff,0xf7,0x9b,0xff,0x02,0x48,0x00,0x68,0x10,0xbd, -0xdc,0x00,0x00,0x10,0x40,0x40,0x00,0x50,0x0c,0x49,0x8b,0x88,0x04,0x22,0x13,0x43, -0x8b,0x80,0x0b,0x4b,0x18,0x60,0x88,0x88,0x90,0x43,0x88,0x80,0x08,0x49,0x40,0x39, -0x08,0x6b,0xc0,0x07,0x09,0xd1,0x07,0x48,0x92,0x02,0x42,0x60,0x03,0x68,0x01,0x22, -0x13,0x43,0x03,0x60,0x08,0x6b,0x10,0x43,0x08,0x63,0x70,0x47,0x00,0x40,0x00,0x50, -0x00,0x41,0x00,0x50,0x00,0x43,0x00,0x50,0x7d,0x21,0x10,0xb5,0xc9,0x00,0x48,0x43, -0x00,0xf0,0x01,0xf8,0x10,0xbd,0x70,0xb5,0x04,0x46,0xff,0xf7,0xc7,0xff,0x05,0x46, -0xff,0xf7,0xc4,0xff,0x40,0x1b,0xa0,0x42,0xfa,0xd3,0x70,0xbd,0x00,0x00,0x01,0x08, -0x02,0x10,0x00,0x08,0x01,0x10,0x02,0x18,0x00,0x10,0x01,0x18,0x03,0x00,0x00,0x18, -0x02,0x00,0x03,0x08,0xd8,0x07,0x00,0x00,0xc0,0x00,0x00,0x10,0x74,0x00,0x00,0x00, -0xc4,0x02,0x00,0x00,0x4c,0x08,0x00,0x00,0x34,0x01,0x00,0x10,0x50,0x00,0x00,0x00, -0xd4,0x02,0x00,0x00,0x11,0xfb,0xff,0xff,0x00,0x1b,0xb7, -0x2c,0x4c,0x00, // block=44, size=76 -0x00,0x00,0x00,0x00,0x44,0x40,0x04,0x40,0x2c,0x40,0x04,0x40,0x18,0x40,0x04,0x40, -0x14,0x40,0x04,0x40,0x10,0x40,0x04,0x40,0x0c,0x40,0x04,0x40,0x40,0x40,0x04,0x40, -0x3c,0x40,0x04,0x40,0x38,0x40,0x04,0x40,0x34,0x40,0x04,0x40,0x20,0x40,0x04,0x40, -0x1c,0x40,0x04,0x40,0x08,0x40,0x04,0x40,0x04,0x40,0x04,0x40,0x48,0x40,0x04,0x40, -0x28,0x40,0x04,0x40,0x24,0x40,0x04,0x40,0x00,0x40,0x04,0x40, -0x2d,0x5a,0x00, // block=45, size=90 -0x2e,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x10,0x00,0x91,0x57,0x83, -0x4d,0x44,0x4d,0x44,0x00,0x00,0x58,0x83,0x4d,0x44,0x07,0x00,0x00,0x00,0x00,0x00, -0x2e,0x2e,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x10,0x00,0x91,0x57,0x83, -0x4d,0x44,0x4d,0x44,0x00,0x00,0x58,0x83,0x4d,0x44,0x00,0x00,0x00,0x00,0x00,0x00, -0x4e,0x4f,0x5f,0x4c,0x4f,0x47,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x39,0x58,0x83, -0x4d,0x44,0x4d,0x44,0x00,0x00,0x85,0x75,0x8e,0x41, -0xff}; - -void RamDisk::format() -{ - const uint8_t* p = block_image; - while(1) { - int block = *p++; - if (block == 0xff) { - break; - } - int size = p[0]|(p[1]<<8); - _sector_image[block] = (uint8_t*)p; - p += size + 2; - } -} -#endif