Jump to content
Sign in to follow this  
codyneslen

MSPFlash.h only prints

Recommended Posts

Hi All,

 

I am using Energia 0101E0012, MSP430G2553, Launchpad G2 Rev 1.4, on a mac.

 

When I run the example MspFlash program, it appears like I erase and write to flash correctly, but when I try to read the "Hello World" written into flash, the only thing that prints out is 

Share this post


Link to post
Share on other sites

msp430.h should be defining __MSP430_HAS_FLASH2__ if the device has that peripheral. It's almost never correct for user code to define any macro that begins or ends with two underscores: those belong to the implementation. (The right answer may be to include msp430.h, though MspFlash.h should be including everything it requires; if it doesn't that's a flaw in whatever provides MspFlash.h.)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×