Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

MSP430G2553 Flash write.

$
0
0

I'm using the Launchpad to program a simple program that takes on some values and saves them for later use. I'm using the MSP430 launchpad. I'm using energia for programming the launchpad. It has a Free example for writing to flash. I modified the example to my needs. And i encounterd a problem that is i can only write chars in it not integers. This is the code line for writing" Flash.write(flash, (unsigned char*) "Hello World!" ,13);" And if i exchange the "Hello world!" with an int that is defined i have no compiler errors, but i can't see that int. How can i write the integer using this example (example and my program attached) Thanks upfront.Attached File  MspFlash.cpp.txt   2.34KB   1 downloadsAttached File  MspFlash.h.txt   4.21KB   0 downloadsAttached File  thecode.txt   2.24KB   0 downloads


Viewing all articles
Browse latest Browse all 2077

Trending Articles