[Fez Panda II]
I use the SystemUpdate.ApplicationUpdate.Write method as in the docs.
SystemUpdate.ApplicationUpdate.Write(buffer, 0, read);
I used the name read instead of length here but that’s it.
I tried reducing the buffer size (as the docs are probably based on the ChipworkX)
but that doesn’t help either…
I simply get:
A first chance exception of type ‘System.ArgumentException’ occurred in GHIElectronics.NETMF.SystemUpdate.dll
An unhandled exception of type ‘System.ArgumentException’ occurred in GHIElectronics.NETMF.SystemUpdate.dll
The docs do not indicate this method might throw that exception or why
Update: I did read somewhere that the data is checked as it comes in,
throwing an argument exception if the data is not valid.
If this is the case, which would be great, that would mean I don’t have to implement
my own crc checking. It should be added to the docs though…
In any case, I have a deployment file, I can deploy it using Teraterm.
I then took that file, converted it as described in the docs and used the resulting hex file
to upload here. It throws argument exceptions completely at random…