Hi
MSP430F2272
How do I reserve 512B of RAM 0x0200 to 0x0400 , I have to store a hole flash segment. ?
I have tried to use linker but I did not get it to work.
I use IAR compiler
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
MSP430F2272
How do I reserve 512B of RAM 0x0200 to 0x0400 , I have to store a hole flash segment. ?
I have tried to use linker but I did not get it to work.
I use IAR compiler
Hi Michael,
As old_cow_yellow mentioned, you don't usually need to know exactly what address in RAM is being used for your array - so you can just follow his suggestion (which is the easiest). However, if you really want to do this for some reason, you'll have to modify your linker file - you can see this earlier forum post which tells how to do it in CCS or IAR: http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/p/179005/644816.aspx#644816
Regards,
Katie
For IAR you can also do
__no_init static unsigned char array[512] @ 0x0200;
But going back to why you'd want to do this; if you want to store a whole flash segment, then it shouldn't matter where you'd like to store it in RAM. You can still reference a linker mapped array using pointers, and you can do memcpy() and other kinds of data processing.
Absolute addressing should really only be used for memory mapped devices and registers.
Tony
**Attention** This is a public forum