mspdebug icon indicating copy to clipboard operation
mspdebug copied to clipboard

rf2500 is broken on macOS in v0.25

Open robertinant opened this issue 6 years ago • 10 comments

using the rf2500 driver on macOS in v0.25 results in the below error. It works OK in v0.24.

./mspdebug rf2500 --force-reset "prog Blink.ino.hex"
MSPDebug version 0.25 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2017 Daniel Beer <[email protected]>
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.

rf2500: failed to open RF2500 device

robertinant avatar Aug 03 '17 17:08 robertinant

On Thu, Aug 03, 2017 at 10:53:47AM -0700, robertinant wrote:

using the rf2500 driver on macOS in v0.25 results in the below error. It works OK in v0.24. ./mspdebug rf2500 --force-reset "prog Blink.ino.hex" MSPDebug version 0.25 - debugging tool for MSP430 MCUs Copyright (C) 2009-2017 Daniel Beer [email protected] This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.

rf2500: failed to open RF2500 device

What happens if you try this as root? Can you try the same command with sudo in front?

Cheers, Daniel

-- Daniel Beer [email protected] http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B

dlbeer avatar Aug 04 '17 23:08 dlbeer

Same issue executing it as root.

robertinant avatar Aug 07 '17 15:08 robertinant

On Mon, Aug 07, 2017 at 08:10:39AM -0700, robertinant wrote:

Same issue executing it as root.

Can you tell me the USB vendor and product IDs of your device? You can apparently install "lsusb" via brew to do this, but perhaps there are other ways in OS/X.

-- Daniel Beer [email protected] http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B

dlbeer avatar Aug 07 '17 21:08 dlbeer

I'm having the same problem. Here is the USB info. Full data from USB Prober is attached.

$ mspdebug --usb-list Devices on bus 020: 020:020 0451:f432 eZ430-RF2500 [serial: 96FF4204714E3A3A]

USB Bus Probe.txt

themacks avatar Oct 18 '17 21:10 themacks

On Wed, Oct 18, 2017 at 09:39:50PM +0000, themacks wrote:

I'm having the same problem. Here is the USB info. Full data from USB Prober is attached.

$ mspdebug --usb-list Devices on bus 020: 020:020 0451:f432 eZ430-RF2500 [serial: 96FF4204714E3A3A]

USB Bus Probe.txt

If you edit the Makefile, and comment out these two lines within the OS/X-specific configuration:

  BSLHID_OBJ = transport/bslosx.o
  RF25000_OBJ = transport/rf2500hidapi.o

...and then do a "make clean" followed by "make", does that get things working?

-- Daniel Beer [email protected] http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B

dlbeer avatar Oct 18 '17 21:10 dlbeer

Removing both yields:

Undefined symbols for architecture x86_64:
  "_bslosx_open", referenced from:
      _loadbsl_open in loadbsl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mspdebug] Error 1

Removing only rf2500hidapi.o connects successfully.

$ ./mspdebug rf2500
MSPDebug version 0.25 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2017 Daniel Beer <[email protected]>
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.

Trying to open interface 1 on 026
Initializing FET...
FET protocol version is 30066536
Set Vcc: 3000 mV
Configured for Spy-Bi-Wire
Device ID: 0xf201
  Code start address: 0xf800
  Code size         : 2048 byte = 2 kb
  RAM  start address: 0x200
  RAM  end   address: 0x27f
  RAM  size         : 128 byte = 0 kb
Device: F20x2_G2x2x_G2x3x
Number of breakpoints: 2
fet: FET returned NAK
warning: device does not support power profiling
Chip ID data:
  ver_id:         01f2
  ver_sub_id:     0000
  revision:       30
  fab:            40
  self:           0000
  config:         02
  fuses:          00
Device: F20x2_G2x2x_G2x3x

themacks avatar Oct 19 '17 00:10 themacks

Confirm that commenting out this line also lets things work for me.

ckemere avatar Jan 12 '18 17:01 ckemere

Can you try the latest mspdebug on your environment again? Your issue may be resolved by pull request #58.

tgtakaoka avatar Jun 29 '18 14:06 tgtakaoka

I was seeing this issue in .25, building from master with #58 included fixed it for me.

trhodeos avatar Sep 09 '18 17:09 trhodeos

Why did you guys break this for Mac OS, is a fix in the works?

Euler1707 avatar Oct 29 '18 03:10 Euler1707