[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] reading data from UART0

From: Felix Ruess
Subject: Re: [Paparazzi-devel] reading data from UART0
Date: Tue, 13 Nov 2012 19:24:55 +0100

Hi Autumn,

did you write your own logger, or what firmware are you using? Which paparazzi version?
It's a bit hard to answer out of context of the configuration you are using...

Also make sure that the VIC slot is not used twice somehow (defaults to slot 5 in arch/lpc21/mcu_periph/uart_arch.c:154).
If you want to use a different one, you could e.g. add to your firmware section: <define name="UART0_VIC_SLOT" value="4"/>
The arch/lpc21/vic_slots_x.txt lists some of the used slots for the fixedwing and rotorcraft firmwares.

Maybe you can post your config?

Cheers, Felix

On Sun, Nov 4, 2012 at 4:54 PM, Zhang Qiuchen <address@hidden> wrote:
I guess I can summarize my question as follow:
1) what exactly triggers the uart0_ISR();
2) after initialize uart0 and enable interrrupts on mcu, what else do i need to do to ensure the data passing through the pin (or the download port on tiny) will trigger the interrupt routine?

From: paparazzi-devel-bounces+zhangq=address@hidden [paparazzi-devel-bounces+zhangq=address@hidden] on behalf of Zhang  Qiuchen [address@hidden]
Sent: Sunday, November 04, 2012 4:24 PM
To: address@hidden
Subject: Re: [Paparazzi-devel] reading data from UART0

Hello everyone~

My name is Autumn and I'm working on storing the telemetry data into a SD card. The SD card is connected on a TWOG board which is connected to the main autopilot board (Tiny) via the serial port.  So basically the connections are like:

Tiny serial port (UART1) ---- TWOG download port (UART0) ---- TWOG serial port (UART1) ---- Xbee modem

So I want to read in the data passing through the UART0 pin on the TWOG. I made sure that uart0_init() is called,and interrupts are enabled (mcu_int_enable ();). However, it seems that the uart0_ISR() is never called, because I checked the input buffer index (uart0_rx_insert_idx), and it is never incremented.

I thought as soon as uart0_init is called and interrupt is enabled, any data passing through the pin will call up uart0_ISR(). Does anybody know what is wrong with the logic? and how should I do this properly? Please contact me if more clarification of the situation is needed!

Thank you sooo much  for you time!!


Paparazzi-devel mailing list

Paparazzi-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]