It's running now. I selected to run with "/c-" and commenting out the "double" defines in the MCHIP include file. Just another minor thing... My ISR code could not "find" INTR_RET. I had to change this : ; intr_ret unbank ;common high/single priority interrupt exit point glbent intr_ret_uart ;UART interrupt routines return here when done to this : ; intr_ret unbank ;common high/single priority interrupt exit point glbent intr_ret glbent intr_ret_uart ;UART interrupt routines return here when done (That is, adding a "global entry" for INTR_RET) Is this expected ? Or did I do something wrong ? Jan-Erik. -----Original Message----- From: Jan-Erik Soderholm XA (TN/PAC) Sent: den 27 juli 2003 22:11 To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: 18F1320 and Olins dev envir. Hi. Just a little thing I found... I was trying my first build with Olins environment and code setup for a PIC18F1320. Now, I first run MPASMWIN with the "/c-" switch ("not case sensitive") I then had this problems with the p18f1320.inc file : Error[115] C:\PROGRAM\MPLAB IDE\MCHIP_TOOLS\P18F1320.INC 66 : Duplicate label ("CLRW" or redefining symbol that cannot be redefined) on these lines in the p18f1320inc file : #define clrw clrf WREG ; PIC16Cxxx code substitution #define CLRW CLRF WREG ; PIC16Cxxx code substitution Seems reasonable, I don't think you can build anything using any environment using this include file and the "/c-" switch, or ? I then changed the switch to "/c+" to overcome this. The clrw/CLRW problems went away, but now I get problems with the detection of the processor type, since Olins code looks for " ifdef __18f1320" and obviously a symbol called "__18F1320" is defined someware. Is this symbol created by the MPASMWIN ? Obviously I'll just have to make a few changes here and there to get this running, but I thought you'd be interested anyway. *OR* have I done some major blunder here ? Jan-Erik. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics