This morning, one of my project based on the Raptor Mainboard has started givin’ error during the startup of the debugger: “unknown type: System.Decimal”
Found debugger!
Create TS.
Loading start at 8062c6c, end 808cfec
Assembly: mscorlib (4.2.0.0) Assembly: Microsoft.SPOT.Native (4.2.0.0) Assembly: Microsoft.SPOT.Hardware (4.2.0.0)
Assembly: Microsoft.SPOT.Graphics (4.2.0.0) Assembly: Microsoft.SPOT.TinyCore (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0) Assembly: Microsoft.SPOT.IO (4.2.0.0)
Assembly: System.IO (4.2.0.0) Assembly: Microsoft.SPOT.Hardware.OneWire (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.Usb (4.2.0.0) Assembly: System.Xml (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1) Assembly: Microsoft.SPOT.Net (4.2.0.0)
Assembly: System (4.2.0.0) Loading Deployment Assemblies.
Attaching deployed file.
Assembly: Gadgeteer (2.42.0.0) Attaching deployed file.
Assembly: Microsoft.SPOT.Net.Security (4.2.0.0) Attaching deployed file.
Assembly: GHI.OSHW.Hardware (4.2.6.1) Attaching deployed file.
Assembly: Microsoft.SPOT.Touch (4.2.0.0) Attaching deployed file.
Assembly: System.Http (4.2.0.0) Attaching deployed file.
Assembly: System.Net.Security (4.2.0.0) Attaching deployed file.
Assembly: CerbuinoSandBox (1.0.0.0) Attaching deployed file.
Assembly: GHIElectronics.Gadgeteer.FEZCerbuinoBee (4.2.102.0) Resolving.
Resolve: unknown type: System.Decimal
Error: ff000000
Waiting for debug commands...
The program '[2] Micro Framework application: Managed' has exited with code 0 (0x0).
I then tried to insert a decimal variable into another “clean” project with the Cerbuino, but the problem still remains. So I dusted off the old Netduino for the same test, but the same error occurred.
It follows that the struct decimal seems to be not supported by NETMF, but I read on the web that decimal struct is supported from NETFM 3.0+ (Decimal Structure | Microsoft Learn).
What’s happening? (Really… I don’t use drugs!!! ;D)
Thanks for your attention, have a nice day!