This has always been the same. NETMF is managed language so you should always use events if you want things to run smooth. Even if you have loops, add a little sleep in it to let the rest of the system run without stressing it.
@ SQ77, you say you canât even deploy once, do you really mean that ? Youâve never put your code on the device?
As Gus says, without time for the debugger to attach VS wonât be able to connect. The simplest way I find to get around that, and it may not work in the 4.2 SDKs very well (Iâm still on 4.1) is to press reset while starting the deployment process. YMMV. The alternative is to get into MFDeploy and erase your code that way, but you also need to get into the debugger.
Mike will chime in soon with his approach to this, which from memory is adding in some time or a button check as the first thing the app does, so you always get a chance to stop it from going into the tight loop portion of your code which gives the debugger time to attach
I have the same problem on my laptop with Windows 7 Pro 64-bit.
Another laptop running Windows 7 Pro 32-bit has no issues.
32-bit OS installed on VMWare (host OS is Windows 7 64-bit) doesnât help.
On my 64-bit OS:
I can do anything I want with my Cerbuino using MFDeploy or STDFU tester.
But I have constant problems with deploying and debugging using Visual Studio. I got several types of misbehavior: âAn error has occurred: please check your hardwareâ, âDevice not found or cannot be openedâ, debugger starts but doesnât hit any breakpoint,
Couple of times board reset during deploy made it work.
Yesterday I noticed that this âreset trickâ made it work for some time: until OS reboot. That makes clear the fact that x64 drivers still have a lot to work on.
So I decided to use my old laptop with 32-bit OS (but itâs a real pain - slow processor and tiny screen).
I hope you guys have a plan how to fix these 64-bit issuesâŚ
But great job, anyway!
No I have deployed before. But since I got the latest SDKs I canât deploy even once after having wiped the device clean (and putting the latest tiny booter on it).
If itâs helpful to know, when I write the firmware in MFDeploy and then get the error at the end with the signature validation, pinging it will show TinyBooter. But if I reboot just the CLR (still in the MFDeploy UI) I can then ping and get TinyCLR as a response.
When I first did that I was excited because I thought visual studio would start deploying, but unfortunately no
What is the Tinybooter dfu file number? Is it TinyBooter_4_2_3_0.dfu or TinyBooter_4_2_3_1.dfu? Plus verify that you click âCreate from Mapâ and then Erase and then Go or any minor change (down to byte) can cause the system to not function.