In the C:\FreeRTOS\Demo tree I only see a LPC2368 port for Eclipse (ARM7_LPC2368_Eclipse) and Rowley (ARM7_LPC2368_Rowley). Has anyone already ported this demo projects for use with Keil uVision3/ARM RealView/? The target board is MCB2300 with the LPC2368.
I don’t have specific code for the 2368, but I am in possession of some LPC projects that use the Keil compiler. I you send me an email to r _dot_ barry [at] freertos.org I can send something over that might make a good starting point for you. Don’ use a SourceForge email address as attachments will get stripped.
Thanks I’ll send you an email for the examples
About specific 2368 example; The Eclipse demo (ARM7_LPC2368_Eclipse) contains a lot of Keil hacking (for example in emac.c “Keil: Module modified for use with Philips LPC2378 EMAC Ethernet controller”). So I was/am suprised they didn’t deliver a port for their own good old Keil compiler…
I got a ARM7_LPC2138_Keil_RVD example project from Barry. The project builds with Keil uVision3 and the RealView compiler (with Device LPC2368 selected). From my point of view now I just can transfer the demo files from ARM7_LPC2368_Eclipse (FreeRTOS\Demo\ARM7_LPC2368_Eclipse\RTOSDemo) to my new created ARM7_LPC2368_Keil_RVD. The only problem seems the port from boot.s (ARM7_LPC2138_Keil_RVD) to Startup.s (ARM7_LPC2368_Keil_RVD). Is there an easy way to port assembler files from gnu to realview?
Are more people interested in this ARM7_LPC2368_Keil_RVD port?
Yes, I’m interesting in ARM7_LPC2368_Keil_RVD port… Previously I worked with IAR and ported freeRTOS for LPC2468 (based on LPC2129 - it was not difficult) But now it’s problem for me to modify any existing projects to Keil_RVD environment… Could you please send me some examples of project files for Keil?
See above messages; I got some Keil example code, but I didn’t had time to port the “FreeRTOS\Demo\ARM7_LPC2368_Eclipse\RTOSDemo” project (for the time being I work with Eclipse/GNU). Next to the examples from Barry, the InsidersGuide LPC2300_book_v2_prn.pdf (http://www.hitex.co.uk/arm/index.html) contains a FreeRTOS port to LPC2300. I already got the example files for this document, but the FreeRTOS part is missing (only Keil RTX examples) I’m waiting for a mail from Hitex about this. May be we can work together on this port action and add this to the FreeRTOS tree… For a start, send me an email at roland [dot] beuker [at] xs4all [dot] nl and I send you the example files from Barry.
The examples from the document LPC2300_book_v2_prn.pdf (The Insider’s Guide To The NXP LPC2300/2400 Based Microcontrollers)are hard to get/find… I was one the phone with Hitex United Kingdom, Hitex Germany and Hitex USA but I’m still looking for the LPC2300 code examples… Doen anyone have this code exmamples (or where to get these)?
Hello Tiago Prado Lone,
Next week I’ll make a start with the LPC2368 port for Keil RealView. Did you already started with a port? Distribution FreeRTOSV5.0.3 contains an unsupported demo for the LPC2138;
Maybe this is a good starting point…
Tiago Prado Lone wrote:
> I found you e-mail in one of your posts in FreeRTOS support forum. I saw that you was working in a port of FreeRTOS to LPC2368, using Keil RealView compiler.
> I am interested in this port too. Have you had some progress in it? If you need, I can try to help you in this port.
> Thank you
> Tiago Prado Lone
Hello Roland Beuker,
Thank you for your e-mail. I have used exactly this demo as start point to make my port. It is working now, I have modified just a little the original demo and LPC2368 startup code from Keil. I am sending you the port files as attach. If you need, I can send you a working project. This port have just one “problem”, the macros “portSAVE_CONTEXT” and “portRESTORE_CONTEXT” are implemented in assembly and can be used just in assembly files, so to call an interruption that can cause a context switch, it is necessary to create a assembly wrapper. As a example, I am sending you the file serialISRE.s, from the original demo.
I am not using these macros in my project now, and it works the way it was implemented, but I think that I will try to modify it when I need to use them. I don’t now yet if it can be done, the author of the demo made it this way because the RealView compiler have some restrictions in the assembly code that can be used inline in the C code.
One last commentary about the port, I didn´t test it in THUMB mode.
I hope that this files help you save some time, and if you find some bug or have some idea of how to implement "portSAVE_CONTEXT" and "portRESTORE_CONTEXT" as inline assembly, please send me a e-mail.
Tiago Prado Lone
Hello Tiago Prado Lone,
Thanks for the example! And yes, I’m interested in the working project. Next week I’ll give it a try, and of course you will be informed about bugs and updates.
I am new with freeRTOS.In the C:\FreeRTOS\Demo tree I only see a LPC2368 port for Eclipse (ARM7_LPC2368_Eclipse) and Rowley (ARM7_LPC2368_Rowley). Has anyone already ported this demo projects for use with Keil uVision3/ARM RealView/? The target board is MCB2300 with the LPC2368.please help me my mail adress is xxxx@xxxx
You will find some lpc21138 Keil code here