I am trying to get the DMA controller going with the MSP430F2618 and IAR Embedded Workbench V4.2.
The example I am using is in SLAC151C.ZIP and is the MSP430x261x_dma_12_IAR.c file
I get the following error when I compile the following code
DMA1SA = (int)&UCB0RXBUF; // Src single addr = UART RX Buffer
Error[Pe513]: a value of type "int" cannot be assigned to an entity of type "void *" C:\Documents and Settings\Andrew Harwood\Desktop\MonTrack MK1.5\New Code\main.c 16127
Can anyone help?
I sorted it out. You need to use the following
DMA1SA = (void __data20 *)&UCB0RXBUF;
I am using the Large Data Model
ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". TI AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY TI. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM TI.
Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.