Page 1 of 1

v4 with mplab

Posted: Sun Nov 15, 2009 11:04 am
by saschech@gmx.de
Hallo Benj

With the v4 i cant work with the MPLAB.I build a short v4_to_mplab.fcf for test.

I receive the error:

----------------------------------------------------------------------
Debug build of project `D:\sachs_work\ECIO\v4 to mplab\v4_to_mplab.mcp' started.
Language tool versions: MPASMWIN.exe v5.34, mplink.exe v4.34
Preprocessor symbol `__DEBUG' is defined.
Sun Nov 15 12:45:08 2009
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p18F4620 "v4_to_mplab.asm" /l"v4_to_mplab.lst" /e"v4_to_mplab.err" /d__DEBUG=1
Error[118] D:\SACHS_WORK\ECIO\V4 TO MPLAB\V4_TO_MPLAB.ASM 476 : Overwriting previous address contents (0000)
Error[118] D:\SACHS_WORK\ECIO\V4 TO MPLAB\V4_TO_MPLAB.ASM 476 : Overwriting previous address contents (0001)
Message[303] D:\SACHS_WORK\ECIO\V4 TO MPLAB\V4_TO_MPLAB.ASM 476 : Program word too large. Truncated to core size. (01BC1834)
Error[154] D:\SACHS_WORK\ECIO\V4 TO MPLAB\V4_TO_MPLAB.ASM 476 : Each object file section must be contiguous (section .config_000000_V4_TO_MPLAB.O)
Error[118] D:\SACHS_WORK\ECIO\V4 TO MPLAB\V4_TO_MPLAB.ASM 476 : Overwriting previous address contents (0000)
Error[118] D:\SACHS_WORK\ECIO\V4 TO MPLAB\V4_TO_MPLAB.ASM 476 : Overwriting previous address contents (0001)
Message[303] D:\SACHS_WORK\ECIO\V4 TO MPLAB\V4_TO_MPLAB.ASM 476 : Program word too large. Truncated to core size. (01BC184C)
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `D:\sachs_work\ECIO\v4 to mplab\v4_to_mplab.mcp' failed.
Language tool versions: MPASMWIN.exe v5.34, mplink.exe v4.34
BUILD FAILED


Sun Nov 15 12:34:53 2009
----------------------------------------------------------------------
BUILD FAILED

Regards Wolfgang

Re: v4 with mplab

Posted: Mon Nov 16, 2009 7:43 am
by Steve
Hi Wolfgang,

Please post all the files for this project and we'll have a look at where the problem is.

Re: v4 with mplab

Posted: Tue Nov 17, 2009 10:20 am
by saschech@gmx.de
Hello Steve

Here are the files

Regards Wolfgang

Re: v4 with mplab

Posted: Wed Nov 18, 2009 1:31 pm
by Benj
Hello Wolfgang

I am using MPLAB version 8.36.

I loaded your mcp MPLAB project file and hit the build button and this is the output I received.

Release build of project `C:\Documents and Settings\Administrator\Desktop\New Folder\v4_to_mplab.mcp' started.
Language tool versions: MPASMWIN.exe v5.33, mplink.exe v4.33
Wed Nov 18 14:01:17 2009
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Documents and Settings\Administrator\Desktop\New Folder\v4_to_mplab.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p18F4620 "v4_to_mplab.asm" /l"v4_to_mplab.lst" /e"v4_to_mplab.err"
Message[301] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P18F8722.INC 33 : MESSAGE: (Processor-header file mismatch. Verify selected processor.)
Warning[220] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\NEW FOLDER\V4_TO_MPLAB.ASM 542 : Address exceeds maximum range for this processor.
Warning[220] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\NEW FOLDER\V4_TO_MPLAB.ASM 543 : Address exceeds maximum range for this processor.
Warning[220] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\NEW FOLDER\V4_TO_MPLAB.ASM 544 : Address exceeds maximum range for this processor.
Warning[220] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\NEW FOLDER\V4_TO_MPLAB.ASM 545 : Address exceeds maximum range for this processor.
Warning[220] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\NEW FOLDER\V4_TO_MPLAB.ASM 546 : Address exceeds maximum range for this processor.
Warning[220] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\NEW FOLDER\V4_TO_MPLAB.ASM 547 : Address exceeds maximum range for this processor.
Warning[220] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\NEW FOLDER\V4_TO_MPLAB.ASM 548 : Address exceeds maximum range for this processor.
Executing: "C:\Program Files\Microchip\MPASM Suite\mplink.exe" /p18F4620 "v4_to_mplab.o" /z__MPLAB_BUILD=1 /o"v4_to_mplab.cof" /M"v4_to_mplab.map" /W /x
MPLINK 4.33, Linker
Copyright (c) 2009 Microchip Technology Inc.
Errors : 0

Loaded C:\Documents and Settings\Administrator\Desktop\New Folder\v4_to_mplab.cof.
----------------------------------------------------------------------
Release build of project `C:\Documents and Settings\Administrator\Desktop\New Folder\v4_to_mplab.mcp' succeeded.
Language tool versions: MPASMWIN.exe v5.33, mplink.exe v4.33
Wed Nov 18 14:01:29 2009
----------------------------------------------------------------------
BUILD SUCCEEDED


The problem looks like there is not enough room in the device. I noticed the Flowcode program was designed for a 18F8722 where as the MPLAB project is set to use a 18F4620 which has significantly less memory.