# serial driver for ARM9\_STR912

**URL:** <https://forums.freertos.org/t/serial-driver-for-arm9-str912/1411>\
**Category:** Kernel\
**Created:** [November 15, 2007, 5:37pm UTC](https://forums.freertos.org/t/serial-driver-for-arm9-str912/1411 "2007-11-15T17:37:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 15, 2007, 5:37pm UTC](https://forums.freertos.org/t/serial-driver-for-arm9-str912/1411/1 "2007-11-15T17:37:20Z")

</div>

**[j\_huber](https://sourceforge.net/u/j_huber/)** wrote on [Thursday, November 15, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/407e871d/#2059):

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 );  
}  
}

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [November 18, 2007, 11:14am UTC](https://forums.freertos.org/t/serial-driver-for-arm9-str912/1411/2 "2007-11-18T11:14:45Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, November 18, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/407e871d/#2059/f439):

Are you using the serial driver provided as part of the demo?&nbsp; 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.

Regards.
