serial Task

nobody wrote on Monday, 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?

nobody wrote on Monday, 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?

nobody wrote on Tuesday, 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.


nobody wrote on Tuesday, 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.

nobody wrote on Tuesday, 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)

nobody wrote on Tuesday, 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.

nobody wrote on Friday, 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.

rtel wrote on Friday, 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.