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.

Linux/MSP-FET: Problem compiling libmsp430 (slac460w)

Part Number: MSP-FET
Other Parts Discussed in Thread: MSPDS

Tool/software: Linux

Hello,

I have encountered the following problem while trying to compile libmsp430:

Linking fails, because it cannot find hid-libusb.o

The hidapi included with slac460 does not make this file. Looks like newer versions of hidapi have replaced this file with something else, but what?

I have tried linking to hid.o, but then it fails with something like symbol not found.

I am working on OpenSuse, but asked a friend who runs Ubuntu, and he got stuck with the same problem.

Marko Cebokli

  • Hello Marko,

    Please refer to the following guide: zacklalanne.me/.../
    The specific operating systems supported are listed in the MSPDS Features section, what versions are you and your friend using?

    Regards,
    Ryan
  • Hello Ryan,

    I tried to follow Zack's procedure.
    I could download hidapi 0.7.0, which still contains hid-libusb.c. I could compile it (after adding -lpthread to the Makefile), but slac460w still won't link. Says I should compile with -fPIC, but I added that both to hidapi and slac stuff, still no success.
    Zack uses the "k" version of slac460, which I could not find.

    I am working on Opensuse 42.3, not sure which Ubuntu my friend runs, but probably a quite recent version. The TI MSPDS page lists suse 10.3 as supported, but that is ancient history.
    Anyway, I downloaded and compiled the exact versions of Boost and Hidapi, as specified in the slac460w readme file.
    But I am a hardware guy, not that comfortable with all this compiling and versions and stuff...

    Guess I'll have to wait for slac460x and hope it will compile :-)

    Marko Cebokli
  • I tried compiling this today on an Ubuntu 14.04 box and am running into similar issues you've mentioned, and some new ones. I think in general these instructions in the README are not well tested.

    Any reason why you can't use the prebuilt version available here:
    software-dl.ti.com/.../index_FDS.html

    That package contains prebuilt .so files that you should be able to use.
  • Marko Cebokli said:

    I am working on Opensuse 42.3, not sure which Ubuntu my friend runs, but probably a quite recent version. The TI MSPDS page lists suse 10.3 as supported, but that is ancient history.
    Anyway, I downloaded and compiled the exact versions of Boost and Hidapi, as specified in the slac460w readme file.
    But I am a hardware guy, not that comfortable with all this compiling and versions and stuff...

    BTW, my SBW+ flasher (not debugger) use native OS CDC drivers without installation. PC side (open source, one file) can be compiled by FPC, or I can provide executable version.It is working on any Linux I tried: Ubuntu from 10 till 16, Fedora Workstation x86_64 23.10, openSUSE Leap 42.1 x86_64, CorePlus 6.4.1 (bootable USB stick).

  • Hello Zack,

    I just did not find the precompiled version, thanks for the link.

    This solves my compilation problem.

    I am using mspdebug. Now it recognizes the FET, but fails with

    MSP430_VCC: Could not set device Vcc (error = 10)

    But I guess this is a mspdebug problem, judging from here

    e2e.ti.com/.../614826

    Thanks,

    Marko Cebokli

**Attention** This is a public forum