Error on deployment to UC5550

I keep bumping into the restriction of 65K per assembly. I have successfully transfered sum code to other assemblies/DLLs. The latest go around resulted in and error. Here is the output:

Found debugger!

Create TS.

Loading Deployment Assemblies.

Attaching deployed file.

Assembly: Vista_TinyCLR (1.0.0.0) Attaching deployed file.

Assembly: mscorlib (1.0.0.0) Attaching deployed file.

Assembly: Vista_DataDefs (1.0.0.0) Attaching deployed file.

Assembly: Vista_Components (1.0.0.0) Attaching deployed file.

Assembly: GHIElectronics.TinyCLR.IO (1.0.0.0) Attaching deployed file.

Assembly: GHIElectronics.TinyCLR.Drawing (1.0.1.0)

Error: the reference GHIElectronics.TinyCLR.Drawing cannot be used with this version of the firmware.

Firmware checksum 0xF2B1785E does not match the assembly checksum 0xC8AB3CAB.

Resolving.

Link failure: some assembly references cannot be resolved!!

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Devices.I2c’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Devices.Gpio’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Devices.Can’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Drawing’ (1.0.1.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘Vista_Components’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘Vista_Keyboard’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘Vista_DataDefs’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Devices.Display’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘Vista_GlobalSettings’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Devices.Uart’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘Vista_Stat’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘Vista_Helpers’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Native’ (1.0.0.0)

Assembly: Vista_TinyCLR (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Pins.UCM’ (1.0.0.0)

Assembly: Vista_DataDefs (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Drawing’ (1.0.1.0)

Assembly: Vista_DataDefs (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Devices.Storage’ (1.0.0.0)

Assembly: Vista_DataDefs (1.0.0.0) needs assembly ‘Vista_Stat’ (1.0.0.0)

Assembly: Vista_DataDefs (1.0.0.0) needs assembly ‘Vista_Helpers’ (1.0.0.0)

Assembly: Vista_Components (1.0.0.0) needs assembly ‘GHIElectronics.TinyCLR.Drawing’ (1.0.1.0)

Assembly: Vista_Components (1.0.0.0) needs assembly ‘Vista_Stat’ (1.0.0.0)

Assembly: Vista_Components (1.0.0.0) needs assembly ‘Vista_DataDefs’ (1.0.0.0)

Error: a3000000

Waiting for debug commands…

The program ‘[136] TinyCLR application: Managed’ has exited with code 0 (0x0).

I have used TinyClr Config to ensure the correct firmware. (UC5550 V1.0.0)

What do I do now ???

First of all, 65K is max for one dll. If more than 65KB, you have to split them into smaller assemblies.

From your Visual stuio c# project, you may want to delete all your assembly references, clean up the project and re-add them again.

And make sure those assemblies match with firmware version.

Firmware checksum 0xF2B1785E

What firmware you are using?

1 Like

It turns out tha6t the issue is drawing 1.0.1. When I updated my projects to 1.0.1, I got the above error.

Everything runs Ok on drawing 1.0.0

Not sure I understand but the firmware on the device needs to match the bug nuget and the extension.