Quality RTOS & Embedded Software

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




Loading

Unable take input from USART - FreeRTOS - AT3

Posted by https://www.google.com/accounts on April 6, 2011
Hi Geeks,

Just trying my hands on FreeRTOS. Following are my setup -

Micro-controller - AT32UC3A0512
Board - EVK1105
Using FreeRTOS
Environment - AVR Studio 5 with ASF latest 2.3 framework
I just created a new project from Example project FreeRTOS. I am checking the USART currently. When run the example project, I am able to transmit characters from my development board to PC through USART but when I type or input something on my PC usart terminal program(using Putty), I am not able to see anything. Can anybody suggest what may be wrong? Or do I need to change the code in the current example code to get input and display on my terminal program for USART?

Thanks...

RE: Unable take input from USART - FreeRTOS - AT3

Posted by Richard on April 6, 2011
Presumably that is example code you got from Atmel?

Are the UART Rx interrupts enabled? Is there an interrupt handler installed? Or are you just polling the UART?

Regards.

RE: Unable take input from USART - FreeRTOS - AT3

Posted by https://www.google.com/accounts on April 7, 2011
Actually I am not able to understand the code itself. I am really sorry for that. If someone can help I would be glad.
I am just using the FreeRTOS example. As I saw the code, In the main function we are calling calling a fuction
vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );

and it creates two tasks for TX and RX from the UART in comtest.c. Now TX works fine for me. When I look at the
vComRxTask
it uses the function
xSerialGetChar( xPort, &cByteRxed, comRX_BLOCK_TIME )
which is a blocking function call. In the demo there is instruction that I have to loopback the TX and RX pin of UART to get result. But my question is if I don't use loopback and just want to get some text from the UART terminal on my PC (Putty software) should I able to do it? I am changed the code in
static portTASK_FUNCTION( vComRxTask, pvParameters )
to display the character after I receive it from the UART terminal of PC. Please somebody give some solution...

RE: Unable take input from USART - FreeRTOS - AT3

Posted by Dave on April 7, 2011
When you connect the UART to putty, can you see the characters being transmitted from the hardware to putty? If not then it could simply be a cabling problem, or a baud rate problem. Loopback tests will work even if the baud rate is not set correctly because both the receive and transmit will be using the same (incorrect) baud.


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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