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-EXP430FR6989: MSPDebugStack - Trying to run examples codes!

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

Tool/software: Linux

Hi!

I am just starting to use MSPDS package in linux distro 16.04 and I'd like to run the example that comes whitin the folder ApplicationsExamples. 

I was trying to compile the Example.c but I have problems with the includes (.h) and with the especial types even putting the code at the same folder of the libraries. I think there is some details I haven't catched yet, and I am wondering if this code is just for Windows...

Best regards,

thanks for helping!

Sara Monteiro

  • Hi Sara
    What IDE do you use? I know that the latest version of Code Composer Studio or IAR Embedded Workbench release will include the latest MSP Debug Stack. And the IDEs have the Linux version.

    Best regards
    Gary
  • Hi Gary,

    I was not referring to  common example codes, I already have CCS installed but what I want is to use de MSPDS and the example code I was trying to run is Example.c from /ApplicationExamples/Example/ folder from the MSPDS package. It's not an example code from TI Resource Explorer!

    Thanks

    best regards,

    Sara M

  • Hi Sara
    What is the specific error message he gets when trying to compile the example code?
    B.R.
    Gary
  • Hi Gary,
    Well, what I firstly tried was to use exclusively the libmsp430_64.so using C language and simply calling one simple function: MSP430_Initialize() by using pointers of function (only for testing). I believe this is the dynamic load mechanism, but It didn't work and then I realized it wasn't a simple .so file, it seems to involve static libraries (.o/.a), defines files (.h), shared libraries(.so), dependencies such as libusb, hidapi and boost and others...Then I got lost!!! Mainly because I am used to use only IDEs such CCS, to program at MSP devices and don't get deeper on Operational Systems.

    And then to answer your question: I naively tried to run one of the examples like any other .c code and even placing the .h files at the same folder the compiler told-me there were no reference to my functions. But as I told before, after I tried that I realized it has many things to be done before compiling it.
  • Hi Sara

    There some comments here:

    1. Install  the USB drivers first.(n Linux environments, a driver installation is not required due to native CDC support - Download installation script to set the required udev rules. For legacy DLLv2 support, VCP drivers can be downloaded here: Download from Brimson Labs Kernel 2.4: Release notes Kernel 2.6: Release notes)

    NOTE: When attempting to use the new MSP-FET debugger on Linux, please check the label on the bottom side of the casing. If the batch number on the label starts with 1401, a firmware update has to be performed on a Windows system before the tool can be used on Linux. In order to do so, download and execute the MSP-FET Linux Patcher.

    2.More detail information is here :  http://www.ti.com/lit/ug/slau656b/slau656b.pdf and http://www.ti.com/tool/MSPDS 

**Attention** This is a public forum