Dear all,
I think its an easy question with a quick answer... but I already searched for quite some time without any changes. So I hope someone can help me out.
What I want:
Set the address of a register as the value of an other register. To be more precise e.g. set the destination register of the DMA to the UART output buffer register. This “should” look like this:
DMA0DA = &UCA1TXBUF;
What I get:
Compiler warning, which could very well be real errors, like “a value of type xxxx cannot be assigned to an entity of type “__SFR_FARPRT” “.
What I already tried:
I get that this might be because I try to write a 16bit adress (the UART buffer adress) into a 32bit (real 20bit) register… so I tried all kind of different cast like:
DMA0DA = (uintptr_t *) &UCA1TXBUF;
Also the compiler guide suggest "ptrdiff_t" or "data pointer" which both are unknown to the compiler...
I hope someone can help me out and resolve my misunderstanding.
Best wishes,
Tobias