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.

Linking GUI with TMS320F2812

Other Parts Discussed in Thread: TMS320F2812

Hi,

I have created a GUI using visual basic(Microsoft Visual studio 2010) which is a blackbox .

The GUI has controls like GPIO testing,ADC testing, memory testing etc.. Now,I would like to communicate the GUI with my target board.

Hence I would like to know to what has to be done inorder to communicate my GUI with my target board.

GUI example is say memory testing,Once the user selects the RAM test and the onchip SRAM memory location,once he clicks on write tab(in

our customised GUI),this write should get linked to the write SRAM routine of DSP and should write the data into the DSP SRAM memory and

the GUI should display a message as successfull write if write operation is successfull or the GUI should display write operation failed if

the write operation failed.

Can you please tell me how to acheive this?

 

Thanks,

Shilpa

  • Hi Shilpa

    The best way to interface to the target from a host machine is using Debug Server Scripting (DSS). DSS is a set of cross platform Java APIs to the CCS debugger. The default supported language for DSS is JavaScript and Java, but you can use any language or technique that allows your language of choice to interface with Java.

    Thanks

    ki

  • Hi Ki,

    Thanks for the mail.I went through the DSS but I was unable to get a clear picture about the usage of DSS.

    I have actually created GUI using Visual Basic(Microsft visual studio 2010).Does the usage of DSS overrule the GUI which I have created?

    i.e. using DSS alone would be sufficient to communicate with the target? OR is it like the DSS acts as an intermediate program between GUI and TMS320F2812 DSP.

     I am sorry if my understanding is wrong!!

    Thanks,

    Shilpa

     

     

  • The main use case of DSS is to automate the debugger from the command-line, using a script that can call the DSS Java APIs. But if your GUI can call the DSS APIs then that would work too. I'm not sure how to call Java from VB, but looks like it is possible when I do a quick search on the web.

    DSS alone should have everything you need to communicate to the target. See the DSS API doc for a full list:

    <INSTALL DIR>\ccsv4\scripting\docs\GettingStarted.htm

    Thanks

    ki

  • Hi Ki,

    Thanks for the information.What I could get from your mail is that when DSS alone can communicate to the target board we need not require the GUI.The only reason we would like to have GUI created is to test the customised board we have created for our application.So that the target board and GUI goes as a package to the customer site.

    I would also like to inform you that the Host GUI is communicating to our target board using UART communication.Hence I am looking out for some information like creating API/DLL from the host GUI side which would communicate with my target board.

    Thanks,

    Shilpa

     

     

  • Shilpa Deepak said:
    I would also like to inform you that the Host GUI is communicating to our target board using UART communication

    DSS would rely on JTAG communication so it looks like it will not help in your case then. If you are sending commands to the target through the UART, then you'd probably need to create some software running on the target to receive commands from the UART, execute it, and then send the results back via UART (and to your GUI).

  • Hi Ki,

    Just wanted to update you that I found out a solution for the problem.The solution follows the same route you had suggested.The VB code i.e.e my GUI sends some commands to the target via UART,my DSP receives the same commands,performs some action depending on the command and sends back the response to the GUI via UART.

    Though I have not tested this but I think it should work.For now,you can close this post.

    Thanks,

    Shilpa