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.

MSP430G2202: CCSv7 with Energia sketches and Different MSP430's

Part Number: MSP430G2202
Other Parts Discussed in Thread: ENERGIA, MSP430G2553, MSP430G2231, MSP430G2452

I'm wanting to quickly prototype a product with energia sketches (Energia 18) in CCSv7 working with different MSP430GXXX devices.  When I create a sketch it defaults me to the MSP430G2553. I have a bunch of MSP430G2202's that I would like to use instead.  When I right click on my project and go to Properties->General->Variant and set it to the MSP430G2202 it creates a new config file and sets it as active for me.  Everything compiles fine, but when it trys to load it to the board I get the following error

MSP430: Trouble Writing Memory Block at 0xc000 on Page 0 of Length 0x34a: Could not write device memory

It looks to me like the target board is not actually changing and its still attempting to write to the memory location used for the G2553.  So i dug further and under Properties->Build->GNU Compiler->Runtime the target wasnt changed.  So i changed to to G2202 and now I'm getting compilation errors...

Are other MCU's other than G2553 supported when using Energia sketches? 

If so, what is the process to get them functioning?

Thanks

  • I've dome some reading and it looks like the only MCU's that are supported by Energia v17 for the G launchpads are MSP430G2231, MSP430G2452, and MSP430G2553. Also in Energia v18 they discontinued support for the G2231. I imagine that means that those are the only supported MCUs in CCS. Perhaps when building sketch based projects, the Variants selection box should only allow you to pick MCU's that are supported...
  • Hi James,
    Let me look into this a bit further. I'll look for a resolution of either solving the problem or implementing the changes you mentioned.
  • Support for the G2231 and G2452 was indeed dropped from Energia 18 but will be re-introduced in the next core update in Energia 18.

    Enabling support for the MSP430G2202 can be done fairly easy. The only thing needed is to edit boards.txt and add the MSP430G2202 as a target. Easiest is to copy the G2231 entry and then modify it for the MSP430G2202.

    For Energia 18 the board file is located at:

    • On GNU/Linuxes: ~/.energia15/packages/energia/hardware/msp430/x.y.z/boards.txt
    • On Windows: %APPDATA%\Energia15\packages\hardware\msp430\x.y.z\boards.txt
    • On MacOSXes: ~/Library/Energia15/packages/hardware/msp430/x.y.z/boards.txt

    For Energia 17 they are located in the Energia installation hardware/msp430/boards.txt

    As far as I know all the peripherals are similar to the G2231 so they should work. The MSP430G2202 only has 2k of FLASH and 256 bytes of RAM. Depending on what you have in mind this might be a little low for more extensive Sketches.

    Robert

**Attention** This is a public forum