MPLAB Linker: Corrupt Coff-file
Postat: 28 oktober 2010, 15:25:47
(MPLAB, Assembler, PIC18F1320.)
Jag har tagit upp ett gammalt projekt som jag tänkte göra klart.
Rensade bort lite dåligt skrivna rutiner och började om.
Fram till hit så "byggdes" (Build) koden utan fel.
Men efter att ha satt upp en timer så skulle jag testköra det mot oscilloskopet.
Valde som vanligt "Build All" och fick då:
"Clean: Deleting intermediary and output files.
Clean: Deleted file "G:\PIC\ASM\PIC18LF1320\UV-box\uvbox.o".
Clean: Deleted file "G:\PIC\ASM\PIC18LF1320\UV-box\uvbox.lst".
Clean: Done.
Executing: "D:\Program\Microchip\MPASM Suite\MPAsmWin.exe" /q /p18F1320 "uvbox.asm" /l"uvbox.lst" /e"uvbox.err" /o"uvbox.o" /c-
Executing: "D:\Program\Microchip\MPASM Suite\MPLink.exe" /l"D:\Program\Microchip\MCC18\lib" "D:\Program\Microchip\MPASM Suite\LKR\18f1320.lkr" "G:\PIC\ASM\PIC18LF1320\UV-box\uvbox.o" /o"UV-box.cof" /M"UV-box.map" /W
MPLINK 4.11, Linker
Copyright (c) 2007 Microchip Technology Inc.
Error - Coff file 'UV-box.cof' symbol[45] has an invalid n_scnum.
Error - Internal Coff output file is corrupt.
Errors : 2
Link step failed.
BUILD FAILED: Thu Oct 28 15:24:49 2010"
Jag har sökt på "Internal Coff output file is corrupt." men har inte hittat något konkret om vad detta beror på.
I mappen för detta MPLAB-projekt finns:
Dvs ingen fil som heter "UV-box.cof".
I en äldre backup-mapp för projektet finns en fil med det namnet.
Jag testade att kopiera in den i projekt-mappen, men fick samma felmeddelande.
När jag tittar på filen med NotePad++ (text/kod-editor) så ser jag mest en massa "NUL".
Så vad beror felet på och hur löser man det?
Jag har tagit upp ett gammalt projekt som jag tänkte göra klart.
Rensade bort lite dåligt skrivna rutiner och började om.
Fram till hit så "byggdes" (Build) koden utan fel.
Men efter att ha satt upp en timer så skulle jag testköra det mot oscilloskopet.
Valde som vanligt "Build All" och fick då:
"Clean: Deleting intermediary and output files.
Clean: Deleted file "G:\PIC\ASM\PIC18LF1320\UV-box\uvbox.o".
Clean: Deleted file "G:\PIC\ASM\PIC18LF1320\UV-box\uvbox.lst".
Clean: Done.
Executing: "D:\Program\Microchip\MPASM Suite\MPAsmWin.exe" /q /p18F1320 "uvbox.asm" /l"uvbox.lst" /e"uvbox.err" /o"uvbox.o" /c-
Executing: "D:\Program\Microchip\MPASM Suite\MPLink.exe" /l"D:\Program\Microchip\MCC18\lib" "D:\Program\Microchip\MPASM Suite\LKR\18f1320.lkr" "G:\PIC\ASM\PIC18LF1320\UV-box\uvbox.o" /o"UV-box.cof" /M"UV-box.map" /W
MPLINK 4.11, Linker
Copyright (c) 2007 Microchip Technology Inc.
Error - Coff file 'UV-box.cof' symbol[45] has an invalid n_scnum.
Error - Internal Coff output file is corrupt.
Errors : 2
Link step failed.
BUILD FAILED: Thu Oct 28 15:24:49 2010"
Jag har sökt på "Internal Coff output file is corrupt." men har inte hittat något konkret om vad detta beror på.
I mappen för detta MPLAB-projekt finns:
Kod: Markera allt
2010-10-27 14:53 mpmb_2.mmt 1409067
2010-10-28 15:14 UV-box.map 2564
2009-05-27 01:03 UV-box.mcp 820
2010-10-28 14:19 UV-box.mcw 84480
2009-08-15 00:00 UV-box.mptags 3557
2009-08-15 00:00 UV-box.tagsrc 41
2010-10-28 15:03 uvbox.asm 8583
2010-10-28 15:14 uvbox.err 0
2010-10-28 15:14 uvbox.lst 43943
2010-10-28 15:14 uvbox.o 4564
I en äldre backup-mapp för projektet finns en fil med det namnet.
Jag testade att kopiera in den i projekt-mappen, men fick samma felmeddelande.
När jag tittar på filen med NotePad++ (text/kod-editor) så ser jag mest en massa "NUL".
Så vad beror felet på och hur löser man det?