Metro M0 only runs sketch when connected to computer

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
cdwille
 
Posts: 9
Joined: Thu Jul 18, 2013 11:54 am

Metro M0 only runs sketch when connected to computer

Post by cdwille »

So I am having what I believe to be a weird problem, the Metro M0 only runs sketch when connected to computer. When connected to DC power nothing, USB to a wall, still nothing. But plug it into a computer with USB, do nothing but have Arduino open bingo it works, we are not reloading the sketch, just monitoring serial com and it's all aces.

Do I need to boot load the sketch? It is kind of frustrating because there is no reason I can see why the sketch shouldn't run otherwise.

User avatar
dastels
 
Posts: 15656
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M0 only runs sketch when connected to computer

Post by dastels »

Are you using Serial? With something like this near the start of setup?

Code: Select all

while (!Serial);
If so, it's sitting there waiting for a serial connection that never happens.

Dave

User avatar
cdwille
 
Posts: 9
Joined: Thu Jul 18, 2013 11:54 am

Re: Metro M0 only runs sketch when connected to computer

Post by cdwille »

I will comment that out re-upload when I can and see if that does it thanks.

User avatar
cdwille
 
Posts: 9
Joined: Thu Jul 18, 2013 11:54 am

Re: Metro M0 only runs sketch when connected to computer

Post by cdwille »

That fixed it THANKS!!!

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”