Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

LPC2129 GCC

Posted by Ryan Butler on September 21, 2007
Hello,

I used the ARM7_LPC2106_GCC demo as my basis for a project using an LPC2129. I changed the linker file to match the available ram/flash that the 2129 has available, got rid of most of the tasks except the comport test and the led test and verified it worked as expected (4.4.0 but then later moved to 4.5.0).

I modified the serial port part of the demo to support both UART0 and UART1 on the 2129 and verified all worked well by putting an LED toggle debug in the ISR for UART1 and running the comtest demo on UART0, all worked well, LED toggles on reception of data on UART1 and the comtest tasks executed as they always have.

I then commented out the comtest and LED demo parts and inserted my own tasks and this is where things got kind of weird. My tasks don't seem to run. I did some debugging by printing to UART0 and LED toggles (don't have enough ram unfortunately in the 2129 to debug in RAM using eclipse and openocd I don't think) and I can see that both of my tasks (UART0 tx and rx tasks) are getting added to the scheduler list. I also put a debug printout and led toggle after the call in main.c to start the scheduler to see if that was failing and dropping me back into main, and it is not. So it appears that the tasks are getting added, the scheduler started and the tasks are never getting run.

I commented out all the code in my task functions so it's just an LED toggle (first item) then a for loop that does nothing and I still get no action from the tasks, with nothing inside the task functions, I wouldn't think it could be a stack overflow issue.

I then went and added an LED toggle to the idle task in the FreeRTOS part of the sources and that is not causing a LED state change either, so it doesn't appear that the idle task is even running.

However, during all of this, if I do connect anything to uart0 or 1, interrupts are getting processed still as the led's flash as data comes in. If I re-enable the tasks from comtest.c, all the uart0 stuff works as expected so I don't think it has anything to do with the serial modifications. I am not running any uart1 tasks at this time.

I used the comtest.c example (in the Minimal part) as the base for my tasks file and how I'm starting them looks identical.

Does anyone have any suggestions of what this sounds like is happening or what other "in code" tests I could do to try to narrow it down?

Thanks


RE: LPC2129 GCC

Posted by Richard on September 21, 2007
Hmm, strange. It seems you have gone through a logical sequence to track the problem down. One thing though - I have been trying Eclipse and OpenOCD recently, and have been using break points even when running from flash. Can you not do this? (see the Eclipse/LPC2368 demo on the FreeRTOS.org site).

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner