Discussion:
[Shimmer-users] DMA and UART in Shimmer AnEx
JOSUE PAGAN ORTIZ
2014-03-20 14:20:51 UTC
Permalink
Hi,
I'm using the external expansor to read data from the UART0. Data baud rate
is 375KBytes per second, so I need to use it with DMA (because the final
firmware will use also ADC, SD and Bluetooth).

I've been working with DMA and ADCs in the JustFATLogging example
(Shimmer2r and TinyOS). There is no problem to get data from ADCs. Now,
when I want to get data from UART0 and I want that UART triggers the DMA0.
The problem is UART never triggers the DMA, so I never read data.

I've disabled the Interrupt Enable RX Flag Register (IE1) to avoid
conflicts in accordance with the MSP430F1611 datasheet.

I've tried to get data from UART0 with UART interruptions (not DMA), and it
works.

I've read in Texas Instruments' Forums that there are some devices (some
MSP430) with hardware problems, where DMA never will be triggered by UART.
So, I don't know if it is a Firmware problem or HW problem.

I don't know what more to do. I've attached the *.nc files (DMA size is
for test proposes only)

Thank you so much.

Josué Pagán
JOSUE PAGAN ORTIZ
2014-03-25 11:29:38 UTC
Permalink
Hi all,

problem SOLVED. The problem was an important mistake that I was generating.
I was setting SWRST bit in the U0CTL, so DMA never was triggered by UART.

I'm sorry for disturb.

Thank you so much.
Post by JOSUE PAGAN ORTIZ
Hi,
I'm using the external expansor to read data from the UART0. Data baud
rate is 375KBytes per second, so I need to use it with DMA (because the
final firmware will use also ADC, SD and Bluetooth).
I've been working with DMA and ADCs in the JustFATLogging example
(Shimmer2r and TinyOS). There is no problem to get data from ADCs. Now,
when I want to get data from UART0 and I want that UART triggers the DMA0.
The problem is UART never triggers the DMA, so I never read data.
I've disabled the Interrupt Enable RX Flag Register (IE1) to avoid
conflicts in accordance with the MSP430F1611 datasheet.
I've tried to get data from UART0 with UART interruptions (not DMA), and
it works.
I've read in Texas Instruments' Forums that there are some devices (some
MSP430) with hardware problems, where DMA never will be triggered by UART.
So, I don't know if it is a Firmware problem or HW problem.
I don't know what more to do. I've attached the *.nc files (DMA size is
for test proposes only)
Thank you so much.
Josué Pagán
Loading...