FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [April 2010 Threads] LPC23xx port with Keil/RV compilerPosted by Riccardo Cusatelli on April 13, 2010 I'm trying to port FreeRTOS to the LPC2388 (it should be compatible with all others LPC23xx). I'm using the Keil uVision 4 and the KEIL MCB2388 board.
I started from the demo for the LPC2129 because I found harder to import the GCC project. However I'm in trouble: the processor goes in "Abort Mode" after 2 seconds and I don't know why..
Has somebody already done this port?
Thanks, Riccardo Cusatelli
RE: LPC23xx port with Keil/RV compilerPosted by Richard on April 13, 2010 I don't think this will be the cause of your problem, and I assume you know already as it runs for a few seconds, but the LPC23xx has a different timer set to the LPC2129. If you compare the two LPC2xxx ports in the Source/Portable/GCC directory you will see the two differences.
How far is the code getting? Is the scheduler actually starting to run your task code?
Regards.
RE: LPC23xx port with Keil/RV compilerPosted by Riccardo Cusatelli on April 13, 2010 Thanks for reply. The problem was a task which wasn't a endless cycle.. D'OH!! Fixed that, now freeRtos works perfectly! Tomorrow I'm testing it better. Can I put the port in the "interactive" section when I'll finish? It could be useful for other people.
Now I've a question: Is correct that if a thread "return"s, the system crash?
Regards
RE: LPC23xx port with Keil/RV compilerPosted by Richard on April 13, 2010 “Can I put the port in the "interactive" section when I'll finish? It could be useful for other people.” Yes - please do. “Now I've a question: Is correct that if a thread "return"s, the system crash?” Yes that is the expected behaviour. A task must never be allowed to run off the end of the function that implements it. If you want a task to exit its function then you must include a call to vTaskDelete( NULL ); before the closing bracket. Having tasks automatically be deleted if they run off there function is possible, but the implementation would have to be port specific, and increase the code size for no good reason. So its preferred just to use the existing and portable vTaskDelete() function explicitly. Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|