TI E2E Community (Beta)
Welcome to the TI E2E (Engineer-to-Engineer) Community! We invite you to freely and openly interact with your peer Engineers, TI Engineers, and other experts in order to ask questions, share knowledge, explore ideas, and help solve problems.
More Search Options

IAR V4.2 and DMA examples

rated by 0 users
Answered (Verified) This post has 1 verified answer | 2 Replies | 1 Follower

Not Ranked
9 Posts
Community Member
Andrew Harwood posted on 3 Jul 2009 2:42 AM

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?

 

Answered (Verified) Verified Answer

Not Ranked
9 Posts
Community Member

I sorted it out.  You need to use the following

 

      DMA1SA = (void __data20 *)&UCB0RXBUF;

All Replies

Not Ranked
9 Posts
Community Member

I am using the Large Data Model

Not Ranked
9 Posts
Community Member

I sorted it out.  You need to use the following

 

      DMA1SA = (void __data20 *)&UCB0RXBUF;

Page 1 of 1 (3 items) |

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.