Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

getting error in MPLAB C 18 .....

Posted by crazyyyyy on March 28, 2008
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

RE: getting error in MPLAB C 18 .....

Posted by Richard on April 1, 2008
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.

RE: getting error in MPLAB C 18 .....

Posted by Marcelo Adrian Lorenzati Sanz on May 20, 2008
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.

RE: getting error in MPLAB C 18 .....

Posted by Marcelo Adrian Lorenzati Sanz on July 6, 2008
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)



[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS