serial Task

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?

serial Task

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?

serial Task

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

serial Task

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.

serial Task

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)

serial Task

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. Try: vTaskStartScheduler(); vParTestSetLED( 0 ); for( ;; ); // to make sure it does not reset.

serial Task

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.

serial Task

If you are using the minmal implementation (which hopefully you are) then the characters A to X are transmitted in order repeatedly. Regards.