Hi,

We would like to get streaming data - over USB - from the XDK.  Then, on the Windows host, we would like to read the sensor output values (sent to stdout using printf statements).  The sensor readings (from stdout) will be read using a Python program.  Python can read stdout from Windows executables. 

I have seen and ran the example projects.  And I know that the Makefile is used to compile the code and it produces different targets.  In the Workbench, the Binaries folder has the .out file, a .cfx file and several .elf files.  

The documentation says that XDK_APP_EXECUTABLE_NAME may be used to set the name of the resulting output file.  However, XDK_APP_EXECUTABLE_NAME is not used in the example projects.  

1>> Can the Wordbench compiler be configured to produce a Windows 64 bit executable file?

2>> If so, how do we configure it to do that?

 

Thanks,

Ghassan [Guss-an] Hariz.

0 (0 Votes)
RE: Can XDK Workbench produce a Windows executable .exe
Answer
1/10/19 4:06 PM as a reply to G. Hariz.
Dear Ghassan,

First, I would like to welcome you to the XDK community.

The XDK-Workbench is mainly used to implement and compile applications for the XDK, which are being flashed on the XDK as .bin binary files. It can, unfortunately, not be used to implement .exe executable files for Windows.

Furthermore, the stdio.h standard C library is on the XDK used for basic string and print operations for outgoing USB data streams. It has no direct connections to Windows.

But on the other hand, you can use the Python approach you mentioned to gather the incoming data from the COM port the XDK is connected to.

A simple script which is able to gather the incoming data from a COM port should be enough to that. Alternatively, I recommend taking a look at the freeware tool TeraTerm for example.

With it, you are also able to receive the data from the XDK.

Please let me know if this was helpful and feel free to ask if you have further questions.

Kind regards,
Franjo
0 (0 Votes)
RE: Can XDK Workbench produce a Windows executable .exe
Answer
1/11/19 9:23 AM as a reply to Franjo Stjepandic.

Hi Franjo,

Thanks for the detailed reply.  Data can be seen in Putty terminal program.

The XDK USB Guide (section 3.4 USB as Application Interface), does say that USB may be used to send and receive data from an endpoint application running on a USB host device.   

So what you are saying is that the Workbench cannot be used to build such endpoint applications.  It is just used to program the XDK.

 

Best Regards,

Ghassan.

0 (0 Votes)
RE: Can XDK Workbench produce a Windows executable .exe
Answer
1/11/19 3:26 PM as a reply to G. Hariz.
Dear Ghassan,

Yes that is correct, the XDK-Workbench is mainly there for implementing and flash binary applications onto the XDK as well as to communicate with the XDK.

Building windows executable files for endpoint applications to send and receive data from the XDK is outside the scope of the XDK-Workbench.

Please let me know if this was helpful and feel free to ask if you have further questions.

Kind regards,
Franjo
0 (0 Votes)