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

"Section placement failed" error

Posted by kyle-shneider on March 22, 2017

Developing a project in IAR 6.7 on stm32l151 platform. IAR gives error:

Error[Lp011]: section placement failed unable to allocate space for sections/blocks with a total estimated minimum size of 0x4068 bytes in <[0x20000000-0x20003fff]> (total uncommitted space 0x4000).

Removing creation of massive FreeRTOS user processes helped to eliminate error, so this problem connected to FreeRTOS. Randomly changing heap and stack also helped: ~~~

define configMINIMALSTACKSIZE ( ( unsigned short ) 60 )
define configTOTALHEAPSIZE ( ( size_t ) ( 8 * 1024 ) )

~~~

At the begining i used default values: 85 for stack and 10240 for heap. Few user processes use configMINIMALSTACKSIZE* 2 value. So what's the origin of this error and how to prevent it's appearing in the future?


"Section placement failed" error

Posted by rtel on March 22, 2017

Removing creation of massive FreeRTOS user processes helped to eliminate error, so this problem connected to FreeRTOS.

Sounds like it is a linker error, not an RTOS error, or at a minimum it is a problem with your "massive user process" using too much RAM which is resulting in a linker error because it is using more RAM than you have.

Randomly changing heap and stack also helped:

Doing stuff randomly rarely helps in the long run.

define configMINIMALSTACKSIZE ( ( unsigned short ) 60 )
define configTOTALHEAPSIZE ( ( size_t ) ( 8 * 1024 ) )

At the begining i used default values: 85 for stack and 10240 for heap. Few user processes use configMINIMALSTACKSIZE* 2 value. So what's the origin of this error and how to prevent it's appearing in the future?

If you attempt to use more RAM than the processor you are running on has available then your application will not link....it can't because you are asking it to do something impossible.

The following links might help: http://www.freertos.org/a00111.html


"Section placement failed" error

Posted by kyle-shneider on March 29, 2017

Thanks for answer!


[ 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