m16c-flash-0.1.orig/0000700000175000017500000000000010472542055012620 5ustar uh1763uh1763m16c-flash-0.1.orig/AUTHORS0000600000175000017500000000020210337334776013675 0ustar uh1763uh1763Greg Reynolds j114@eee-fs4.bham.ac.uk, greg@lostintheether.net Jim Hawkridge h046@eee-fs4.bham.ac.uk Thomas Fischl tfischl@gmx.de m16c-flash-0.1.orig/ccomport.cxx0000600000175000017500000000714210340036315015167 0ustar uh1763uh1763/*************************************************************************** ccomport.cxx - Class for handling serial comms. begin : Wed Sep 25 18:58:35 BST 2002 copyright : (C) 2002 by Greg Reynolds, Jim Hawkridge email : j114@eee-fs4.bham.ac.uk 2005-11-17: changes by Thomas Fischl - added method flash() ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "ccomport.h" CCOMPort::CCOMPort() { m_fd = -1; memset(&m_trmOptions, 0, sizeof(termios)); } CCOMPort::~CCOMPort() { } /* open the port */ int CCOMPort::openPort(const char* pszDev) { assert( pszDev ); /* open the port */ m_fd = open(pszDev, O_RDWR | O_NOCTTY | O_NDELAY); if( m_fd == -1 ) { perror("\nCCOMPort::openPort: Unable to open specified port."); return 0; } /* read is blocking */ fcntl(m_fd, F_SETFL, 0); return 1; } /* close the port */ int CCOMPort::closePort() { assert( m_fd != -1 ); if( close(m_fd) == -1 ) { perror("\nCCOMPort::close:: Couldn't close the open port."); return 0; } return 1; } /* set baud rate */ int CCOMPort::setPortOptions(speed_t spdBaud) { assert( m_fd != -1); /* retrieve the current options */ tcgetattr(m_fd, &m_trmOptions); /* set baudrate */ cfsetispeed(&m_trmOptions, spdBaud); cfsetospeed(&m_trmOptions, spdBaud); /* set 8 bit, no parity, 1 stop bit */ m_trmOptions.c_cflag &= ~PARENB; m_trmOptions.c_cflag &= ~CSTOPB; m_trmOptions.c_cflag &= ~CSIZE; m_trmOptions.c_cflag |= CS8; /* enable software flow control */ m_trmOptions.c_iflag |= (IXON | IXOFF | IXANY); /* chose raw input */ m_trmOptions.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG); /* choose raw output */ m_trmOptions.c_oflag &= ~OPOST; /* apply the options back to the port */ tcsetattr(m_fd, TCSANOW, &m_trmOptions); return 1; } /* send data */ int CCOMPort::sendBytes(const unsigned char* pBuffer, int nBytes) { assert( pBuffer ); assert( nBytes > 0 ); assert( m_fd ); /* write the data */ if( write(m_fd, pBuffer, nBytes) != nBytes ) { perror("\nCCOMPort::sendBytes::write(...) failed."); return 0; } return 1; } #define SSIZE_MAX 20 /* read back some data */ int CCOMPort::readBytes(unsigned char* pBuffer, int nBytes) { assert( pBuffer ); assert( m_fd ); int n; // /* do it efficiently if necessary */ // if( nBytes < SSIZE_MAX ) { // /* get back nBytes */ // if( read(m_fd, pBuffer, nBytes) != nBytes ) { // perror("\nCCOMPort::readBytes::read failed to return correct byte count."); // return 0; // } // } /* read them back one at time */ // else { { for( n = 0; n < nBytes; n++ ) { /* read the byte */ if( read(m_fd, &pBuffer[n], 1) == -1 ) { perror("\nCCOMPort::readBytes::read failed in biger than SSIZE_MAX."); return 0; } } } return 1; } int CCOMPort::flush() { assert( m_fd ); tcflush(m_fd, TCIOFLUSH); return 1; } m16c-flash-0.1.orig/ccomport.h0000600000175000017500000000320510337114000014602 0ustar uh1763uh1763/*************************************************************************** ccomport.h - header file for serial port comms class. ------------------- begin : Wed Sep 25 18:58:35 BST 2002 copyright : (C) 2002 by Greg Reynolds, Jim Hawkridge email : j114@eee-fs4.bham.ac.uk ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include #include #include class CCOMPort { public: CCOMPort(); ~CCOMPort(); int openPort(const char* pszDev); int setPortOptions(speed_t spdBaud); int readBytes(unsigned char* pBuffer, int nBytes); int sendBytes(const unsigned char* pBuffer, int nBytes); int closePort(); int flush(); protected: int m_fd; /* file descriptor for port */ termios m_trmOptions; /* port options */ }; m16c-flash-0.1.orig/cm16flash.cxx0000600000175000017500000002175610340045244015135 0ustar uh1763uh1763/*************************************************************************** cm16flash - class for handling flash programming of an M16C microprocessor. begin : Wed Sep 25 18:58:35 BST 2002 copyright : (C) 2002 by Greg Reynolds, Jim Hawkridge email : j114@eee-fs4.bham.ac.uk 2005-11-18: modified by Thomas Fischl - added support for R8C 2005-11-20: - show new ID ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "cm16flash.h" CM16Flash::CM16Flash(CCOMPort* pPort, unsigned char cuCPUType) { assert( pPort ); m_pPort = pPort; m_CPUType = cuCPUType; } CM16Flash::~CM16Flash() { } /* send a byte with the minimum delay */ int CM16Flash::sendCommandByte(unsigned char ucCommand) { assert( m_pPort ); /* apparently this is important */ usleep(M16_DELAY); m_pPort->sendBytes(&ucCommand, 1); /* this can only succeed */ return 1; } /* send a byte without delay */ int CM16Flash::sendByte(unsigned char ucVal) { assert( m_pPort ); m_pPort->sendBytes(&ucVal, 1); /* this can only succeed */ return 1; } /* do the initial comms as per the datasheet page 257 */ int CM16Flash::initComms() { assert( m_pPort ); unsigned char ucReply; unsigned char ucSRDs[2]; int n; /* set the board rate to required */ m_pPort->setPortOptions(B9600); /* now follow what the datasheet says */ printf("\nLooking for M16C/R8C..."); fflush(stdout); sendCommandByte(M16_CONFIRM_CLOCK); usleep(M16_DELAY); printf("\nConfirming..."); fflush(stdout); /* send the 16 0s */ for( n = 0; n < 16; n++ ) { sendCommandByte(0); } usleep(M16_DELAY); m_pPort->flush(); sendCommandByte(M16_CONFIRM_CLOCK); if( m_pPort->readBytes(&ucReply, 1) == 0 ) { printf("\nM16 Flash ERROR: the board did not respond."); fflush(stdout); return 0; } if( M16_CONFIRM_CLOCK == ucReply ) { printf("board replied with clock confirm of %X.", ucReply); fflush(stdout); } else { printf("board does not have a 10MHz or 16MHz clock, quitting."); fflush(stdout); return 0; } if( readStatusRegisters(ucSRDs) == 0 ) { printf("\nM16 Flash ERROR: failed reading back SRDs."); fflush(stdout); return 0; } printf("\nStatusregister: %2X, %2X\n", ucSRDs[0], ucSRDs[1]); return 1; } /* send it the ID so that we can send all other commands */ int CM16Flash::sendID(unsigned int pIDCode[7]) { long lAddress; int n; unsigned char ucSRDs[2]; printf("\nSending ID data %2X:%2X:%2X:%2X:%2X:%2X:%2X...", pIDCode[0], pIDCode[1], pIDCode[2], pIDCode[3], pIDCode[4], pIDCode[5], pIDCode[6]); fflush(stdout); if (m_CPUType == R8C_CPU) { lAddress = R8C_ID_ADDRESS; } else { lAddress = M16_ID_ADDRESS; } /* we need to send 0x070FFFD4 according to the source (fanwp.pdp:138) */ sendCommandByte(M16_ID_CHECK); sendByte(ADDRESS_LOW(lAddress)); sendByte(ADDRESS_MIDDLE(lAddress)); sendByte(ADDRESS_HIGH(lAddress)); /* send size of ID bytes */ sendByte(M16_ID_SIZE); /* send the ID bytes */ for( n = 0; n < 7; n++ ) sendByte(pIDCode[n]); printf("OK."); fflush(stdout); /* clear dstatus */ sendCommandByte(0x50); /* read back SRDs to confirm ID was OK */ if( readStatusRegisters(ucSRDs) == 0 ) { printf("\nM16 Flash ERROR: failed reading back SRDs after ID."); fflush(stdout); return 0; } /* SRD1 bit 3 and bit 2 are set if ID verified ok (62aeds.pdf:254) */ if( ((ucSRDs[1] & M16_SR10) == 0) || ((ucSRDs[1] & M16_SR11) == 0) ) { printf("\nWARNING: ID check did not succeed. "); printf("Try cycling power or different ID."); fflush(stdout); return 0; } /* getting here is very good */ printf("\nID verified, additional commands may now be issued."); fflush(stdout); return 1; } /* read back SRD0 and SRD1 */ int CM16Flash::readStatusRegisters(unsigned char* pSRD) { assert( m_pPort ); assert( pSRD ); //printf("\nReading status registers..."); //fflush(stdout); /* tell it we want a page of ROM at the address given */ sendCommandByte(M16_READ_SRD); if( m_pPort->readBytes(pSRD, 2) == 0 ) { printf("\nM16 Flash ERROR: board timed out."); fflush(stdout); return 0; } //printf("OK."); //fflush(stdout); return 1; } /* clear SRD0 and SRD1 */ int CM16Flash::clearStatusRegisters() { assert( m_pPort ); sendCommandByte(M16_CLEAR_SRD); return 1; } int CM16Flash::readVersionInfo(char* pszVersionInfo) { assert( m_pPort ); assert( pszVersionInfo ); printf("\nReading boot ROM version info... "); fflush(stdout); /* tell it we want a page of ROM at the address given */ sendCommandByte(M16_READ_VERSION_INFO); pszVersionInfo[8] = 0; if( m_pPort->readBytes((unsigned char*)pszVersionInfo, 8) == 0 ) { printf("\nM16 Flash ERROR: board timed out."); fflush(stdout); return 0; } printf(pszVersionInfo); // printf("OK."); fflush(stdout); return 1; } /* read a page of data back from the chip */ int CM16Flash::readPage(CPage* pPage) { assert( m_pPort ); assert( pPage ); printf("\nReading page at %lX...", pPage->getAddress()); fflush(stdout); /* tell it we want a page of ROM at the address given */ sendCommandByte(M16_READ_PAGE); sendByte(ADDRESS_MIDDLE(pPage->getAddress())); sendByte(ADDRESS_HIGH(pPage->getAddress())); /* await a reply */ if( m_pPort->readBytes(pPage->getPage(), M16_PAGE_SIZE) == 0 ) { printf("\nM16 Flash ERROR: board timed out."); perror("\n"); fflush(stdout); return 0; } printf("OK."); return 1; } /* write a page of data to the chip, not erase must be capped first */ int CM16Flash::writePage(CPage* pPage) { assert( pPage ); assert( m_pPort ); int n; unsigned char ucSRDs[2]; /* disable the lock bit - this might not be necessary after an erase */ sendCommandByte(M16_LOCK_DISABLE); clearStatusRegisters(); if( readStatusRegisters(ucSRDs) == 0 ) return 0; /* check for success here */ //printf("\n\nSRD0 = %lX, SRD1 = %lX.", ucSRDs[0], ucSRDs[1]); //fflush(stdout); //printf("OK."); //fflush(stdout); printf("\nWriting page %6lX...", pPage->getAddress()); fflush(stdout); /* we are writing a page */ sendCommandByte(M16_PAGE_WRITE); sendByte(ADDRESS_MIDDLE(pPage->getAddress())); sendByte(ADDRESS_HIGH(pPage->getAddress())); for( n = 0; n < M16_PAGE_SIZE; n++ ) { sendByte(pPage->getByte(n)); // printf("\b\b\b\b\b\b\b\b\b%6lX...", pPage->getAddress() + n); // fflush(stdout); } printf("OK."); if ((m_CPUType == R8C_CPU) && (pPage->getAddress() == 0x00FF00)) { printf(" New ID: %02X:%02X:%02X:%02X:%02X:%02X:%02X", pPage->getByte(0xDF), pPage->getByte(0xE3), pPage->getByte(0xEB), pPage->getByte(0xEF), pPage->getByte(0xF3), pPage->getByte(0xF7), pPage->getByte(0xFB)); } fflush(stdout); clearStatusRegisters(); /* now check if it worked */ if( readStatusRegisters(ucSRDs) == 0 ) return 0; /* need to check value here */ return 1; } /* erase a block, which is not the same size as a page, (62aeds.pdf:220) */ int CM16Flash::eraseBlock(long lAddress) { assert( m_pPort ); unsigned char ucSRDs[2]; sendCommandByte(M16_LOCK_DISABLE); sendCommandByte(M16_ERASE_BLOCK); sendByte(ADDRESS_MIDDLE(lAddress)); sendByte(ADDRESS_HIGH(lAddress)); sendByte(M16_ERASE_VERIFY); /* status register check should be done here */ readStatusRegisters(ucSRDs); return 1; } /* erase the entire chip */ int CM16Flash::eraseChip() { int n; int count; int lBlocks[7]; if (m_CPUType == R8C_CPU) { lBlocks[0] = R8C_BLOCK0_BEGIN; lBlocks[1] = R8C_BLOCK1_BEGIN; count = R8C_BLOCK_COUNT; } else { lBlocks[6] = M16_BLOCK6_BEGIN; lBlocks[5] = M16_BLOCK5_BEGIN; lBlocks[4] = M16_BLOCK4_BEGIN; lBlocks[3] = M16_BLOCK3_BEGIN; lBlocks[2] = M16_BLOCK2_BEGIN; lBlocks[1] = M16_BLOCK1_BEGIN; lBlocks[0] = M16_BLOCK0_BEGIN; count = M16_BLOCK_COUNT; } /* erase every block on the chip */ for( n = 0; n < count; n++ ) { /* we have to erase the page first */ printf("\nErasing block at %6X...", lBlocks[n]); fflush(stdout); if( eraseBlock(lBlocks[n]) == 0 ) { printf("\nERROR."); fflush(stdout); /* this needs some intelligence here */ return 1; } printf("OK."); fflush(stdout); } return 1; } m16c-flash-0.1.orig/cm16flash.h0000600000175000017500000000534610340041301014545 0ustar uh1763uh1763/*************************************************************************** cm16flash.h - header for cm16cflash.cxx. ------------------- begin : Wed Sep 25 18:58:35 BST 2002 copyright : (C) 2002 by Greg Reynolds, Jim Hawkridge email : j114@eee-fs4.bham.ac.uk ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /* This class provides access to all flash ROM functions of the M16C's default boot loader. */ #include "ccomport.h" #define ADDRESS_HIGH(x) ((x >> 16) & 0xFF) #define ADDRESS_MIDDLE(x) ((x >> 8) & 0xFF) #define ADDRESS_LOW(x) ((x) & 0xFF) #define M16_CPU 1 #define R8C_CPU 2 /* programmer specific defs */ #define M16_CONFIRM_CLOCK 0xB0 #define M16_DELAY 15000 // 15ms #define M16_READ_PAGE 0xFF #define M16_PAGE_WRITE 0x41 #define M16_PAGE_SIZE 256 #define M16_READ_SRD 0x70 #define M16_CLEAR_SRD 0x50 #define M16_READ_VERSION_INFO 0xFB #define M16_ID_CHECK 0xF5 #define M16_ID_ADDRESS 0x0FFFDF #define M16_ID_SIZE 0x07 #define M16_SR11 0x08 #define M16_SR10 0x04 #define M16_LOCK_DISABLE 0x75 #define M16_ERASE_BLOCK 0x20 #define M16_ERASE_VERIFY 0xD0 #define M16_BLOCK_COUNT 7 #define M16_BLOCK6_BEGIN 0x0C0000 #define M16_BLOCK5_BEGIN 0x0D0000 #define M16_BLOCK4_BEGIN 0x0E0000 #define M16_BLOCK3_BEGIN 0x0F0000 #define M16_BLOCK2_BEGIN 0x0F8000 #define M16_BLOCK1_BEGIN 0x0FA000 #define M16_BLOCK0_BEGIN 0x0FC000 #define R8C_ID_ADDRESS 0x00FFDF #define R8C_BLOCK_COUNT 2 #define R8C_BLOCK0_BEGIN 0x0E000 #define R8C_BLOCK1_BEGIN 0x0C000 #include "cmotfile.h" class CM16Flash { public: CM16Flash(CCOMPort* pPort, unsigned char cuCPUType); ~CM16Flash(); int initComms(); int readPage(CPage* pPage); int readStatusRegisters(unsigned char* pSRD); int clearStatusRegisters(); int readVersionInfo(char* pszVersionInfo); int sendID(unsigned int pIDCode[7]); int writePage(CPage* pPage); int eraseBlock(long lAddress); int eraseChip(); protected: int sendCommandByte(unsigned char ucCommand); int sendByte(unsigned char ucVal); CCOMPort* m_pPort; unsigned char m_CPUType; }; m16c-flash-0.1.orig/cmotfile.cxx0000600000175000017500000001201210337334013015135 0ustar uh1763uh1763/*************************************************************************** cmotfile.cxx - class for handling Motorola files. begin : Wed Sep 25 18:58:35 BST 2002 copyright : (C) 2002 by Greg Reynolds, Jim Hawkridge email : j114@eee-fs4.bham.ac.uk 2005-11-17: modified by Thomas Fischl - added support for S1-Files - new parse method ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "cmotfile.h" CMOTFile::CMOTFile() { m_fp = NULL; m_pHead = NULL; m_pTail = NULL; } CMOTFile::~CMOTFile() { } int CMOTFile::readFile(const char* pszFilename, int nPageSize) { assert( pszFilename ); unsigned int nType; unsigned int nLength; m_fp = fopen(pszFilename, "r"); if( m_fp == NULL ) { printf("\nM16 Flash ERROR: couldn't open specified file."); fflush(stdout); return 0; } if( fscanf(m_fp, "S%1u%2X", &nType, &nLength) != 2 ) { printf("\nM16 Flash ERROR: badly formatted S-record file."); fflush(stdout); fclose(m_fp); return 0; } if( nType != 0 ) { printf("\nM16 Flash ERROR: there must be an S0 record (a dummy will do)."); fflush(stdout); fclose(m_fp); return 0; } /* if we got here then there is an S0 record which is a good start */ /* advance m_fp to point to the start of the next line */ fscanf(m_fp, "%*[^\n]s"); fscanf(m_fp, "\n"); /* we should check for \r\n in case S records created on windows */ /* now read the file into our linked list of pages */ if( processFile(nPageSize) == 0 ) return 0; else return 1; } /* return page which belongs to given address. NULL if page does not exist */ CPage* CMOTFile::getPageToAddress(int nPageSize, long lAddress) { long lBaseAddress = lAddress - (lAddress % nPageSize); /* if no page in list */ if (m_pTail == NULL) return NULL; if (m_pTail->getAddress() == lBaseAddress) return m_pTail; /* search for page with given base address */ CPage* pCurrent = m_pHead; do { if (pCurrent->getAddress() == lBaseAddress) return pCurrent; pCurrent = pCurrent->getNext(); } while (pCurrent != NULL); /* no page found */ return NULL; } /* convert the file contents into a linked list of pPages */ int CMOTFile::processFile(int nPageSize) { assert( m_fp ); assert( nPageSize > 0 ); unsigned int nType; unsigned int nLength; unsigned long lAddress; unsigned int nVal; unsigned int n; while( true ) { /* read a line's header data */ if( fscanf(m_fp, "S%1u%2X", &nType, &nLength) != 2 ) { printf("\nM16 Flash ERROR: badly formatted input file."); fflush(stdout); return 0; } /* extract address */ switch (nType) { case 1: // 16 bit addresses if( fscanf(m_fp, "%4lX", &lAddress) != 1 ) { printf("\nM16 Flash ERROR: bad address format."); fflush(stdout); return 0; } nLength-=3; break; case 2: // 24 bit addresses if( fscanf(m_fp, "%6lX", &lAddress) != 1 ) { printf("\nM16 Flash ERROR: bad address format."); fflush(stdout); return 0; } nLength-=4; break; default: // no address break; } /* process file */ switch (nType) { case 1: case 2: CPage* page; /* now read the data */ for( n = 0; n < nLength; n++ ) { if( fscanf(m_fp, "%2X", &nVal) != 1 ) { printf("\nM16 Flash ERROR: bad data record in file."); fflush(stdout); fclose(m_fp); return 0; } page = getPageToAddress(nPageSize, lAddress); if (page == NULL) { /* new page */ page = new CPage(nPageSize); page->setAddress(lAddress - (lAddress % nPageSize)); if (m_pHead == NULL) m_pHead = page; else m_pTail->setNext(page); m_pTail = page; } // printf("adr: %6lX base: %6lX val: %2X\n", lAddress, page->getAddress(), nVal); page->setByte(lAddress % nPageSize, nVal); lAddress++; } break; case 8: case 9: /* S8 and S9 indicates end of file, so clean exit */ fclose(m_fp); return 8; break; case 0: /* header do nothing */ break; default: /* unknown record type */ printf("\nM16 Flash ERROR: unknown record type"); fflush(stdout); fclose(m_fp); return 0; } /* loose the checksum and end of line */ fscanf(m_fp, "%*[^\n]"); fscanf(m_fp, "\n"); } } m16c-flash-0.1.orig/cmotfile.h0000600000175000017500000000275710337334002014577 0ustar uh1763uh1763/*************************************************************************** cmotfile.h - header file for cmotfile.cxx. ------------------- begin : Wed Sep 25 18:58:35 BST 2002 copyright : (C) 2002 by Greg Reynolds, Jim Hawkridge email : j114@eee-fs4.bham.ac.uk ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include "cpage.h" class CMOTFile { public: CMOTFile(); ~CMOTFile(); int readFile(const char* pszFilename, int nPageSize); inline CPage* getFirstPage(); protected: int processFile(int nPageSize); CPage* getPageToAddress(int nPageSize, long lAddress); FILE* m_fp; CPage* m_pHead; CPage* m_pTail; }; inline CPage* CMOTFile::getFirstPage() { return m_pHead; } m16c-flash-0.1.orig/COPYING0000600000175000017500000004313107544376454013675 0ustar uh1763uh1763 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. m16c-flash-0.1.orig/cpage.cxx0000600000175000017500000000342710337163515014433 0ustar uh1763uh1763/*************************************************************************** cpage.cxx - class for handling pages of embedded device memory. ------------------- begin : Wed Sep 25 18:58:35 BST 2002 copyright : (C) 2002 by Greg Reynolds, Jim Hawkridge email : j114@eee-fs4.bham.ac.uk ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include "cpage.h" /* give me the size of this page */ CPage::CPage(int nSize) { assert( nSize > 0 ); m_nSize = nSize; /* allocate some space for this page */ m_pData = new unsigned char[m_nSize]; memset(m_pData, 0xff, m_nSize); m_lAddress = 0x00; m_pNext = NULL; } CPage::~CPage() { assert( m_pData ); delete m_pData; if( m_pNext != NULL ) { delete m_pNext; m_pNext = NULL; } } /* display this page's contents */ void CPage::display() { int n; printf("\n\nAddress %6lX = ", m_lAddress); printf("\n"); for( n = 0; n < m_nSize; n++ ) printf("%2X ", m_pData[n]); printf("\n\n----END OF PAGE----"); fflush(stdout); } m16c-flash-0.1.orig/cpage.h0000600000175000017500000000431407544375447014073 0ustar uh1763uh1763/*************************************************************************** cpage.h - header file for cpage.cxx. ------------------- begin : Wed Sep 25 18:58:35 BST 2002 copyright : (C) 2002 by Greg Reynolds, Jim Hawkridge email : j114@eee-fs4.bham.ac.uk ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include class CPage { public: CPage(int nSize); ~CPage(); void display(); inline void setAddress(long lAddress); inline long getAddress(); inline long getSize(); inline void setByte(int nIndex, unsigned char ucVal); inline unsigned char getByte(int nIndex); inline void setNext(CPage* pNext); inline CPage* getNext(); inline unsigned char* getPage(); protected: long m_lAddress; int m_nSize; unsigned char* m_pData; CPage* m_pNext; }; inline unsigned char* CPage::getPage() { assert( m_pData ); return m_pData; } inline void CPage::setNext(CPage* pNext) { assert( pNext ); m_pNext = pNext; } inline CPage* CPage::getNext() { return m_pNext; } inline unsigned char CPage::getByte(int nIndex) { assert( nIndex < m_nSize ); return m_pData[nIndex]; } inline void CPage::setByte(int nIndex, unsigned char ucVal) { assert( nIndex < m_nSize ); m_pData[nIndex] = ucVal; } inline void CPage::setAddress(long lAddress) { assert( lAddress >= 0 ); m_lAddress = lAddress; } inline long CPage::getAddress() { return m_lAddress; } inline long CPage::getSize() { return m_nSize; } m16c-flash-0.1.orig/flashm16.cxx0000600000175000017500000001373710472542045015001 0ustar uh1763uh1763/*************************************************************************** flashm16.cxx - A flash programmer for an M16C/62. ------------------- begin : Wed Sep 25 18:58:35 BST 2002 copyright : (C) 2002 by Greg Reynolds, Jim Hawkridge email : j114@eee-fs4.bham.ac.uk 2006-08-22: set version to "0.1" 2005-11-18: modified by Thomas Fischl - added support for R8C - added support for S1-mot-files 2005-11-20: - minor fixes - show new ID when written ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /* A flash programmer for the M16C/62. GMR 06-September-2002 with (as ever)inspired additions by Jim on 18-September-2002. TTDs: Make sure the COM port times out after a while - rather than waiting forever. Make sure that the status registers are checked after every operation - not done at the moment. Give the user the option to change the baud rate, currently defaults to the safe but slow 9600. Give the user the option to read back pages and verify them against what was supposed to have been written (all the code for reading has been written, just simple stuff required). Embed the PIC16F84 programmer source into this. Add all the functions that can be used in the Windows version. */ #include "cm16flash.h" #define VERSION "0.1" void displayUsage(void) { printf("Programs an M16C/62 or R8C microcontroller in asynchronous mode.\n\n"); printf("Usage: flash [COM_DEV] [CPU_TYPE] [FILE] [ID1:...:ID7] [OPTIONS]\n"); printf("Examples:\n"); printf("\t flash /dev/ttyS1 M16C simple.s 0:0:0:0:0:0:0\n"); printf("\t flash /dev/ttyS1 R8C test.mot ff:ff:ff:ff:ff:ff:ff\n\n"); fflush(stdout); } int main(int argc, char* argv[]) { CCOMPort port; unsigned char ucSRDs[2]; char szVersion[9]; unsigned int nID[7] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; CMOTFile mot; CPage* p; unsigned char ucCPUType = 0; printf("M16C-Flash Programmer Version %s\n", VERSION); fflush(stdout); /* check for sufficient parameters */ if( argc < 5 ) { displayUsage(); exit(-1); } /* check for a COM port device */ if( port.openPort(argv[1]) == 0 ) { printf("\nM16 Flash Error: could not open specified serial device.\n"); fflush(stdout); exit(-1); } /* now check the CPU type */ if( strcmp(argv[2], "M16C") == 0 ) { ucCPUType = M16_CPU; } else if( strcmp(argv[2], "R8C") == 0 ) { ucCPUType = R8C_CPU; } if (ucCPUType == 0) { printf("\nM16 Fash Error: you must specify a cpu type.\n"); fflush(stdout); exit(-1); } /* now try and read the file they have given us */ if( mot.readFile(argv[3], M16_PAGE_SIZE) == 0 ) { printf("\nM16 Flash Error: the input file was not acceptable.\n"); fflush(stdout); /* free up the pages so we can make a clean exit */ if( mot.getFirstPage() != NULL ) delete mot.getFirstPage(); port.closePort(); exit(-1); } /* get the ID */ if( sscanf(argv[4], "%2X:%2X:%2X:%2X:%2X:%2X:%2X", &nID[0], &nID[1], &nID[2], &nID[3], &nID[4], &nID[5], &nID[6]) != 7 ) { printf("\nM16 Flash Error: badly formatted ID string.\n"); fflush(stdout); /* free up the pages so we can make a clean exit */ if( mot.getFirstPage() != NULL ) delete mot.getFirstPage(); port.closePort(); exit(-1); } /* create the CM16Flash object */ CM16Flash flash(&port, ucCPUType); /* do the initial probing for the device */ if( flash.initComms() == 0 ) { /* free up the pages so we can make a clean exit */ if( mot.getFirstPage() != NULL ) delete mot.getFirstPage(); port.closePort(); exit(-1); } /* get status registers */ if( flash.readStatusRegisters(ucSRDs) == 0 ) { printf("\nM16 Flash Error: could not read status registers.\n"); fflush(stdout); /* free up the pages so we can make a clean exit */ if( mot.getFirstPage() != NULL ) delete mot.getFirstPage(); port.closePort(); exit(-1); } /* get boot ROM version info */ if( flash.readVersionInfo(szVersion) == 0 ) { printf("\nM16 Flash Error: couldn't read boot loader ROM code version.\n"); fflush(stdout); /* free up the pages so we can make a clean exit */ if( mot.getFirstPage() != NULL ) delete mot.getFirstPage(); port.closePort(); exit(-1); } /* send ID check */ if( flash.sendID(nID) == 0 ) { printf("\nM16 Flash Error: ID check failed.\n"); fflush(stdout); /* free up the pages so we can make a clean exit */ if( mot.getFirstPage() != NULL ) delete mot.getFirstPage(); port.closePort(); exit(-1); } /* erase the chip */ if( flash.eraseChip() == 0 ) { printf("\nM16 Flash Error: erasing of all blocks failed.\n"); fflush(stdout); /* free up the pages so we can make a clean exit */ if( mot.getFirstPage() != NULL ) delete mot.getFirstPage(); port.closePort(); exit(-1); } /* this is the loop that does the writing */ p = mot.getFirstPage(); while (p != NULL) { flash.writePage(p); p = p->getNext(); } /* free up the pages so we can make a clean exit */ if( mot.getFirstPage() != NULL ) delete mot.getFirstPage(); port.closePort(); printf("\nfinished.\n"); return 0; } m16c-flash-0.1.orig/INSTALL0000600000175000017500000000030010472540364013645 0ustar uh1763uh1763Edit the Makefile to your tests. Run 'make clean'. Run 'make'. Run 'make install'. Set permissions of /dev/ttySn (where n is port ID) so that the user who runs 'm16c-flash' can use this port! m16c-flash-0.1.orig/m16c-flash.10000600000175000017500000000320510472541631014544 0ustar uh1763uh1763.\" Copyright (C) 2006 Uwe Hermann . .\" This manpage is licensed under the terms of the GNU GPL. .TH M16C-FLASH 1 "August 20, 2006" .SH NAME m16c-flash \- Flash programmer for Renesas M16C and R8C microcontrollers .SH SYNOPSIS .B m16c-flash .RB [ "COM_DEV" ] .RB [ "CPU_TYPE" ] .RB [ "FILE" ] .RB [ "ID1:...:ID7" ] .RB [ "OPTIONS" ] .SH DESCRIPTION .B m16c-flash is a flash programmer for the Renesas M16C and R8C microcontrollers which operates in asynchronous mode. .SH OPTIONS .B "COM_DEV" The serial device to use for flashing, e.g. /dev/ttyS0 or /dev/ttyUSB0. .PP .B "CPU_TYPE" The CPU type you want to flash to (currently M16C or R8C). .PP .B "FILE" The filename of the binary you want to flash. .PP .B "ID1:...:ID7" The device ID. .PP .B \-\-help Show a help text and exit. .PP .B \-\-version Show version information and exit. .SH EXAMPLES Flash the simple.s file onto an M16C microcontroller via the first serial port (/dev/ttyS0) using 0:0:0:0:0:0:0 as the device ID: .br .B m16c-flash /dev/ttyS0 M16C simple.s 0:0:0:0:0:0:0 .PP Flash the test.mot file onto an R8C microcontroller via the USB serial device /dev/ttyUSB0, and using ff:ff:ff:ff:ff:ff:ff as device ID: .br .B m16c-flash /dev/ttyUSB0 R8C test.mot ff:ff:ff:ff:ff:ff:ff .SH BUGS Please report any bugs to Thomas Fischl . .SH LICENCE .B m16c-flash is covered by the GNU General Public License (GPL). .SH AUTHORS Greg Reynolds .br Jim Hawkridge .br Thomas Fischl .PP This manual page was written by Uwe Hermann , for the Debian GNU/Linux system (but may be used by others). m16c-flash-0.1.orig/Makefile0000600000175000017500000000120010472540166014254 0ustar uh1763uh1763CFLAGS+=-g -Wall -pedantic LFLAGS+= all: m16c-flash clean: rm ccomport.o rm cpage.o rm cmotfile.o rm cm16flash.o rm m16c-flash ccomport.o: ccomport.cxx ccomport.h g++ $(CFLAGS) ccomport.cxx -c -o ccomport.o cpage.o: cpage.cxx cpage.h g++ $(CFLAGS) cpage.cxx -c -o cpage.o cmotfile.o: cmotfile.cxx cmotfile.h g++ $(CFLAGS) cmotfile.cxx -c -o cmotfile.o cm16flash.o: cm16flash.cxx cm16flash.h g++ $(CFLAGS) cm16flash.cxx -c -o cm16flash.o m16c-flash: flashm16.cxx cm16flash.o cmotfile.o cpage.o ccomport.o g++ $(CFLAGS) flashm16.cxx cm16flash.o cmotfile.o cpage.o ccomport.o -o m16c-flash install: cp m16c-flash /usr/bin m16c-flash-0.1.orig/README0000600000175000017500000000000107544376470013505 0ustar uh1763uh1763 m16c-flash-0.1.orig/simple.s0000600000175000017500000000114007542167702014301 0ustar uh1763uh1763S0030000FC S2140F0000EB40002CEB608003EB708004C7030A0004 S2140F0010D94F040075CF06000820B70A00EB300052 S2140F002000EB200F00EB1000FFC7FFE603C7FFE44F S2140F003003F50C00B7E403F50600FEF2FEFFD9FF4A S20D0F00400040F9FF0040FEF3FB3F S2140FFF2C48000F0048000F0048000F0048000F0055 S2140FFF3C48000F0048000F0048000F0048000F0045 S2140FFF4C48000F0048000F0048000F0048000F0035 S2140FFF5C48000F0048000F0048000F0048000F0025 S2140FFF6C48000F0048000F0048000F0048000F0015 S2080FFF7C48000F0016 S2140FFFDC48000F0048000F0048000F0048000F00A5 S2140FFFEC48000F0048000F0048000F0048000F0095 S2080FFFFC00000F00DE S804000000FB m16c-flash-0.1.orig/TODO0000600000175000017500000000000107544376466013322 0ustar uh1763uh1763