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

STR9 and IAR KickStart

Posted by Nobody/Anonymous on October 14, 2006
I’m interested in trying to get started on the STR912 and I see you have an example that uses the FreeRTOS and the web server.

Will I be able to write application code (serial port handler and some CGI stuff) using the IAR 32k eval, or will I already be out of space. I’m a hobbyist so purchasing the full up IAR workbench is out of my price range.

RE: STR9 and IAR KickStart

Posted by Richard on October 14, 2006
As downloaded the, with medium optimisation and THUMB mode, the code size is nearly 30K. This is quite near the limit but does include a lot of demo application tasks that could be replaced by your application code. I think it would be marginal.

Regards.

RE: STR9 and IAR KickStart

Posted by Nobody/Anonymous on October 15, 2006
Hi Richard,
Thanks for the quick response. I downloaded the latest IAR Workbench from
IAR, and the latest FreeRTOS. When I compile I get several fatal errors from
files that can not be located: FreeRTOS.h, heap_2.c, list.c, port.c,
portasm.s79, queue.c, tasks.c. Maybe you have a suggestion, don't have those
files, possibly they were renamed when revisions changed.

Thanks,

RE: STR9 and IAR KickStart

Posted by Richard on October 15, 2006
I just tried compiling a clean install of the V4.1.1 zip file and it built with no errors or warnings. Did you make any changes to the project file?

A little while ago somebody reported a similar problem at it was traced to incompatible IAR workbench versions. At some point the format in which project files is stored was changed. Using the 'wrong' version enabled you to open a project file but you lost all the compiler settings.

In your case the lack of FreeRTOS.h would seem to indicate that the include path had been lost, but I don't know why the .c file would not be located.

Do you have both the FreeRTOS/Demo and the FreeRTOS/Source directories installed? It is the files from the FreeRTOS/Souce directory that appear to be missing.

Which version of the IAR Workbench are you using? I just tired it in V4.40A.

Regards.

RE: STR9 and IAR KickStart

Posted by Nobody/Anonymous on October 15, 2006
Reinstalled the IAR workbench 32k limited (v4.40A) and the FreeRTOS V4.1.1 and no more error messages from the compiler.
Now I get a link error: Too much object code produced (more than 0x8000) for this package, are there any defines that should be removed to make the code smaller?
thanks again.

RE: STR9 and IAR KickStart

Posted by Nobody/Anonymous on October 15, 2006
When I build the project I get 30K so it should build with the 32K limited kickstart version. I also get 6K of const data, so maybe this is why? Where does this const data come from?

You could try removing some of the standard demo files. For example, to remove flop.c, remove the file from the project, then you should get two link errors from main() where the flop tasks are checked (vStartMathTasks()) and tested (xAreMathsTaskStillRunning()). Removing these two functions calls also will allow it to build and function again.

RE: STR9 and IAR KickStart

Posted by Richard on October 15, 2006
The const data will be the html pages which are built into the binary image.

Regards.

RE: STR9 and IAR KickStart

Posted by Nobody/Anonymous on October 15, 2006
can the html pages be loaded apart from the executable this would free up space for program development? are there any other demo files that could be removed?
thx

RE: STR9 and IAR KickStart

Posted by Nobody/Anonymous on October 15, 2006
P.S. removed flop.c from the project and I still get the message too much object code...

RE: STR9 and IAR KickStart

Posted by Nobody/Anonymous on October 15, 2006
You can also remove blockq, comtest, dynamic, integer, pollq, semtest (all .c). These are all standard demo tasks. You will have to remove the functions calls to create the tasks and the function calls that check the tasks from main.c also.

In addition you could remove the flash tasks (they just flash leds'), partest.c (just LED IO) and LCD.c and the creation of the check task in main. This would leave you with just the TCP/IP task.

RE: STR9 and IAR KickStart

Posted by Nobody/Anonymous on October 16, 2006
Let's go back to the orignal question. I was under the impression the code should compile as is using thumb mode to 30K, what's the story?

RE: STR9 and IAR KickStart

Posted by Richard on October 16, 2006
Looks like my original reply was a bit off the mark. I just looked at the code size as the executable size of 29K - forgetting to add in the const data (html pages). Sorry for that.

As pointed out in this thread a lot of the code are just standard demo tasks, not relating to the WEB server, so can be removed. This might not free up enough for your app though.

Regards.

RE: STR9 and IAR KickStart

Posted by Nobody/Anonymous on October 16, 2006
Thanks for the update. Is there a port to Rowley crossworks, it's going to be a bit pricey to get buy the full up IAR tools set.
thanks everyone for the comments...


[ 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