Here is the file that I have been compiling with MicroEngineering MicroCode Studio PICBasic Pro compiler, building with MPASM and programming with PICkit 2 successfully.
The assembly language result from this MicroCode Studio compile is not acceptable to the Microchip PICkit 2 Debug Express MPLAB IDE.
It says in RED "BUILD FAILED"
OH! I see now. It is complaining about PBPPIC14.LIB lines 607, 623, 640, 643, 649 etc.
These are all "if" statements that look like this:
7785 if ($ > 800h)
541 if ($ == (Label))
552 if (((Label) & 800h) == 0)
559 if (((Label) & 1000h) == 0)
705 if ((Label) > $)
722 if (((Label) & 1800h) == 0)
725 if (((Label) & 800h) == 0)
731 if (((Label) & 1000h) == 0)
607 if ((Label) < 1)
623 if ((Label) > $)
640 if (((Label) & 1800h) == 0)
643 if (((Label) & 800h) == 0)
649 if (((Label) & 1000h) == 0)
677 if ($ == (Label))
689 if ((Label) < 1)
Hundreds of:
Followed by:Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F887 "racers.asm" /l"racers.lst" /e"racers.err" /o"racers.o" /d__DEBUG=1
Error[151] C:\PBP\PBPPIC14.LIB 7785 : Operand contains unresolvable labels or is too complex
Error[151] C:\PBP\PBPPIC14.LIB 607 : Operand contains unresolvable labels or is too complex
Error[151] C:\PBP\PBPPIC14.LIB 623 : Operand contains unresolvable labels or is too complex
Error[151] C:\PBP\PBPPIC14.LIB 640 : Operand contains unresolvable labels or is too complex
Error[151] C:\PBP\PBPPIC14.LIB 643 : Operand contains unresolvable labels or is too complex
It appears that all I need to do is to figure out why this .lib file is incompatible with MPLAB IDE....Error[151] C:\PBP\PBPPIC14.LIB 559 : Operand contains unresolvable labels or is too complex
----------------------------------------------------------------------
Debug build of project `C:\Pk2 Lessons\44Pin Demo Board\racers\racers.mcp' failed.
Language tool versions: MPASMWIN.exe v5.35, mplink.exe v4.35
Preprocessor symbol `__DEBUG' is defined.
Tue Feb 16 20:56:41 2010
----------------------------------------------------------------------
BUILD FAILED
Hmmmm....
Ken
Bookmarks