Quality RTOS & Embedded Software

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




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