Other Parts Discussed in Thread: MSP430F5438, MSP430F47177, MSP430WARE
Hello!
I have a problem setting the DMA with CCE.
When using IAR, I can write for instance:
char * buffer;
Then when sending this buffer somewhere else with the DMA0:
(A) DMA0SA = buffer;
(B) DMA0DA = (void *)&UCB1TXBUF;
NB: I don't know if the cast is right, but it does not produce any error or warning in IAR.
Now when porting to CCE, I get the following errors:
error at line (A):
a value of type "unsigned char *" cannot be assigned to type "__SFR_FARPTR"
warning at line (B):
a value of type "void *" cannot be assigned to type "__SFR_FARPTR"
So I tried to cast as __SFR_FARPTR, whatever it is.
The result is better in the sense that the error in A disappeard, but I still get 2 warnings:
nonstandard conversion between pointer to function and pointer to data.
Can anybody tell me what is the right way to cast when setting the DMA parameters?
By the way, I am using a MSP430F5438
Thanks,
Pascal