Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

serial driver for ARM9_STR912

Posted 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_STR912

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


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner