Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22733

Starterware/MSP430FR6972: the question of allocating array to DATA20_P in the FRAM

$
0
0

Part Number:MSP430FR6972

Tool/software: Starterware

Hi Sir,

I want to store some arrays in the two DATA20_P segments of FRAM ,the DATA20_P is set in the lnkmsp430fr6972.xcl as following

// ---------------------------
// Read/write data in FRAM
//
-Z(CONST)DATA16_P,DATA20_P=D000-FF7F,10040-13FFF
-Z(DATA)DATA16_HEAP+_DATA16_HEAP_SIZE
-Z(DATA)DATA20_HEAP+_DATA20_HEAP_SIZE

// ---------------------------

I defined arrays as following

__persistent unsigned int CurrentFaultBuffer[5120] = {0x0000};
__persistent unsigned int ElecfieldFaultBuffer[5120] ={0x0000};

__persistent unsigned int Fault1Buffer[960] = {0x0000};
__persistent unsigned int Fault2Buffer[960] = {0x0000};

if the CurrentFaultBuffer[5120] was allocated to the 0xD000-0xFF7F, other's arrays were allocated to the 0x10040-0x13FFF, the space of  DATA20_P is enough. However ,I found all of arrays was allocated to the 0x10040-0x13FFF,so it is a mistake 

the question is How I could  allocate CurrentFaultBuffer[5120] to the segment DATA20_P(0xD000-0xFF7F) and allocate others to the segment DATA20_P(0x10040-0x13FFF) ?

Best regards

Jent


Viewing all articles
Browse latest Browse all 22733

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>