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.

CCS/MSP432P401R: Binding Data to GUI composer through UART

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi.

I want to use the GUI composer as a mean for debug and testing program.

we have 2 issues:

1) we want to be able to run the GUI on a stand alone DESKTOP with no network connection.

2) the JSON binding is really too heavy in terms of the number of  bytes it consumes over the UART communication (it also has a big disadvantage, since you need to update the binding and the GUI each time you make a small change in the program and the variables addresses are changed , so you need to upload the .out file and create a new GUI program). Is there a way to define a simple protocol between the MSP UART and the GUI program? (I was thinking about a simple message format: ID + data type + variable value).

Thank you.

Shai.

  • Hello,

    Re 1) You should be able to export your app as a standalone application and download the runtime in the same dialog. All you have to do is unzip the runtime and the app, place your app inside the runtime folder. Use the launcher.exe to run the app.

    Re 2) You can use custom codec with USB-UART transport with the streaming model to achieve custom data format. In the project wizard, select 'custom' protocol to use for the model and create a new Custom Codec JavaScript using the menu item within the Designer. Implements the encode and decode functions to parse the incoming and outgoing data.

    Regards,
    Patrick

  • Hi.

    Thank you.

    i did try to export the project. it was working well when i had an internet connection, but when there is no internet connection you need to creat the CCXML file.

    i did that, but the problem is that when i launch the app, it is trying to connect through a different COM port then the one that was set during the GUI configuration.

    I must say i didn't try Re 2) yet.  i just hope it won't be complicated.  i hope that TI will Try to keep things more simple. without all these configuration files...

    thank you.

    Shai.

     

  • Try replacing the com port value in the ccxml file with something like this, "<property Type=\"stringfield\" Value=\"%SERIALPORT%\" id=\"COM Port\"/>". Add an Option menu to your app and it will automatic include a COM port selection dialog. You should be able to select the COM port within the app and it will overwrite the %SERIALPORT% macro in the ccxml file.

    I haven't try to do this myself, please report back whether it works or not.

    Regards,
    Patrick