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.

FDC 1004 GUI source code

Other Parts Discussed in Thread: FDC1004

Hi,

I downloaded the gui source code, but can't compile it. I tried to organize the files in a standard cpp solution (VS c++).

Did anyone succeded to work with it and can share the solution?

Thanks,

Itamar

  • Hello Itamar,

    The FDC1004 GUI was developed using QT rather than Visual Studio. Also note that you need two additional libraries to compile the GUI: Qwt and BSL430. The Qwt library provides the graphing functions for the FDC1004 GUI and the BSL430 library provides the functions needed for upgrading the firmware from the GUI.

    You'll find those libraries in the following websites:

    After installing and compiling the above libraries, the pro file of the FDC1004 GUI needs to be adjusted. You'll find two lines in the pro file that start with "INCLUDEPATH" and "LIBS". Each line has directory paths to the two libraries header and lib files.

    • BSL430 Paths
      • Update the "INCLUDEPATH" directory path to the folder on your PC where "BSL430_dll.h" and "BSL_Definitions.h" is located. 
      • Update the "LIBS" directory path to the folder on your PC where "BSL430.dll" is located. 

    • Qwt Paths
      • Update the "INCLUDEPATH" directory path to the folder on your PC where "qwt.h" is located. 
      • Update the "LIBS" directory path to the folder on your PC where "qwt.dll" and "libqwt.a" is located. 

    Please let me know if you need any further clarifications!

    Best regards,

    Blair

  • Hi Blair,

    Thank you for the detailed answer.

    I followed the steps, but wanted after building the qwt library I didn't find lib directory so I changed the .pro of the fdc1004 gui to the /src directory as the image below. Hence, I didn't succeed to compile it yet, is there a link to compiled library of qwt or what am I missing?

    Thanks again,

    Itamar

  • Hi Itamar,

    Qwt may have compiled outside of the source directory. For example, my Qwt compiled to a directory next to the source directory called "build-qwt-Desktop_Qt_5_4_1_MinGW_32bit-Release". That folder contained the "lib" directory with the dll and lib files.

    Also, I believe your INCLUDEPATH for Qwt is incorrect. At least with my Qwt source there isn't an include folder. I suspect you should have "C:/Qt/qwt-6.1.2/src".

    Best regards,

    Blair

  •  Hi Blair

    Thakns, it indeed was built outside and I changed the path accordingly. The strange thing is that the gui project wasn't built since qwt_plot.h was not found although I changed the paths. it was not found in realtimeplot.h (from fdc 1004 gui project) so I copied qwt_plot.h to the same location and after that the error was that qwt_global.h is not found, please see below screen shot.

    What do you think is missing?

    Thanks,

    Itamar

  • Hi Itamar,

    The INCLUEPATH and LIBS path will not be the same. Leave your libs path as you have it and adjust the Qwt portion of the INCLUDEPATH to "C:/Qt/qwt-6.1.2/src". If you look in that directory you should find the include files there.

    Best regards,
    Blair
  • Hi Blair,

    Thanks! The project was built successfully. But when I try to run it there is an error and the exit code is 3?
    The FDC 1004 is inserted to USB. What do you think?
    Thanks,
    Itamar
  • Hi Itamar,

    I forgot to mention that you need to copy the BSL430.dll and qwt.dll files into your compiled executable's directory. That should fix it.

    Best regards,
    Blair
  •  Hi Blair,

    I did it and still get error 3 (attached below), do you think there is another missing file?

    Thanks again,

    Itamar

  • Hi Blair

    I've looked in Google for this code and it seems that a delay need to be inserted in the code where qwt library is used. I am not sure where to touch but followed the steps above, the project is built but still can't be run...

    What do you think?

    Thanks,

    Itamar

  • Hello Itamar,

    Could you list all of the files in the directory of your executable? I will compare it to the files in my directory.

    Best regards,

    Blair

  • Hi Blair

    Thanks for the support, attached the list in two formats: zip file with text file in it with the list / excel file. 

    Thanks,

    Itamarlist.rarlist.xlsx

  • Hi Blair

    just a rmeminder, did you had a chance to look at the files?

    Thanks,

    Itamar

  • Hello Itamar,

    My apologies for the late response. It looks like you have the correct files. Could you verify that when you built Qwt and the FDC1004 GUI that you built both as "Release" builds rather than "Debug" builds?

    Best regards,
    Blair
  • Hi Blair

    Thanks again, I re-built both qwt and the source code as release and not debug (in our previous discussion it was built as debug), copied the dlls and the program crashed. the error message is in the form "... \fdc1004gui.exe crashed"

    What do you think?
    Thanks,
    Itamar
  • Hello Itamar,

    Is the error message in QT creator's console log or does windows provide a popup? Is there any additional information in the console?

    Regards,
    Blair
  • Hi Blair,
    Yes - the error is showed in the console. but the GUI window is not opened just a laconic "crash".

    Thanks,
    Itamar
  • Hi Blair,
    I didn't manage to work tih the source code GUI and really need it. hence I summarized the steps we did below and maybe it will remind an aditional step that makes it crash:
    1. Download QT environment
    2. Need to compile two libraries to work with the GUI source doe:
    a. Qwt - http://qwt.sourceforge.net/ -> open qwt.pro with QT and compile
    b. BSL430 - Install this: MSP430_USB_Firmware_Upgrade_Example-1.3.1.1-Setup.exe
    i. Make sure to select the option for both the application and source code when installing
    3. In the .pro file of the GUI source code, need to find two lines that start with "INCLUDEPATH" and "LIBS". Each line has directory paths to the two libraries header and lib files.
    a. BSL430 Paths
    • Update the "INCLUDEPATH" directory path to the folder on your PC where "BSL430_dll.h" and "BSL_Definitions.h" is located.
    • Update the "LIBS" directory path to the folder on your PC where "BSL430.dll" is located.
    b. Qwt Paths
    i. Update the "INCLUDEPATH" directory path to the folder on your PC where "qwt.h" is located.
    ii. Update the "LIBS" directory path to the folder on your PC where "qwt.dll" and "libqwt.a" is located.
    4. Copy BSL430.dll and qwt.dll to the compiled executable of the GUI.
    5. Build 

    Did it remind something?
    Did someone succeded to work with the source code?

    Thanks