# Modifing SAM7x256\_Eclipse Demo for a SAM7x128

**URL:** <https://forums.freertos.org/t/modifing-sam7x256-eclipse-demo-for-a-sam7x128/5684>\
**Category:** Kernel\
**Created:** [April 10, 2008, 9:00pm UTC](https://forums.freertos.org/t/modifing-sam7x256-eclipse-demo-for-a-sam7x128/5684 "2008-04-10T21:00:11Z")\
**Posts on this page:** 4\
**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:** [April 10, 2008, 9:00pm UTC](https://forums.freertos.org/t/modifing-sam7x256-eclipse-demo-for-a-sam7x128/5684/1 "2008-04-10T21:00:11Z")

</div>

**[billy\_rafferty](https://sourceforge.net/u/billy_rafferty/)** wrote on [Thursday, April 10, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/fdf3c483/#cef5):

Hi there,

I’m trying to port the SAM7X256\_Eclipse example to a SAM7X128 part.&nbsp; However I am running into difficulties.&nbsp; In the original code the hash table is set to 24K.&nbsp; If I leave it at this the application takes up to much ram to fit.&nbsp; I can lower it but if I push it below 20K the program stops working.

I’ve been unable to figure out what is using so much memory.

I was wondering if anyone can suggest how I might get the example to work in 32K of RAM in the SAM7x128.

Also I was wondering where you can find the demo for the GCC tools

[http://www.freertos.org/portsam7xlwIP.html](http://www.freertos.org/portsam7xlwIP.html)

It does not seem to be in the Demo folder.

Many thanks,

Billy

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 11, 2008, 6:39am UTC](https://forums.freertos.org/t/modifing-sam7x256-eclipse-demo-for-a-sam7x128/5684/2 "2008-04-11T06:39:15Z")

</div>

**[pdeflandre](https://sourceforge.net/u/pdeflandre/)** wrote on [Friday, April 11, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/fdf3c483/#cef5/10dc):

Hello Billy,

You should probably don’t run all the task on the demo if you want to reduce the heap space to less than 22 K.

For not running a task, simply comment it in the main function, but don’t forget to comment the corresponding check in the prvCheckOtherTasksAreStillRunning function.

You can also don’t use the lwip stack by removing the vlwIPInit and vBasicWEBServer Task.

Take care if you remove the vUSBCDCTask task, as it use an idle hook. If you want to remove this task, you will have to change configUSE\_IDLE\_HOOK to 0 in FreeRTOSConfig.h

PatDef

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 11, 2008, 7:22am UTC](https://forums.freertos.org/t/modifing-sam7x256-eclipse-demo-for-a-sam7x128/5684/3 "2008-04-11T07:22:59Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Friday, April 11, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/fdf3c483/#cef5/10dc/8ec3):

Very good answer.

For more information.

[http://www.freertos.org/FAQHelp.html](http://www.freertos.org/FAQHelp.html) FAQ number 2.  
[http://www.freertos.org/a00111.html](http://www.freertos.org/a00111.html)

and you answered your own last question by providing the link [http://www.freertos.org/portsam7xlwIP.html](http://www.freertos.org/portsam7xlwIP.html) - look at the "Source Code Organization" section of this page and it tells you where the code is.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 11, 2008, 4:08pm UTC](https://forums.freertos.org/t/modifing-sam7x256-eclipse-demo-for-a-sam7x128/5684/4 "2008-04-11T16:08:43Z")

</div>

**[billy\_rafferty](https://sourceforge.net/u/billy_rafferty/)** wrote on [Friday, April 11, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/fdf3c483/#cef5/a698):

Great news,

As per your advice I removed some tasks and it all works in s smaller Heap :o)

Thanks, you both have saved me so much time and my hair.

Cheers,

Billy
