Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

help a newbie - mplab problem

Status
Not open for further replies.

ponjo

New Member
Hi all,
I'm new to mplab and when I try to build a project that I downloaded from PICOS's page I get the following error:
Error - section '_entry_scn' type is non-overlay and absolute but occurs in more than one input file.
Errors : 1



Here's my linker file:
Code:
//**********************************************************************/
//*                                                                    */
//* File name: 18f4520.lkr                                             */
//*                                                                    */
//* Since:     2005-Oct-29                                             */
//*                                                                    */
//* Version:   PICos18 v2.10                                           */
//*            Copyright (C) 2003, 2004, 2005 Pragmatec.               */
//*                                                                    */
//* Author:    Designed by Pragmatec S.A.R.L.        www.pragmatec.net */
//*            MONTAGNE Xavier [XM]      xavier.montagne@pragmatec.net */
//*                                                                    */
//* Purpose:   Specify the memory organisation (cf map file).          */
//*                                                                    */
//* Distribution: This file is part of PICos18.                        */
//*            PICos18 is free software; you can redistribute it       */
//*            and/or modify it under the terms of the GNU General     */
//*            Public License as published by the Free Software        */
//*            Foundation; either version 2, or (at your option)       */
//*            any later version.                                      */
//*                                                                    */
//*            PICos18 is distributed in the hope that it will be      */
//*            useful, but WITHOUT ANY WARRANTY; without even the      */
//*            implied warranty of MERCHANTABILITY or FITNESS FOR A    */
//*            PARTICULAR PURPOSE.  See the GNU General Public         */
//*            License for more details.                               */
//*                                                                    */
//*            You should have received a copy of the GNU General      */
//*            Public License along with gpsim; see the file           */
//*            COPYING.txt. If not, write to the Free Software         */
//*            Foundation, 59 Temple Place - Suite 330,                */
//*            Boston, MA 02111-1307, USA.                             */
//*                                                                    */
//*          > A special exception to the GPL can be applied should    */
//*            you wish to distribute a combined work that includes    */
//*            PICos18, without being obliged to provide the source    */
//*            code for any proprietary components.                    */
//*                                                                    */
//* History:                                                           */
//* 2005/10/29 [XM]  Create the file.                                  */
//* 2006/03/21 [XM]  Splitted the "task" section into 255 bytes blocs. */
//* 2006/05/17 [XM]  Removed the stack section.                        */
//*                                                                    */
//**********************************************************************/

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? Thanx in advance.
 
Hi,

That file is just one small part of the main program and will not build on its own.

Looked at that picos site - any particular reason you chose it ?

Have a look at the Sticky post at the top of this forum, it list many good beginner tutorials in C and Assembler and covers all the starter hardware such as lcds etc.
 
This is for a course & assignment. I'm not a big fan of PicOS also :eek: I have dowloaded picOS from PICOS18 and under MyApps there's a first project. I need to build it but I can't . It has .c files, .asm files and other stuff. It looks like in the attached file.
 

Attachments

  • Ekran Alıntısı.PNG
    Ekran Alıntısı.PNG
    69.8 KB · Views: 186
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top