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] [September 2007 Threads] Building a managed projectPosted by grumpy on September 18, 2007 Hi everyone I'm just working around with the web server demo with eclipse using the mcb2300 board. Now I'm strugling trying to build a managed project instead of using the makefile. Also, I won't use the thumb mode. At the moment i can build the demo as a managed project, I can download it to the lpc2368, but it doesn't run. It seems that the system crashes after the scheduler started. Could it be that something went wrong with my project properties?
RE: Building a managed projectPosted by Dave on September 18, 2007 What changes did you make to switch from Thumb to Arm modes? You have to change the compile time options, and ensure THUMB_INTERWORK is not defined (remove the -DTHUMB_INTERWORK from the command line.
Are you calling main from Supervisor mode?
RE: Building a managed projectPosted by grumpy on September 19, 2007 THUMB_INTERWORK isn't defined. I removed it from the project properties. I don't know if I understand that right, but in which mode I call main is defined in the boot.s file. This file I didn't chance at all.
RE: Building a managed projectPosted by Richard on September 19, 2007 Yes - if you have not changed the startup code then you should be still calling main() from Supervisor mode (on the assumption you are basing your application on the demo application).
To run in ARM mode you should remove the THUMB_INTERWORK definition (as you have), and remove the -mthumb-interwork and -mthumb options from the makefile.
If you look at the LPC2106/GCC demo directory you will see 4 batch files that are used to compile for ARM/THUMB/ROM/RAM builds. These batch files setup some environment variables. Look in the source code and makefile to see how the environment variables alter the build.
Regards.
RE: Building a managed projectPosted by grumpy on September 27, 2007 Thanks for all the help. It looks like my problem was a completly different. My project settings were ok, but I didn't check the errata sheet. When I changed the MAM from mode 2 to 0 the freeRTOS demo works well on my board.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|