Skip to content

Commit

Permalink
Work on Wire Protocol and VS debugging support
Browse files Browse the repository at this point in the history
- Improvements in MessageReassembler
- Work on `Engine.ProcessMessageAsync`
- Work on Engine to start adding support for VS debugging session
- Add several new classes to add support for VS debugging session
- Several improvements in WPF test app
- Clean-up `Debug.Writeline` not required anymore
- Add `/unsafe` to msbuild command in AppVeyor

Signed-off-by: José Simões <[email protected]>
  • Loading branch information
josesimoes committed Oct 26, 2017
1 parent 5776166 commit 71cd32f
Show file tree
Hide file tree
Showing 19 changed files with 3,634 additions and 37 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@
msbuild source\nanoFramework.Tools.Debugger.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
msbuild /t:pack source\nanoFramework.Tools.DebugLibrary.Net\nanoFramework.Tools.DebugLibrary.Net.csproj /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
msbuild /t:pack source\nanoFramework.Tools.DebugLibrary.Net\nanoFramework.Tools.DebugLibrary.Net.csproj /unsafe /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
msbuild /t:pack source\nanoFramework.Tools.DebugLibrary.UWP\nanoFramework.Tools.DebugLibrary.UWP.csproj /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
msbuild /t:pack source\nanoFramework.Tools.DebugLibrary.UWP\nanoFramework.Tools.DebugLibrary.UWP.csproj /unsafe /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
on_success:
# for this environment variable to work here it has to be set in AppVeyor UI
Expand Down
5 changes: 4 additions & 1 deletion source/USB Test App WPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private async void ConnectDeviceButton_ClickAsync(object sender, RoutedEventArgs
await Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(async () =>
{
bool connectResult = await (DataContext as MainViewModel).AvailableDevices[DeviceGrid.SelectedIndex].DebugEngine.ConnectAsync(3, 500);
bool connectResult = await (DataContext as MainViewModel).AvailableDevices[DeviceGrid.SelectedIndex].DebugEngine.ConnectAsync(3, 1000, true);
var di = await (DataContext as MainViewModel).AvailableDevices[DeviceGrid.SelectedIndex].GetDeviceInfoAsync();
Expand Down Expand Up @@ -346,6 +346,9 @@ private async void SoftRebootDeviceButton_Click(object sender, RoutedEventArgs e
await (DataContext as MainViewModel).AvailableDevices[DeviceGrid.SelectedIndex].DebugEngine.RebootDeviceAsync(nanoFramework.Tools.Debugger.RebootOption.NormalReboot);
// need to disconnect from device too
(DataContext as MainViewModel).AvailableDevices[DeviceGrid.SelectedIndex].DebugEngine.Disconnect();
Debug.WriteLine("");
Debug.WriteLine("");
Debug.WriteLine($"soft reboot");
Expand Down
Loading

0 comments on commit 71cd32f

Please sign in to comment.