Rafael Vidal Aroca wrote: > But the question is: shouldn't microchip bootloader compile > correctly at first try? Microchip publishes a lot of crappy code. They make great chips, but aren't real good at programming them. > C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 250 : Symbol not previously > defined (RCREG1) Error[113] I don't know anything about this code, but I'm guessing it was written for a chip with a single UART and you are trying to build it for a chip with two UARTs. That will require some manual editing. I just dealt with this single/multiple UARTs issue myself, and have updated my PIC development environment to deal with it in a nice way. I plan on releasing the updated version soon, after I've had more chance to test my own code with it and run some regression tests. In a nutshell, I've created a UART_SELECT macro that makes sure symbols exist for the selected UART as if there was only one UART. It also provides wrapper symbols and string substitution macros for where the various interrupt bits live. For example, after doing UART_SELECT 1, RCREG will refer to RCREG1, after UART_SELECT 2, RCREG will refer to RCREG2, etc. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads