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

Weird Problem (Codesize?)

Posted by Nobody/Anonymous on April 23, 2007
Hi!

I use the MCB2300FreeRTOSlwIP Port, removed the whole IP and Ethernet stuff.
Compiler is GCC, I flash with ulink2 and uVision3.

So this works fine.

I added some functions and code in main.c, and at some point - nothing is running. When I remove some lines (just function implementation, i do not even call it) it works. Then I add some other code anywhere in main.c and I have the same problem again. What could that be?


RE: Weird Problem (Codesize?)

Posted by Nobody/Anonymous on April 23, 2007
Seems unlikely that it is just code size if you removed a whole bunch of TCP/IP stuff first which presumably took up a lot of space.

Are you actually using an LPC23xx device or did you just base the project on that demo? If using a different device then maybe there is a mistake in the linker configuration?

RE: Weird Problem (Codesize?)

Posted by Nobody/Anonymous on April 24, 2007
I use a MCB2300, but you sya it, at my board theres a LPC2368, the Port says LPC2378 - but I dont't think there is a big difference..

I'm getting nuts!
Just I remove 2 lines of code (in a function I never call) and FreeRTOS stopped to work.
After i re-added these 2 lines, it worked again. And these were really stupid..

Here's a link to the port I use: http://www.sirsydom.de/permalinks/MCB2300FreeRTOSlwIP.rar

SirSydom

RE: Weird Problem (Codesize?)

Posted by Nobody/Anonymous on April 24, 2007
Is this is the file from the LPC2000 Yahoo group files area? If so then I managed to use it ok, but lwIP is implemented in its stand along configuration, for use without an RTOS. It does this by having all the code in a single task, and running the task at the same priority as the other demo task. I found this was as downloaded, but the WEB server was very flakey when adding in extra tasks etc. You need to convert the lwIP port to use the proper RTOS method.

I don't think this is the same as your problem though as you say the code you are adding is not ever called anyway.

Have you tried the official uIP demo from the FreeRTOS site?

RE: Weird Problem (Codesize?)

Posted by Nobody/Anonymous on April 24, 2007
As I said: I don not even use the IwIP stuff, I removed it.
I just need a port for the LPC2368 for GCC, with Makefiles, Startupcode and so on. The offical Port is for Rowley and I didn't manage to transfer this to use with GCC.

My problem is that im to stupid to do the dirty work with Makefiles and whatever I need, I have no clue at all. Maybe I should continue programming .Net. :(

RE: Weird Problem (Codesize?)

Posted by Nobody/Anonymous on April 24, 2007
Have you looked at the lwIP demo for the SAM7? http://www.freertos.org/portsam7xlwIP.html there is a rowley project and GCC makefile for the same code. Rowley is just an IDE for GCC. Maybe you could use this for your project? You would need different startup code and a different linker script.


[ 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