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

Modifing SAM7x256_Eclipse Demo for a SAM7x128

Posted by Billy Rafferty on April 10, 2008
Hi there,

I'm trying to port the SAM7X256_Eclipse example to a SAM7X128 part. However I am running into difficulties. In the original code the hash table is set to 24K. If I leave it at this the application takes up to much ram to fit. 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

It does not seem to be in the Demo folder.

Many thanks,

Billy

RE: Modifing SAM7x256_Eclipse Demo for a SAM7

Posted by Patrick DEFLANDRE on April 11, 2008
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

RE: Modifing SAM7x256_Eclipse Demo for a SAM7

Posted by Dave on April 11, 2008
Very good answer.

For more information.

http://www.freertos.org/FAQHelp.html FAQ number 2.
http://www.freertos.org/a00111.html

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


RE: Modifing SAM7x256_Eclipse Demo for a SAM7x128

Posted by Billy Rafferty on April 11, 2008
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


[ 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