Quality RTOS & Embedded Software

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


FreeRTOS + LPC2294 + Data Abort

Posted by Marcos on June 19, 2008
I've changed the script for memory boundaries of Phytec PCM-023 board, using the workbench edit script tool, and the vTaskStartScheduler() doesn't return, the board led stops flashing... it seems that it's branching to a wrong address...

When I change configTOTAL_HEAP_SIZE to 14196 or to 14204 it stops working, and when I change its value to 14200 works fine!!!

I've noticed that application stops in "Data abort" trap...

RE: FreeRTOS + LPC2294 + Data Abort

Posted by Dave on June 19, 2008
Can you step through the code to see where it aborts. If not, check the abort link register to find the address of the instruction that caused the abort, then set a break point there (I think its the link register value - 8).

RE: FreeRTOS + LPC2294 + Data Abort

Posted by Marcos on June 20, 2008
No, step through the code is hard to do because of the interrupts, so I found out something with your second tip: (Link register - 8) is located in internal flash, but I'm using external flash!!! I've checked the link script and could't find any entry to internal flash... Is there any fixed address in FreeRTOS demo source code? I've used demo aplication to configure my project.

RE: FreeRTOS + LPC2294 + Data Abort

Posted by Dave on June 20, 2008
Is it possible that a RAM corruption is causing a return address or something similar to send you to a bum location. Could be a stack overflow?

RE: FreeRTOS + LPC2294 + Data Abort

Posted by Marcos on June 20, 2008
I don't know if stack amount in link script is enough, but what do you think ? I'm using values from demo aplication, and I'm starting only flash led task. It seems to be a very simple dummy task.

There is a configMINIMAL_STACK_SIZE with value 100, what value should be there?

And in link script table we have this values:

CSTACK: 0x200
SVC_STACK: 0x200
IRQ_STACK: 0x200
HEAP: 0x0

I don't know how to configure parameters in FreeRTOSConfig.h, is there any howto or documentation about this?

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

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

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

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

Xilinx Microblaze and Zynq partner