Quality RTOS & Embedded Software

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




Loading

SAM4 USART interrupt code example

Posted by dvukovic on April 22, 2013
Is there a sample code for using USARTx with interrupts in FreeRTOS ?

Thank you

RE: SAM4 USART interrupt code example

Posted by Richard on April 22, 2013
Yes - there are numerous examples in the Atmel ASF (Atmel Software Framework). Look of "FreeRTOS Peripheral Control" examples in the ASF download (http://asf.atmel.com). See http://www.atmel.com/images/doc42049.pdf

Regards.

RE: SAM4 USART interrupt code example

Posted by Donald Vukovic on April 22, 2013
I am sorry, but I have looked at that for a week now and nothing I do works.

My code is stuck repeating the same USART1_handler() over and over again.

I tried to follow the SYS_TICK interrupt as a model, but that did not work.

I would guess that I am not actually clearing the USART1 interrupt, but I just do not see why I can not do it.

As soon as I enable that interrupt, it starts and does not end.

If pasting the code here would help, I will. ( I know its frowned upon)

Thank you (again)

RE: SAM4 USART interrupt code example

Posted by MEdwards on April 23, 2013
I don't think the example uses USART1_handler() because it uses the DMA interrupts instead. I could be wrong though.


[ 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