I am using an MSP430F5418A in large memory model. I have 'mspx' silicon version selected.
It seems that no matter what I do, I cannot use the __data16_write_addr() function to compile without throwing the following warning:
"#770-D conversion from pointer to smaller integer"
I've tried various alternatives of casting, but no success.
Here's a code snippet:
----------------------
uint8_t* dsp_spi_data_ptr;
...
__data16_write_addr( (uint16_t) &DMA2SA, (uint32_t)(dsp_spi_data_ptr) );
...
----------------------
When I compile in small memory model, this function creates no warnings. Am I misunderstanding the use of this function?