It looks like the code is assuming there's more than one uart while the 18f252 only has one. A few define statements added to the code could fix that. Also, I don't have a datasheet in front of me right now, but I see that the 18f252 has 256 bytes of eeprom. Since the address would fit in 8 bits, it would not need a high byte for the eeprom address. So, eeaddrh may not exist. Their bootloader is interesting. The checking of eeprom to decide whether to bootload or run the ap is a bit different. I changed that to polling a switch. I also got rid of all the autobaud stuff. I know how fast I want the port to go. I've got it working on an 18f6720. Harold > Hi. > > 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. > > Here is the output of my mplab log: > > Deleting intermediary files... done. > Executing: "C:\Arquivos de programas\MPLAB > IDE\MCHIP_Tools\mpasmwin.exe" /q /p18F252 "bootload.asm" > /l"bootload.lst" /e"bootload.err" > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 190 : > Symbol not previously defined (EEADRH) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 199 : > Symbol not previously defined (RCSTA1) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 201 : > Symbol not previously defined (TXSTA1) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 223 : > Symbol not previously defined (RCSTA1) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 245 : > Symbol not previously defined (SPBRG1) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 247 : > Symbol not previously defined (RCSTA1) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 249 : > Symbol not previously defined (RCREG1) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 250 : > Symbol not previously defined (RCREG1) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 308 : > Symbol not previously defined (EEADRH) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 434 : > Symbol not previously defined (EEADRH) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 458 : > Symbol not previously defined (EEADRH) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 573 : > Symbol not previously defined (TXREG1) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 585 : > Symbol not previously defined (RCSTA1) > Error[113] C:\MICROCHIP\FIRMWARE\PIC18F\BOOTLOAD.ASM 591 : > Symbol not previously defined (RCREG1) > Halting build on first failure as requested.BUILD FAILED: Thu Jan > 22 12:11:38 2004 > > Thanks for any help. > > []s Rafael. > http://grad.icmc.sc.usp.br/~rva > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > -- FCC Rules Online at http://www.hallikainen.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads