Quality RTOS & Embedded Software

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


Loading

AT91SAM7 and DBGU Receive Interrupt

Posted by saiberion on February 5, 2007
Hi,

I want to use the Debug Unit as a menu based debug shell and I have some problems with receiving characters and passing them to the corresponding task.
I know that DBGU and PIT (for tick generating) are sharing the same interrupt and I can toggle a led on character receive but more interesting for me is forwarding the received character preferred with a queue. But as soon as I call a normal function (not inline as for now) the systems seems to hang up.

Now my real questions:
- Why is contect saving and restoring used for the tick increment instead of isr enter and exit
- and how can I do function calls from this system interrupt?

RE: AT91SAM7 and DBGU Receive Interrupt

Posted by saiberion on February 6, 2007
Meanwhile I have it partially running. Receiving characters work and the queue mechanism, too.

But now after porting the menu based debug code into freertos it hangs again and I found out that the last working command is a pop where I get back 0xaaaaaaaa (Top of Stack after some searching).
How can I determine where a push is missed/pop is too much?


[ 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