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


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