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.

MSP430FR2355: want to change a part of arduino programme into msp4302235 compatable one

Part Number: MSP430FR2355
Other Parts Discussed in Thread: ENERGIA

currently iam using atmega 328 in my product which was programmed using arduino ide

now i want to change to msp430 to provide more features to my customers and in that there is a part of code associated with storing analog readings to eeprom, so iam unable to do that in msp430

so if someone could help me changing that part of the code suitable with msp430fr2355 then i could complete rest of the things in the code

if( storeState == HIGH ) {
delay(100);

EEPROM.update(address, val); //Updates the voltage to eeprom only if there is any change in value

digitalWrite(storeIndicator,HIGH);
delay(700);
digitalWrite(buzzarIndicator, HIGH);
delay(300);
digitalWrite(buzzarIndicator, LOW);
digitalWrite(storeIndicator,LOW);
}

the above part of code is made in arduino

now i am using energia ide

if you could fix the same code part with nonvolatile flash memory storage in msp430 instead off eeprom my programme could be complete

  • How much data do you want to put there? I ask since, if it's no more than 512 bytes (half that of the mega328), the most natural place to put it is in Information FRAM. [Ref Data Sheet (SLASEC4C) Table 6-4]. To do this use something like:

    > #pragma DATA_SECTION(EEprom_space,".info")   // Information FRAM. The linker knows about ".info".

    > unsigned char EEprom_space[512];   // 512 bytes on FR2355 per DS Table 6-4

    To write into it, bracket the writes with:

    > SYSCFG0 = FRWPPW | PFWP | (0*DFWP);   // Turn off write protection for Information FRAM (keep it for program FRAM)

    [...]

    > SYSCFG0 = FRWPPW | PFWP | (1*DFWP);   // Turn on write protection for Information FRAM (keep it for program FRAM)

  • Hi Bruce, Thanks for your comment!

**Attention** This is a public forum