Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

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