Quality RTOS & Embedded Software

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




Loading

FreeRTOS and USART with ATmega32

Posted by Mike M on November 28, 2011
Hello,
I am using an ATmega32. I have a serial lcd that works great outside of freeRTOS, but when I re-configure the code and place it into freeRTOS, it does not work. After some research online I think I discovered that I needed to add freeRTOS_serial.c and freeRTOS_serial.h in order to use the USART capabilities of my atmega32. My problem is that after adding these files, it still will not work. I cant find any info online about using USART with freeRTOS. I just dont understand if I have to change anything in the freeRTOS_serial.c file or not? Can anyone de-mystify using USART within freeRTOS for me?

I know that adding the files is needed because after running the program with the added files, lots of ascii gibberish was seen rushing across the screen, where before there was nothing. Could it be a baud rate issue?

RE: FreeRTOS and USART with ATmega32

Posted by Richard on November 29, 2011
I don't know what FreeRTOS_serial.c and FreeRTOS_serial.h came from. There are no files in the FreeRTOS demo called that. There are demo serial port files in FreeRTOS, but they are not designed to be efficient, just test the port by using queues in an interrupt and generating as high an interrupt load as possible.

As long as you write your interrupt service routines in compliance with the instructions given on the documentation page for the port you are using, there is very little mutual reliance on FreeRTOS and how you write you UART drivers. FreeRTOS provides a means for the ISR to communicate and synchronize with tasks, and a means for context switches to happen in ISRs (if an ISR causes a task to unblock, and the task has a priority higher than the currently running task) - and (currently) not much else.

Regards.


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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists