serial driver for ARM9_STR912

j_huber wrote on Thursday, November 15, 2007:

I have been trying to create a simple serial driver for the ARM9_STR912. It is supposed to take a single char from serial input and send it back. I can have found that I can send from the ARM to hyperterminal but I can not seem to get the program to receive any data from hyperterminal. Does anybody have any suggestions for how to fix this. The driver code is below.

xTaskCreate( prvRunSerial, "SER", configMINIMAL_STACK_SIZE, NULL, mainMSG_TASK_PRIORITY, NULL );

static void prvRunSerial(void)
xComPortHandle portHandle;
signed portCHAR inputChar;
portCHAR testString[1];

portHandle = xSerialPortInitMinimal(9600, 1200);

for( ;; ){
if(xSerialGetChar(portHandle, &inputChar, 300)){
testString[0] = inputChar;
vSerialPutString(portHandle, &testString, 1);
vTaskDelay( mainLCD_DELAY );

rtel wrote on Sunday, November 18, 2007:

Are you using the serial driver provided as part of the demo?  If the comtest tasks are working in the demo (which they should be) then I suggest using the comtest.c file as a template for your application code.