Go to Post So now that the Championship is over, how long 'till next kick off? ;) :p - Michelle Celio [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 29-05-2010, 06:17
ponjo ponjo is offline
Registered User
no team
 
Join Date: May 2010
Location: Bulgaria
Posts: 1
ponjo is an unknown quantity at this point
mplab c18 linker problem

Hi all,
I downloaded the code of MyApp from PicOs page and I'm trying to build it with 18f5420.lkr . This is my first project for a course and it gives the following error:

Debug build of project `C:\Users\duygu\Desktop\jdfd\het.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Sat May 29 11:40:56 2010
----------------------------------------------------------------------
Make: The target "C:\Users\duygu\Desktop\jdfd\int.o" is out of date.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4520 /i"C:\PICos18_v2_10\Include" -I"C:\MCC18\h" "C:\Users\duygu\Desktop\PICos18_v2_10\Project\MyAp p\int.c" -fo="int.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v3.00 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 59
Make: The target "C:\Users\duygu\Desktop\jdfd\main.o" is out of date.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4520 /i"C:\PICos18_v2_10\Include" -I"C:\MCC18\h" "C:\Users\duygu\Desktop\PICos18_v2_10\Project\MyAp p\main.c" -fo="main.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v3.00 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 59
Make: The target "C:\Users\duygu\Desktop\jdfd\taskdesc.o" is up to date.
Make: The target "C:\Users\duygu\Desktop\jdfd\tsk_task0.o" is out of date.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4520 /i"C:\PICos18_v2_10\Include" -I"C:\MCC18\h" "C:\Users\duygu\Desktop\PICos18_v2_10\Project\MyAp p\tsk_task0.c" -fo="tsk_task0.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v3.00 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 59
Make: The target "C:\Users\duygu\Desktop\jdfd\pro_man.o" is out of date.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4520 /i"C:\PICos18_v2_10\Include" -I"C:\MCC18\h" "C:\PICos18_v2_10\Kernel\pro_man.c" -fo="pro_man.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v3.00 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 59
Make: The target "C:\Users\duygu\Desktop\jdfd\kernel.o" is out of date.
Executing: "C:\MCC18\mpasm\MPASMWIN.exe" /q /p18F4520 "C:\PICos18_v2_10\Kernel\kernel.asm" /l"kernel.lst" /e"kernel.err" /o"kernel.o" /d__DEBUG=1
Make: The target "C:\Users\duygu\Desktop\jdfd\het.cof" is out of date.
Executing: "C:\MCC18\bin\mplink.exe" /l"C:\PICos18_v2_10\Kernel" /l"C:\MCC18\lib" "..\..\..\..\PICos18_v2_10\Linker\18f4520.lkr" "int.o" "main.o" "taskdesc.o" "tsk_task0.o" "pro_man.o" "kernel.o" "C:\PICos18_v2_10\Kernel\PICos18.o" "C:\PICos18_v2_10\Kernel\PICos18i.o" "C:\PICos18_v2_10\Kernel\PICos18iz.o" "C:\PICos18_v2_10\Kernel\picos18.lib" /o"het.cof" /M"het.map" /W
MPLINK 4.00, Linker
Copyright (c) 2005 Microchip Technology Inc.
Error - section '_entry_scn' type is non-overlay and absolute but occurs in more than one input file.
Errors : 1

Link step failed.
----------------------------------------------------------------------
Debug build of project `C:\Users\duygu\Desktop\jdfd\het.mcp' failed.
Preprocessor symbol `__DEBUG' is defined.
Sat May 29 11:41:00 2010
----------------------------------------------------------------------
BUILD FAILED






Here's my 18f4520.lkr :



LIBPATH .

FILES PICos18iz.o
FILES picos18.lib
FILES clib.lib
FILES p18f4520.lib

//************************************************** ********************/
//* Describe the ROM physical memory organisation */
//************************************************** ********************/
CODEPAGE NAME=BOOT START=0x0000 END=0x0007
CODEPAGE NAME=vectors START=0x0008 END=0x001F PROTECTED
CODEPAGE NAME=BOOTSEC START=0x0020 END=0x01FF PROTECTED
CODEPAGE NAME=DESCRIPT START=0x0200 END=0x02FF PROTECTED
CODEPAGE NAME=KERNEL START=0x0300 END=0x1FFF PROTECTED
CODEPAGE NAME=TASKS START=0x2000 END=0x7DBF
CODEPAGE NAME=debug START=0x7DC0 END=0x7FFF PROTECTED
CODEPAGE NAME=idlocs START=0x200000 END=0x200007 PROTECTED
CODEPAGE NAME=config START=0x300000 END=0x30000D PROTECTED
CODEPAGE NAME=devid START=0x3FFFFE END=0x3FFFFF PROTECTED
CODEPAGE NAME=eedata START=0xF00000 END=0xF000FF PROTECTED

//************************************************** ********************/
//* Link the logical areas (SECTION) to ROM physical memory */
//************************************************** ********************/
SECTION NAME=INT ROM=vectors
SECTION NAME=KERNEL_ROM ROM=KERNEL
SECTION NAME=DESC_ROM ROM=DESCRIPT
SECTION NAME=CONFIG ROM=config

//************************************************** ********************/
//* Describe the RAM physical memory organisation */
//************************************************** ********************/
ACCESSBANK NAME=accessram START=0x0 END=0x5F
DATABANK NAME=kernel START=0x60 END=0xFF PROTECTED
DATABANK NAME=task1 START=0x100 END=0x1FF
DATABANK NAME=task2 START=0x200 END=0x2FF
DATABANK NAME=task3 START=0x300 END=0x3FF
DATABANK NAME=task4 START=0x400 END=0x4FF
DATABANK NAME=task5 START=0x500 END=0x57F
DATABANK NAME=main START=0x580 END=0x5F3 PROTECTED
DATABANK NAME=dbgspr START=0x5F4 END=0x5FF PROTECTED
ACCESSBANK NAME=accesssfr START=0xF80 END=0xFFF PROTECTED


//************************************************** ********************/
//* Link the logical areas (SECTION) to RAM physical memory */
//************************************************** ********************/
SECTION NAME=KERNEL_RAM RAM=kernel


STACK SIZE=0x74 RAM=main

//* End of File : 18f4520.lkr */





Can anybody please help?
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual C18 Compilers and MPLAB? RyanN Programming 8 19-06-2008 08:46
MPLAB/C18/IFI-utils Licensing Orborde Programming 1 18-12-2007 08:48
MPLab 7.20/C18 2.40 Andy L Programming 2 07-04-2007 20:11
MPLAB/c18 not creating a .hex file Cheezmeister Programming 7 15-02-2007 15:01
MPLAB C18 problem Justyn Programming 0 09-03-2005 11:37


All times are GMT -5. The time now is 03:28.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi