Quality RTOS & Embedded Software

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


serial Task

Posted by Nobody/Anonymous on January 23, 2006
am olimex LPC E2124 Board I am using.
The Webserver is realy fine working but now i neet a serial port.
Because drills for serial port are there i thought it should work. Because i use CrossStudio by Rowley i took LPC2106 GCC example. At main.c i include vAltStartComTestTasks and copied serial folder to my project. i can compile it without any error but after downloading over JTAG The Board didn´t work.
so i read i need a loopback connector für this task, so i did but still not working.
Does somebody has an idee were i canlook for a solution?

RE: serial Task

Posted by Nobody/Anonymous on January 23, 2006
Does vAltStartComTestTasks() call the serial port initialisation function?

When you say it's not working, can you be more specific. Does everything work other than the serial port test, or does everything stop working?

RE: serial Task

Posted by Nobody/Anonymous on January 24, 2006
vAltStartComTestTasks()starts the serial Port initalisation usinf comtest.c and serial.h.

Nothing is working means ths webserver stops working ( the status LED stops flashing and it is not possible to ping the webserver).
Without vAltStartComTestTasks() everything is fine.
so the problem should be somewhere there but i don´t know where.


RE: serial Task

Posted by Nobody/Anonymous on January 24, 2006
Check to see if vTaskStartScheduler() returns. If it does then there is not enough heap to create the extra tasks and the scheduler is never starting. Most likley the problem.

RE: serial Task

Posted by Nobody/Anonymous on January 24, 2006
How can i see if vTaskStartScheduler() returns?
On CrossStudio ArmSimulator it is working fine but on LC2124 not.
A way fnd out if it is working is setting many Breakpoints?
but could it be the problem because i think the demoapplication LPC2106 GCC uses the same and some more Tasks an is is ok. (i hope because i cant try)

RE: serial Task

Posted by Nobody/Anonymous on January 24, 2006
Ideally if you have a debug interface just step through the function.

If not then try setting an LED after the call to vTaskStartScheduler. vTaskStartScheduler should not return, so if this is the case the LED will not light. If it does return the code to light the LED will execute and you will be able to see.


vParTestSetLED( 0 );
for( ;; ); // to make sure it does not reset.

RE: serial Task

Posted by Nobody/Anonymous on January 27, 2006
I made ist but the LED is off so the Scheduler starts.
Deas somebody knows what charkters are writen to the Transmit Holding Register?
at serial.c "UART0_THR = cOutChar;"
but where a charakter is set to cOutChar? Shich carakter is send?

Maybe i will put some Charkters to THR and look on the PC wheather the serial is fine or not.

RE: serial Task

Posted by Richard on January 27, 2006
If you are using the minmal implementation (which hopefully you are) then the characters A to X are transmitted in order repeatedly.


[ 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.

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.


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


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