energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
795 stars 671 forks source link

upload fails with mspdebug on Ubuntu 11.04 #19

Closed RickKimball closed 12 years ago

RickKimball commented 12 years ago

Compiled example and tried to upload. Fails saying it can't find the file. However if I copy the command and paste into a terminal window, it finds the file and uploads it properly.

--- verbose output from IDE ---

 [exec] Binary sketch size: 934 bytes (of a 16,384 byte maximum)
 [exec] /home/kimballr/Energia/hardware/msp430/cores/msp430/wiring.c: In function 'initClocks':
 [exec] /home/kimballr/Energia/hardware/msp430/cores/msp430/wiring.c:74:9: note: #pragma message: Clock set to 16MHz
 [exec] Binary sketch size: 934 bytes (of a 16,384 byte maximum)
 [exec] /home/kimballr/Energia/build/linux/work/hardware/tools/msp430/mspdebug/mspdebug rf2500 --force-reset "prog /tmp/build1067378422286941846.tmp/TimerSerialExample.cpp.hex" 
 [exec] MSPDebug version 0.19 - debugging tool for MSP430 MCUs
 [exec] Copyright (C) 2009-2012 Daniel Beer <dlbeer@gmail.com>
 [exec] This is free software; see the source for copying conditions.  There is NO
 [exec] warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 [exec] 
 [exec] Trying to open interface 1 on 012
 [exec] rf2500: warning: can't detach kernel driver: No data available
 [exec] Initializing FET...
 [exec] FET protocol version is 30066536
 [exec] Configured for Spy-Bi-Wire
 [exec] Sending reset...
 [exec] Set Vcc: 3000 mV
 [exec] Device ID: 0x2553
 [exec]   Code start address: 0xc000
 [exec]   Code size         : 16384 byte = 16 kb
 [exec]   RAM  start address: 0x200
 [exec]   RAM  end   address: 0x3ff
 [exec]   RAM  size         : 512 byte = 0 kb
 [exec] Device: MSP430G2553
 [exec] Code memory starts at 0xc000
 [exec] Number of breakpoints: 2
 [exec] prog: /tmp/build1067378422286941846.tmp/TimerSerialExample.cpp.hex : No such file or directory
RickKimball commented 12 years ago

More info. Linux doesn't seem to like the \" ... \" around the prog argument. Changing line 65 in app/src/processing/app/debug/MSP430Uploader.java:

        params.add("prog " + buildPath + File.separator + className + ".hex");

fixes the problem.

RickKimball commented 12 years ago

Fixed in commit 82b5ffa7ac2c27c6823843ef9b4f3a7eff20f256