getting error in MPLAB C 18 …..
i m getting this error when i m going to build the project.
Error – section ‘.udata_portheap.o’ can not fit the section. Section ‘.udata_portheap.o’ length=0x00000476.
please tell what i am missing…
regards
getting error in MPLAB C 18 …..
Have you changed the linker script? The one in the FreeRTOS.org download creates one large block into which the heap can fit. If you are using the linker script from your MPLAB distribution then you will get this error.
Regards.
getting error in MPLAB C 18 …..
Is there a BKM to manipulate the lkr file provided with MCC18 to work with FreeRtos?
I´m trying to use a PIC18F4620 with a DEMO and I need the associated lkr file or some knowledge to correctly modify the one provided in the MCC18 distribution.
Regards.
getting error in MPLAB C 18 …..
I modified the original from Microchip for pic18F4620 to allow the heap to fit.
Here it is:
// $Id: 18f4620.lkr,v 1.3 2008/05/20 19:32:00 Lorenzati Exp $
// File: 18f4620.lkr
// Sample linker script for the PIC18F4620 processor
LIBPATH .
FILES c018i.o
FILES clib.lib
FILES p18f4620.lib
CODEPAGE NAME=vectors START=0x0 END=0x39 PROTECTED
CODEPAGE NAME=page START=0x3A END=0xFFFF
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=0xF003FF PROTECTED
ACCESSBANK NAME=accessram START=0x0 END=0x7F
DATABANK NAME=BIG_BLOCK START=0x80 END=0xF7F
ACCESSBANK NAME=accesssfr START=0xF80 END=0xFFF PROTECTED
SECTION NAME=CONFIG ROM=config
STACK SIZE=0x60 RAM=BIG_BLOCK
Can you tell me if it´s OK?
It was working ok till I keep adding features to my program and get this error:
CORE-W0015: Out of bounds Memory Access (at address 0x030000 on 0x000002 bytes)