# FreeRTOS + LPC2294 + Data Abort

**URL:** <https://forums.freertos.org/t/freertos-lpc2294-data-abort/1557>\
**Category:** Kernel\
**Created:** [June 19, 2008, 8:09pm UTC](https://forums.freertos.org/t/freertos-lpc2294-data-abort/1557 "2008-06-19T20:09:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 19, 2008, 8:09pm UTC](https://forums.freertos.org/t/freertos-lpc2294-data-abort/1557/1 "2008-06-19T20:09:26Z")

</div>

**[mansw](https://sourceforge.net/u/mansw/)** wrote on [Thursday, June 19, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/48690745/#8318):

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…&nbsp;

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…

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 19, 2008, 8:19pm UTC](https://forums.freertos.org/t/freertos-lpc2294-data-abort/1557/2 "2008-06-19T20:19:48Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Thursday, June 19, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/48690745/#8318/a43c):

Can you step through the code to see where it aborts.&nbsp; 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).

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 20, 2008, 12:47pm UTC](https://forums.freertos.org/t/freertos-lpc2294-data-abort/1557/3 "2008-06-20T12:47:33Z")

</div>

**[mansw](https://sourceforge.net/u/mansw/)** wrote on [Friday, June 20, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/48690745/#8318/b137):

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.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 20, 2008, 2:26pm UTC](https://forums.freertos.org/t/freertos-lpc2294-data-abort/1557/4 "2008-06-20T14:26:00Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Friday, June 20, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/48690745/#8318/b137/7cb2):

Is it possible that a RAM corruption is causing a return address or something similar to send you to a bum location.&nbsp; Could be a stack overflow?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 20, 2008, 5:01pm UTC](https://forums.freertos.org/t/freertos-lpc2294-data-abort/1557/5 "2008-06-20T17:01:45Z")

</div>

**[mansw](https://sourceforge.net/u/mansw/)** wrote on [Friday, June 20, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/48690745/#8318/b137/7cb2/dd74):

I don’t know if stack amount in link script is enough, but what do you think ?&nbsp; 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:&nbsp;&nbsp;&nbsp;&nbsp; 0x200  
SVC\_STACK:&nbsp; 0x200  
IRQ\_STACK:&nbsp; 0x200  
FIQ\_STACK:&nbsp; 0x0  
UND\_STACK:&nbsp; 0x0  
ABT\_STACK:&nbsp; 0x0  
HEAP:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0

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