Debugging target is not in an initialized state

I’m getting this ‘not in an initialized state’ error when I try to debug this project on a Fez Cerbuino Bee:
https://cc3100.codeplex.com

According to this,
https://www.ghielectronics.com/community/forum/topic?id=9183
it may have to do with a Framework mismatch, however I don’t find any ‘gadgeteer’ reference in the source files so I can’t apply the fix mentioned on that thread.

In the project properties, if I try to set the Target framework to anything other than 4.3, the debugger complains,
“Cannot deploy the base assembly ‘mscorlib’, or any of his satellite assemblies, to device - USB:Gadgeteer twice. Assembly ‘mscorlib’ on the device has version 4.3.1.0, while the program is trying to deploy version 4.2.0.0” Which makes sense since the FEZ Config program show my board to be running 4.3.7.10.

Has anyone tried running this project or suggestions how to fix the debugger issue?

Hi and welcome to the forum

Can you get the firmware check report from Fez Config for your device ?

Can you also try this debug step and when it says rebooting, you manually press the reset on the device and see if that allows it to finish?

Can you also tell us about how you generated the project - did you create your own new project and include the code from the CC3100 project into that, or did you open a CC3100 supplied project?

Thanks, the FEZ Config program show my board to be running 4.3.7.10.

I didn’t notice any change when pressing the reset before/during starting to debug.

I’m using the CC3100 project without any source change, and it compiles fine (MS Community 2013 V12.0.31101.00 Update 4). The only thing I did was to set the Project properties to Framework 4.3 and the debugger to use the USB transport and Cerb-Family (non-commerical use)_Gadgeteer under ‘Device’.

This project looks appears to links with a CC3100 dll… something I didn’t build since the dll was included in the project. Is it possible I would need to build an updated 4.3 version of that dll?


Found debugger!
Create TS.
 Loading start at 8079dd4, end 809fd60

   Assembly: mscorlib (4.3.1.0)     Assembly: Microsoft.SPOT.Native (4.3.1.0)     Assembly: Microsoft.SPOT.Hardware (4.3.1.0)  
   Assembly: Microsoft.SPOT.Graphics (4.3.1.0)     Assembly: Microsoft.SPOT.TinyCore (4.3.1.0)  
   Assembly: Microsoft.SPOT.IO (4.3.1.0)     Assembly: System.IO (4.3.1.0)     Assembly: Microsoft.SPOT.Hardware.Usb (4.3.1.0) 
    Assembly: Microsoft.SPOT.Hardware.SerialPort (4.3.1.0)     Assembly: Microsoft.SPOT.Hardware.PWM (4.3.1.0)  
Loading Deployment Assemblies.

Attaching deployed file.
   Assembly: WifiExampleApp (1.0.5761.15578)  Attaching deployed file.
   Assembly: Networking.WifiAdapter (1.0.5341.28501)  Resolving.
Link failure: some assembly references cannot be resolved!!

Assembly: WifiExampleApp (1.0.5761.15578) needs assembly 'Networking.WifiAdapter' (1.0.5341.28501)
Assembly: Networking.WifiAdapter (1.0.5341.28501) needs assembly 'mscorlib' (4.3.0.0)
Assembly: Networking.WifiAdapter (1.0.5341.28501) needs assembly 'Microsoft.SPOT.Hardware' (4.3.0.0)
Assembly: Networking.WifiAdapter (1.0.5341.28501) needs assembly 'Microsoft.SPOT.Hardware.SerialPort' (4.3.0.0)
Assembly: Networking.WifiAdapter (1.0.5341.28501) needs assembly 'Microsoft.SPOT.Native' (4.3.0.0)
Assembly: Networking.WifiAdapter (1.0.5341.28501) needs assembly 'System.IO' (4.3.0.0)

Error: a3000000

Waiting for debug commands...
The program '[6] Micro Framework application: Managed' has exited with code 0 (0x0).

[UPDATE] Tried rebuilding the dependent dll and placing it in this project’s debug/release folders but no luck

reload the firmware and then try to deploy a simple hello world application.

if this works, then there was something wrong with the software you were trying to debug, and it was crashing or going into a loop, which is stopping the debugge r from attaching.

This is a pretty easy one to diagnose now.

Error: a3000000

Your app and firmware don’t match.

Reapply the firmware to make sure you have the SDK you have installed matching the firmware on your device.

Also from your log:

Assembly: Networking.WifiAdapter (1.0.5341.28501) needs assembly ‘mscorlib’ (4.3.0.0)
… but earlier …
Assembly: mscorlib (4.3.1.0)

So you can see the WiFiAdapter class will likely need to be rebuilt.

Thanks that worked!

Building the dll project, but adding the reference to that project did the trick!

1 Like