FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2007 Threads] serial driver for ARM9_STR912Posted by jhuber on 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 ); } }
RE: serial driver for ARM9_STR912Posted by Richard on 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.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|