Hallo!
I have written a program that works fine when i execute it in visual studio.
All breakpoints are hit. Also when i disable them the code works as expected!
When i now disconnect my N+2 from my USB Port and then reconnect it,
i can see that the N+2 is rebooting, but the code does not work anymore?
Is there something special i have to do?
I am very frustrated at the moment!!!
Thanks in advance for your help.
Greets,
poschi8
Netduino Plus 2, strange reboot behavior
#1
Posted 02 February 2015 - 06:13 PM
#2
Posted 02 February 2015 - 10:19 PM
Hi poschi8,
When you reconnect the NP2 it should just start running your code.
But if for example you are initializing I2C channels that do not have the hardware attached exceptions will be thrown and your program will halt.
Also when the device is connected to the PC and you have the debugger running it will be relatively slow performing because of the traffic overhead over the USB channel especially when doing debug.print statements because they are transferred from the device to the PC.
So timing specific routines could be running differently when you have the device connected/disconnected.
Cheers,
Beasty
Van SchOten Ict Diensten en Services
http://www.voids.nl
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users