Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Netduino Plus 2, strange reboot behavior


  • Please log in to reply
1 reply to this topic

#1 poschi8

poschi8

    Member

  • Members
  • PipPip
  • 15 posts

Posted 02 February 2015 - 06:13 PM

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



#2 beastyboy

beastyboy

    Advanced Member

  • Members
  • PipPipPip
  • 194 posts
  • LocationNetherlands

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

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.