FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [April 2007 Threads] 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|