Skip to content

Commit 6b5dc14

Browse files
authored
Improve samples (#156)
1 parent cdb3b27 commit 6b5dc14

File tree

6 files changed

+50
-7
lines changed

6 files changed

+50
-7
lines changed

Samples/GetDeviceDetails/GetDeviceDetails.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</ItemGroup>
5555
<ItemGroup>
5656
<PackageReference Include="nanoFramework.Tools.FirmwareFlasher">
57-
<Version>2.2.1</Version>
57+
<Version>2.2.2</Version>
5858
</PackageReference>
5959
</ItemGroup>
6060
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

Samples/ListJLinkDevicesApp/ListJLinkDevicesApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</ItemGroup>
5555
<ItemGroup>
5656
<PackageReference Include="nanoFramework.Tools.FirmwareFlasher">
57-
<Version>2.2.1</Version>
57+
<Version>2.2.2</Version>
5858
</PackageReference>
5959
</ItemGroup>
6060
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

Samples/ListStmJtagDevicesApp/ListStmJtagDevicesApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
</ItemGroup>
5353
<ItemGroup>
5454
<PackageReference Include="nanoFramework.Tools.FirmwareFlasher">
55-
<Version>2.2.1</Version>
55+
<Version>2.2.2</Version>
5656
</PackageReference>
5757
<PackageReference Include="Newtonsoft.Json">
5858
<Version>13.0.1</Version>

Samples/README.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,56 @@ A couple of lines of code it's all it takes:
9696
```csharp
9797
var nanoDeviceOperations = new NanoDeviceOperations();
9898

99-
nanoDeviceOperations.GetDeviceDetails("COM22");
99+
NanoDeviceBase nanoDevice = null;
100+
nanoDeviceOperations.GetDeviceDetails(
101+
"COM22",
102+
ref nanoDevice);
100103
```
101104

102105
Here's a sample output from the above code:
103106

104107
```text
105-
108+
HAL build info: nanoCLR running @ ORGPAL_PALTHREE built with ChibiOS v2021.11.2.11
109+
Target: ORGPAL_PALTHREE
110+
Platform: STM32F7
111+
112+
Firmware build Info:
113+
Date: Aug 18 2022
114+
Type: MinSizeRel build with ChibiOS v2021.11.2.11
115+
CLR Version: 1.8.0.495
116+
Compiler: GNU ARM GCC v10.3.1
117+
118+
OEM Product codes (vendor, model, SKU): 0, 0, 0
119+
120+
Serial Numbers (module, system):
121+
00000000000000000000000000000000
122+
0000000000000000
123+
124+
Target capabilities:
125+
Has nanoBooter: YES
126+
nanoBooter: v1.8.0.495
127+
IFU capable: NO
128+
Has proprietary bootloader: NO
129+
130+
AppDomains:
131+
132+
Assemblies:
133+
FileAccess, 1.0.0.0
134+
System.IO.Streams, 1.1.9.9530
135+
System.IO.FileSystem, 1.1.2.59752
136+
mscorlib, 1.12.0.4
137+
138+
Native Assemblies:
139+
mscorlib v100.5.0.17, checksum 0x004CF1CE
140+
nanoFramework.Runtime.Native v100.0.9.0, checksum 0x109F6F22
141+
nanoFramework.Hardware.Stm32 v100.0.4.4, checksum 0x0874B6FE
142+
nanoFramework.Networking.Sntp v100.0.4.4, checksum 0xE2D9BDED
143+
nanoFramework.ResourceManager v100.0.0.1, checksum 0xDCD7DF4D
144+
nanoFramework.System.Collections v100.0.1.0, checksum 0x2DC2B090
145+
nanoFramework.System.Text v100.0.0.1, checksum 0x8E6EB73D
146+
nanoFramework.Runtime.Events v100.0.8.0, checksum 0x0EAB00C9
147+
EventSink v1.0.0.0, checksum 0xF32F4C3E
148+
System.IO.FileSystem v1.0.0.0, checksum 0x3AB74021
106149
```
107150

108151
### Update the CLR of a connected nano device

Samples/UpdateEsp32Device/UpdateEsp32Device.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</ItemGroup>
5555
<ItemGroup>
5656
<PackageReference Include="nanoFramework.Tools.FirmwareFlasher">
57-
<Version>2.2.1</Version>
57+
<Version>2.2.2</Version>
5858
</PackageReference>
5959
</ItemGroup>
6060
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

Samples/UpdateNanoDeviceClr/UpdateNanoDeviceClr.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
</ItemGroup>
5656
<ItemGroup>
5757
<PackageReference Include="nanoFramework.Tools.FirmwareFlasher">
58-
<Version>2.2.1</Version>
58+
<Version>2.2.2</Version>
5959
</PackageReference>
6060
</ItemGroup>
6161
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

0 commit comments

Comments
 (0)