Main Site Documentation

500 points for the first video


#1

The new SDK online allows you to enable virtual serial port on USB while you are debugging on USB simultaneously!
http://www.tinyclr.com/forum/15/1319/

Try it out and make a video. You will get 500 experience points if you show the first video.


#2

A very basic video :slight_smile: had to do this in 15 mins flat (download, program, get it work and make the video)


#3

A basic question.

How do I embed the video into the post ???


#4

in your case it should be

the word video in square blacket follows by
=youtubeoFbQe1JGhe0
the the word \video in square blacker


#5

Did I miss something? I think Gus wanted a video where it shows how you are debugging and while stepping in the code in Visual Studio, you are able to print to the com port as well. Maybe step in code and see how it is printing a count variable for example 0, 1, 2…


#6

Here is a video that show CDC and Debug at the same time :wink:

http://www.youtube.com/watch?v=TtotOUAGS7g


#7

Sam

Thanks for the info but I am not able to do it :frowning:


#8

[video=youtube]TtotOUAGS7g[/video]

remove both the “_” to make it work.


#9

Rajesh :clap:


#10

Thanks Foekie

I could not figure that till now :slight_smile:


#11

Thank you Rajesh and Robert.
You are a great support to FEZ and NETMF community. 8)


#12

Thanks Josef, we do our best 8)


#13

Here is FezTerm I did to use the new cdc feature. Kinda cool. View better in 720p on the video bar.

Will post FezTerm project next.


#14

Was slow at the beginning but then it got very exciting! Looking forward to see the project page :wink:


#15

Thanks Gus. I will try to speed it up next time.


#16

Hello all,

Just played with this option today to see how it works
And i can see the results poping up into the comm terminal and i can walk trough the code.
But a Debug.Write(‘test’); that i added is not shown,

Do i miss a setting somewhere?

thanks


#17

Debug.Write(‘test’); ?


#18

This is the source code i used:

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.USBClient;
using GHIElectronics.NETMF.Hardware;

namespace USBClient_Example
{
    public class Program
    {
        public static void Main()
        {
            OutputPort LED = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.LED, false);
            USBC_CDC cdc = USBClientController.StandardDevices.StartCDC_WithDebugging();

            // Send "Hello world!" to PC every second. (Append a new line too)
            byte[] bytes = System.Text.Encoding.UTF8.GetBytes("Hello world!\r\n");
            while (true)
            {
                    LED.Write(false);
                    cdc.Write(bytes, 0, bytes.Length);
                    Debug.Print("test..."); 
 
                Thread.Sleep(1000);
            }
        }
    }
}

I expected the Debug.Print message in the output box of Visual C# to see. But it does not show at all.


#19

If you step through the the code then you should see it


#20

Tried that indeed, but then it is also not shown, sorry :wink: