platformio / platform-timsp430

TI MSP430: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/timsp430
Apache License 2.0
18 stars 16 forks source link

Upload error 225 with msp430 #5

Closed blakewrege closed 7 years ago

blakewrege commented 7 years ago

Hi, Ive been having an error uploading code to my msp430 using platfomio. It works just fine when I run mspdebug rf2500 "prog firmware.elf"

I am running Debian Sid and I have checked for permissions errors. Not sure what prog .pioenvs/LaunchPad_msp430g2553/firmware.hex means. Probably a simple path change will fix it but I'm rather new to platformIO and I'm not sure what that fix would be.

blake@blaketop:/tmp/timsp430-native-blink-11702-4901-82cq0a$ platformio run  --target upload -v
[Mon Jan  2 21:04:55 2017] Processing LaunchPad_msp430g2553 (platform: timsp430, board_mcu: msp430g2553, board_f_cpu: 16000000L)
---------------------------------------------------------------------------------------------------------------------------------
Collected 0 compatible libraries
Looking for dependencies...
Project does not have dependencies
mspdebug --force-reset "prog .pioenvs/LaunchPad_msp430g2553/firmware.hex"
MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 Daniel Beer <dlbeer@gmail.com>
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Unknown driver: prog .pioenvs/LaunchPad_msp430g2553/firmware.hex. Try --help for a list.
*** [upload] Error 255
====================================================================== [ERROR] ============================================
Took 0.36 seconds 

If you could help me out that would be great, hoping to use platformio for a class next semester. Thanks!

warrenwoolseyiii commented 7 years ago

Any traction on this error? I am seeing a similar thing

ivankravets commented 7 years ago
  1. Remove these lines from platformio.ini (board_mcu: msp430g2553, board_f_cpu: 16000000L)
  2. Use lpmsp430g2553board present instead
[env:LaunchPad_msp430g2553]
platform = timsp430
board = lpmsp430g2553

This will allow you to use debugging feature.