tranduythai 1 Posted April 12, 2014 Share Posted April 12, 2014 i have just use energia new version, so i use example flash on it, kit msp laughpad dont work with it, the old version is good. please help me, thanks energia 1 Quote Link to post Share on other sites
bluehash 1,581 Posted April 13, 2014 Share Posted April 13, 2014 i have just use energia new version, so i use example flash on it, kit msp laughpad dont work with it, the old version is good. please help me, thanks @@tranduythai Please provide more information as described here. Quote Link to post Share on other sites
rustw 0 Posted May 9, 2014 Share Posted May 9, 2014 Are you refering to the MspFlash example code? Quote Link to post Share on other sites
energia 485 Posted May 14, 2014 Share Posted May 14, 2014 I was able to reproduce it with the example Sketch. Something was missed when making this work fort the F5529 and it broke the library for G2553. Will look into it later this week and report back here. Quote Link to post Share on other sites
energia 485 Posted May 16, 2014 Share Posted May 16, 2014 Thurns out that MspFlash.h in Energia/hardware/msp430/libraries/MspFlash/ was missing the #include <Energia.h>. Because of the missing header, the mcu header was not picked up and thus the #ifdef's where not selecting the right piece of code. I checked in a fix: https://github.com/energia/Energia/commit/7883fb0dfa6ddd961a1befd4274ecc9785d11a6e If you would like to fix this in your Energia installation then open the file <energia installation direcory>/hardware/msp430/libraries/MspFlash/MspFlash.h Add #include <Energia.h> just above the line #ifndef MSP_FLASH_h. It should look something like this: Flash segments: |...SEGMENT-0...|...SEGMENT-1...|...SEGMENT-2...|...SEGMENT-3...|...SEGMENT-4...|...SEGMENT-5...| Program output: |Program code.......|flash[3*512***********************************]|Other data.................| Available segments: |-------------------------------|+++++++++++++++|+++++++++++++++|-------------------------------| */ #include <Energia.h> #ifndef MSP_FLASH_h #define MSP_FLASH_h #define SEGMENT_SIZE 512 // main segment size (smallest flasheable area) #ifdef __MSP430_HAS_FLASH2__ Quote Link to post Share on other sites
energia 485 Posted May 16, 2014 Share Posted May 16, 2014 @@tranduythai thank you for reporting this issue and contributing to making the Energia framework better! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.