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

DEMO in Rowley not compiling?

Posted by Ken Mosher on September 16, 2009
OK, obviously I'm missing something basic here, but loaded the LPC2368 FreeRTOS demo into Rowley v2.0 with the LPC2000 package, and Keil MCB2300 package (our eval board).

We are using v2.0.1 Rowley with the latest FreeRTOS (and demos).

First, I had to add the path to the FreeRTOS include directory to the configuration options so it didn't freak out about all the header files. I would have thought that would have been in the Demo project? Did I force something that I shouldn't have?

Anyway, it is now its down to just a couple of errors left, but we can't find the missing files/folders?

One is #include < targets/LPC2368.h> in main.c "No such file or directory" ... and indeed, there isn't anywhere on my disk

Another is stdio.h is not found

... and obviously a bunch of cascade errors like EOF undefined, NULL undefined, size_t undefined, etc.

SO ... where are those in the demo? FreeRTOS? Or is this something that should be in the Rowley stuff and we're missing a package?

RE: DEMO in Rowley not compiling?

Posted by Richard on September 16, 2009
The 2368 Rowley demo was created with Rowley V1.7 and there are some differences with Rowley V2.

First off it does sound like you are missing some of the LPC2000 packages that you have to install separately to the main CrossWorks IDE. Select "Package Manager" from the CrossWorks "Tools" menu and just double check that the LPC2000 stuff is installed.

Second, if you have the package installed then you should have an LPC2368.h file, but V2 stores it in a completely different place. Look under C:\Documents and Settings\[user name]\Local Settings\Application Data\Rowley Associates Limited\CrossWorks for ARM\packages\include\targets - this is going to have to be in the path. There is a path variable to do this - I forget exactly what it is buts something like $TargetsDir$. I guess there will be something similar with stdio.h.

One fast way might to be to create a new project for the LPC2368, then look at the project options under include directories and copy any settings from the new (temporary) project into the real FreeRTOS project.

I am successfully using V2 with FreeRTOS, but only for project that were created in V2, I have not tried converting old projects to work with V2.

A couple of other hints. By default V2 has the "enforce ANSI compliance" compiler option turned on. To compile you will either have to turn this off, or change any occurrences of "asm volatile" to "__asm volatile". Also the version of GCC used can struggle with some of the ISR functions. The ISRs have an asm wrapper that calls a C function - make sure the C function has the noinline attribute set, and better still call the C function from asm code rather than C code.

Regards,
Richard.

RE: DEMO in Rowley not compiling?

Posted by Ken Mosher on September 16, 2009
First rate answer! THANK YOU! Working through it now to see if we have any other "newbie" questions!

BTW, we're using the Mac OS version, so the paths are a little different, but it was enough of a clue to find that we DID have the LPC2368.h in the /username/Library directory (which is "hidden" from Apple's Spotlight search ... which means we didn't see it).

Thanks again!


[ 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