Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




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) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists