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

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.

Regards.

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 ]    [ 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