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

Beginner LPC2138 Port needs help

Posted by Nobody/Anonymous on November 15, 2006
Hi everyone. I am a beginner and hope to have some help here to create LPC2138 port using Keil IDE with RealView Compiler.

I have created a new project and created 4 groups of files.

Startup : Startup.s
Source : task.c, queue.c, list.c
Portable : port.c , portISR.c (from 'FreeRTOS\Source\portable\Keil\ARM7' dir)
Demo Files : main.c (from 'FreeRTOS\Demo\ARM7_LPC2129_Keil' dir)

My list of include paths are as below :
1)..\FreeRTOS\Source\include;
2)..\FreeRTOS\Demo\ARM7_LPC2129_Keil

Then I clicked Build , resulting in lots of error messages.
Most repeated are
..\FreeRTOS\Source\include\portable.h(181): error: #20: identifier "portSTACK_TYPE" is undefined
..\FreeRTOS\Source\include\portable.h(194): error: #20: identifier "portBASE_TYPE" is undefined

I thought portmacro.h not included so I edited portable.h uglily as below.

#ifdef KEIL_ARM7
#endif
#include "..\..\Source\portable\Keil\ARM7\portmacro.h"

I did this because I didnt know where to define KEIL_ARM7 , but at least portmacro.h then included.

But then, portmacro.h generated too many errors, almost at every inline asm as below :

..\FreeRTOS\Source\include\..\..\Source\portable\Keil\ARM7\portmacro.h(91): error: #52: expected a macro parameter name

..\FreeRTOS\Source\include\..\..\Source\portable\Keil\ARM7\portmacro.h(110): error: #40: expected an identifier

Sorry for long post, but I want to be detail. My question now is , what do I do? I heard FreeRTOS easy to port, but I have worked several days at this. Is there any trick that I dont know?

Thanks for listening.

RE: Beginner LPC2138 Port needs help

Posted by Nobody/Anonymous on November 15, 2006
Unfortunately I suspect the Keil compiler (as was shipped with uVision) and the ARM compiler (now shipped with uVision) use different syntax.

When can we expect a uVision port Richard?


[ 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