2015 NETMF and Gadgeteer R1 Pre-Release

Cannot update firmware of G120 using FEZ Config. I have tried two Cobra II boards, they both behave the same way - button Next becomes enabled for a few milliseconds only. G400 works fine.

http://screencast.com/t/UbKBuRWFd

I have an opposite question.
Can we use the last loader version 4.3.7.7 from(from SDK2015 R1) on G400 together with older(previous) version of firmware(4.3.6.0 2014 R5) without any problems?
The reason is simple. I would like to test latest firmware on the PCBs with G400 on the customer side but in case there is some problem I would like to have still possibility to return back to 4.3.6.0 either through IFU or through FEZConfig without necessity to change TinyBooter as the user is not NETMF expert(SAMBA stuff might be to complicated for customer).
Or second intention is to start with loader 4.3.7.7 together with application based on previous firmware 4.3.6.0 and upgrade to the latest official firmware release when ready in future - I know it suppose that latest loader 4.3.7.7 will not be changed(significantly) when with official release of firmware is out.

@ Simon from Vilnius
I have finally been able to update the loader. I think one issue may have been having other devices plugged into Raptor sockets during the update. As I have retried the update several times, I do not know exactly the cause of the problem.
Thanks for your help

I was trying to install it on another PC, but I was getting an error. A dialog box was raised and I was asked to select where NETMF SDK.exe is located.

[quote][15A4:0938][2015-05-08T10:23:37]i299: Plan complete, result: 0x0
[15A4:0938][2015-05-08T10:23:37]i300: Apply begin
[06BC:1358][2015-05-08T10:23:37]i360: Creating a system restore point.
[06BC:1358][2015-05-08T10:23:44]i361: Created a system restore point.
[06BC:1358][2015-05-08T10:23:44]i000: Caching bundle from: ‘C:\Users\User\AppData\Local\Temp{38438792-8d4c-457d-bb8a-6a182aca32c4}.be\NETMF SDK.exe’ to: ‘C:\ProgramData\Package Cache{38438792-8d4c-457d-bb8a-6a182aca32c4}\NETMF SDK.exe’
[06BC:1358][2015-05-08T10:23:44]i320: Registering bundle dependency provider: {38438792-8d4c-457d-bb8a-6a182aca32c4}, version: 2015.1.7.0
[15A4:1710][2015-05-08T10:23:44]w341: Prompt for source of container: WixAttachedContainer, path: C:\Users\User\Downloads\NETMF SDK.exe
[15A4:1710][2015-05-08T10:24:07]e054: Failed to resolve source for file: C:\Users\User\Downloads\NETMF SDK.exe, error: 0x80070642.
[15A4:1710][2015-05-08T10:24:07]e000: Error 0x80070642: Failed while prompting for source (original path ‘C:\Users\User\Downloads\NETMF SDK.exe’).
[15A4:1710][2015-05-08T10:24:07]e311: Failed to acquire container: WixAttachedContainer to working path: C:\Users\User\AppData\Local\Temp{38438792-8d4c-457d-bb8a-6a182aca32c4}\A140AF8AB3359AB4069336D17C19D6AFF8788875, error: 0x80070642.
[15A4:0938][2015-05-08T10:24:07]e000: Error 0x80070642: Failed while caching, aborting execution.
[06BC:1358][2015-05-08T10:24:07]i330: Removed bundle dependency provider: {38438792-8d4c-457d-bb8a-6a182aca32c4}
[06BC:1358][2015-05-08T10:24:07]i352: Removing cached bundle: {38438792-8d4c-457d-bb8a-6a182aca32c4}, from path: C:\ProgramData\Package Cache{38438792-8d4c-457d-bb8a-6a182aca32c4}
[15A4:0938][2015-05-08T10:24:07]i399: Apply complete, result: 0x80070642, restart: None, ba requested restart: No[/quote]

@ mhstr - The same advice applies for going in the other direction. We highly recommend using the firmware and loader versions that go together. While in most cases things will work fine, there is a chance for unexpected behavior.

Unless any bugs come up, it is unlikely the loader version will change at release. Also keep in mind that this is a pre-release SDK and we do not recommend or support it in production environments.

@ iamin - What version of Windows are you running? Was there a NETMF sdk on it before this one?

@ John - Win7, 64bit. Yes, it was.

@ iamin - Can you uninstall everything and try again

@ John - I did, it didn’t help.

@ iamin - Is the log you posted the complete log from SDK.exe /log file.txt?

@ John - I have posted only the last lines of the log file. I have tried another thing: there was no [em]NETMF SDK.exe[/em] in [em]C:\Users\User\Downloads[/em], so I have found that file in [em]C:\Users\User\AppData\Local\Temp{38438792-8d4c-457d-bb8a-6a182aca32c4}.be[/em] and selected it in the file dialog box. However, that didn’t help either, I have received an error:

[quote][1408:07B0][2015-05-08T16:52:18]i000: Caching bundle from: ‘C:\Users\User\AppData\Local\Temp{38438792-8d4c-457d-bb8a-6a182aca32c4}.be\NETMF SDK.exe’ to: ‘C:\ProgramData\Package Cache{38438792-8d4c-457d-bb8a-6a182aca32c4}\NETMF SDK.exe’
[1408:07B0][2015-05-08T16:52:18]i320: Registering bundle dependency provider: {38438792-8d4c-457d-bb8a-6a182aca32c4}, version: 2015.1.7.0
[1408:0678][2015-05-08T16:52:20]i304: Verified existing payload: DfuSe_Demo_V3.0.3_Setup_amd64.exe at path: C:\ProgramData\Package Cache\676712FC14BC24F61C8DB296CC501E08CC58392E\DfuSe_Demo_V3.0.3_Setup_amd64.exe.
[17BC:158C][2015-05-08T16:52:20]w341: Prompt for source of container: WixAttachedContainer, path: C:\Users\User\Downloads\NETMF SDK.exe
[17BC:158C][2015-05-08T16:54:58]i336: Acquiring container: WixAttachedContainer, copy from: C:\Users\User\AppData\Local\Temp{38438792-8d4c-457d-bb8a-6a182aca32c4}.be\NETMF SDK.exe
[17BC:158C][2015-05-08T16:54:58]i000: Setting string variable ‘WixBundleLastUsedSource’ to value ‘C:\Users\User\AppData\Local\Temp{38438792-8d4c-457d-bb8a-6a182aca32c4}.be’
[17BC:1014][2015-05-08T16:54:58]e000: Error 0x80070001: Failed to extract all files from container, erf: 1:2:0
[17BC:158C][2015-05-08T16:54:58]e000: Error 0x80070001: Failed to wait for operation complete.
[17BC:158C][2015-05-08T16:54:58]e000: Error 0x80070001: Failed to open container.
[17BC:158C][2015-05-08T16:54:58]e000: Error 0x80070001: Failed to open container: WixAttachedContainer.
[17BC:158C][2015-05-08T16:54:58]e312: Failed to extract payloads from container: WixAttachedContainer to working path: C:\Users\User\AppData\Local\Temp{38438792-8d4c-457d-bb8a-6a182aca32c4}\A140AF8AB3359AB4069336D17C19D6AFF8788875, error: 0x80070001.
[1408:0678][2015-05-08T16:54:58]i351: Removing cached package: DfuSe_Demo_V3.0.3_Setup_amd64.exe, from path: C:\ProgramData\Package Cache\676712FC14BC24F61C8DB296CC501E08CC58392E
[17BC:0E98][2015-05-08T16:54:58]e000: Error 0x80070001: Failed while caching, aborting execution.
[1408:07B0][2015-05-08T16:54:58]i330: Removed bundle dependency provider: {38438792-8d4c-457d-bb8a-6a182aca32c4}
[1408:07B0][2015-05-08T16:54:58]i352: Removing cached bundle: {38438792-8d4c-457d-bb8a-6a182aca32c4}, from path: C:\ProgramData\Package Cache{38438792-8d4c-457d-bb8a-6a182aca32c4}
[17BC:0E98][2015-05-08T16:54:58]i399: Apply complete, result: 0x80070001, restart: None, ba requested restart: No[/quote]

@ iamin - Can you email me the entire log?

@ John - I don’t have you email address. You can download it from here: Dropbox - Error

One file - log that was obtained using [em]/log file.txt[/em], another - installer offered to save a log file.

@ iamin - Thanks. If you do not install the cerb family or g400/hydra loader updaters, does the issue persist?

@ John - If I select only NETMF 4.2 or NETMF4.3 to install I still get an error.

@ John - Maybe this will be of any help: http://www.daves-blog.net/post/2014/08/29/Signing-WIX-Bottstrapper.aspx

@ iamin - We do sign the installer and engine like they talked about, but it’s possible one of the stages failed. I’ll take a look.

I just experienced an issue that I had with the previous release where the serial data received handler refuses to fire, but the program continues to run other parts of the code.
This was discussed here: https://www.ghielectronics.com/community/forum/topic?id=18505

I have verified that data is present at the port, but no event fires. The event not firing issue appears after times as short as an hour to several hours of continuous, successful operation. No error is thrown.

The system includes a Raptor, T43 display, rs232 and rs485 ports. The code is quite large with 6 projects, many modules so I cannot post it.

It appears this issue happens less frequently than in the previous release.

Socket 6 on Cobra II Eco Extender board is not properly aligned (in Gadgeteer Designer). All other Cobra II boards are not affected by this issue.

Is your webcam example (https://www.ghielectronics.com/docs/36/usb-host#3127) supposed to work with the latest SDK? I am getting [em]System.IndexOutOfRangeException[/em] at [em]webcam.ImageAvailable += webcam_ImageAvailable;[/em] and VS is pointing to GHI.Hardware.dll => [em]ControllerAreaNetwork[/em] => [em]OnNativeEvent[/em]:

[quote]#### Exception System.IndexOutOfRangeException - 0xa9000000 (4) ####

Message:

GHI.IO.ControllerAreaNetwork::OnNativeEvent [IP: 0019]

GHI.Utilities.InternalEvent::RaiseEvent [IP: 000d]

GHI.Utilities.InternalEvent::OnEvent [IP: 001a]

A first chance exception of type ‘System.IndexOutOfRangeException’ occurred in GHI.Hardware.dll[/quote]

It is strange, because I am running this test on Cobra II Eco and I don’t use any network module.

UPDATE: After I have re-powered my Cobra II I no longer get this exception.