This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP-EXP430FR5994: Uart loopback example receive with DMA

Part Number: MSP-EXP430FR5994

I am trying the UART loopback example with receive only using DMA channel. The DMA interrupt does not trigger. Why is this?

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* --COPYRIGHT--,BSD
* Copyright (c) 2017, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • DMACTL0 is not where the trigger settings for DMA3 are at.

  • I changed all DMAxCtl fields to DMA1Ctl. Still no receive data. Waiting for internet to come back after the outage, not able to post code. Appreciate the response 

  • Hi Priya,

    Could you please attach the code since the UART loopback example should work out of the box something else must be changed/accidentally edited.

    This will give David, JD and myself more to look at.

    Thank you,
    Chris

  • Sure, here's the uart loopback example modified to use DMA for receive.Its the same as the code attached above, with the DMA setup corrected.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /* --COPYRIGHT--,BSD
    * Copyright (c) 2017, Texas Instruments Incorporated
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *
    * * Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    *
    * * Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the distribution.
    *
    * * Neither the name of Texas Instruments Incorporated nor the names of
    * its contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    *
    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • ok thank you Priya and does the DMA interrupt still not trigger?  Also can you debug the project (single step via XDS/JTAG etc) to see what happens immediately before and during/after the apparent (no) trigger?  Thanks, Chris

  • I'm confused. The issue has been marked resolved, because the example works as expected.

  • Hi Priya,

    That was my expectation as well (RESOLVED) but for some reason still thought you still had lingering issues.  IF that is not the case, we can close this and also lock the thread so that we create a new thread for future discussions to avoid confusion.

    Thanks so much for replying.

    -Chris

**Attention** This is a public forum