# FreeRTOS + LPC2294 problem

**URL:** <https://forums.freertos.org/t/freertos-lpc2294-problem/2394>\
**Category:** Kernel\
**Created:** [June 19, 2008, 4:45pm UTC](https://forums.freertos.org/t/freertos-lpc2294-problem/2394 "2008-06-19T16:45:29Z")\
**Posts on this page:** 3\
**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, 4:45pm UTC](https://forums.freertos.org/t/freertos-lpc2294-problem/2394/1 "2008-06-19T16:45:29Z")

</div>

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

Hi all,

I´ve compilled FreeRTOS version 5.0.2 with IAR Workbench, following the same example for LPC2000 port, all works fine with the flash led example but when I add more code files to the project, even without using their functions, the program doesn’t run anymore… I’ve noticed that when I add more heap to configTOTAL\_HEAP\_SIZE in FreeRTOSConfig.h, even using less than memory limit, everything stops working too.

Could you give any possible solution to this issue?

Thank you.

---

<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, 5:36pm UTC](https://forums.freertos.org/t/freertos-lpc2294-problem/2394/2 "2008-06-19T17:36:23Z")

</div>

**[woops\_](https://sourceforge.net/u/woops_/)** wrote on [Thursday, June 19, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/6ba5073b/#23a2/ca35):

Did you remember to change linker script from that used to base your port to be correct for LPC2294?

Does the call to vTaskStartScheduler() return.&nbsp; If it does you are out of heap.

---

<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, 6:13pm UTC](https://forums.freertos.org/t/freertos-lpc2294-problem/2394/3 "2008-06-19T18:13:42Z")

</div>

**[mansw](https://sourceforge.net/u/mansw/)** wrote on [Thursday, June 19, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/6ba5073b/#23a2/dd8d):

Yes, 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,&nbsp; the board led stops flashing… it seems that it’s branching to a wrong address…

When I change configTOTAL\_HEAP\_SIZE&nbsp; to 14196 or to 14204 it stops working, and when I change its value to 14200 works fine!!! Very strange!!!
