Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Building a managed project

Posted 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 project

Posted 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 project

Posted 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 project

Posted 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.


RE: Building a managed project

Posted 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.

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers





STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner