Rafael Vidal Aroca wrote: [fixed long lines] > I'm trying to compile Microchip's booloader in mplab 6.3 which leads > to several errors. All errors are related to register names from that > are not in the include files, so it can be solved. > > But the question is: shouldn't microchip bootloader compile correctly > at first try? > Anyone has had this kind of problem. I've adapted the AN851 bootloader. Apart from the initialization, and no autobauding, its the same as the AN851, just fixed those things you mentioned. I have it working on a 18F452, so this should, at most, require minor changes. I worked through the whole code and wrote my own comments for nearly every instruction. The only thing I did not understand was the checksum calculation in Mchip's code... I've also written small programs to use it under linux. I have not tested the Windows programs supplied by microchip. If you are interested, I can put the asm file up on the web. Regards, Manuel -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads