Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

magtag circuitpython not responding
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

magtag circuitpython not responding

by techluma on Sun May 16, 2021 11:26 am

Hi all,

Need some help. I recently purchased two magtags after waiting awhile for them to come in stock. The first is working great.

The second seems to be hanging somewhere, even in the default code.py. (I.e., the print("Hello World!")) Specifically, nothing gets printed to the terminal in Mu, and there is no response to terminal input. A few notes:

- I've erased a reflashed multiple times, both loading the latest circuitpython (6.2) bin directly and also copying the uf2 after flashing the tinyuf2 bootloader. In both cases, we get to the CIRCUITPY drive mode just fine. At this point, though, we get nothing from the MU terminal. (In contrast to the working magtag, where you'll see the "Hello World!" print and can interact with REPL.

- If I create a boot.py with the simple print content, I _will_ see the output boot_out.txt. Any more complex examples that touch the hardware or use the magtag libraries, though, will cause the boot to "hang" (loop?), even if the code itself should run through. (code doesn't contain loops, sleeps, etc.)


Any thoughts on next steps? Is there some sort of hardware verification firmware that I could flash to determine if a hardware problem?

Thanks!

--Ron

techluma
 
Posts: 10
Joined: Fri Sep 28, 2012 9:31 pm

Re: magtag circuitpython not responding

by dastels on Sun May 16, 2021 11:52 am

Odd. The hardware seems to be working since you can flash it, the drive mounts and the boot.py execution works.

What are the contents of CIRCUITPY?

Dave

dastels
 
Posts: 7924
Joined: Tue Oct 20, 2015 3:22 pm

Re: magtag circuitpython not responding

by techluma on Sun May 16, 2021 9:17 pm

Contents of CIRCUITPY are:

Code: Select all | TOGGLE FULL SIZE
    Directory: D:\


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         12/3/2016  11:18 PM                .fseventsd
d-----         12/3/2016  11:18 PM                lib
-a----         12/3/2016  11:18 PM              0 .metadata_never_index
-a----         12/3/2016  11:18 PM              0 .Trashes
-a----         12/3/2016  11:18 PM             22 code.py
-a----         12/3/2016  11:18 PM             74 boot_out.txt


This is the same as the other Magtag that works correctly.

techluma
 
Posts: 10
Joined: Fri Sep 28, 2012 9:31 pm

Re: magtag circuitpython not responding

by adafruit_support_carter on Mon May 24, 2021 3:24 pm

Hey. Sorry for delayed response. That listing is from your problematic board? If so, can you post the code listing for that code.py file?

Is Mu your only way of accessing the serial output?

adafruit_support_carter
 
Posts: 21891
Joined: Tue Nov 29, 2016 2:45 pm

Re: magtag circuitpython not responding

by techluma on Mon May 24, 2021 4:30 pm

Hi Carter. That's correct. This is the filesystem of the non-functioning board, immediately after erase/reflash/tinyuf2/circuitpython. code.py contains the default circuitpython6.2 contents:

Code: Select all | TOGGLE FULL SIZE
print("Hello World!")


I'm happy to use whatever serial terminal you like, but I can confirm that at least with Mu and Mobaterm, there is no response from the USB serial device associated with the non-functioning magtag.


Thanks!

--Ron

techluma
 
Posts: 10
Joined: Fri Sep 28, 2012 9:31 pm

Re: magtag circuitpython not responding

by adafruit_support_carter on Mon May 24, 2021 4:57 pm

At the point where you have the CIRCUITPY folder showing up, are you seeing any COM ports in your Device Manager, or whatever the equivalent is for your OS?

adafruit_support_carter
 
Posts: 21891
Joined: Tue Nov 29, 2016 2:45 pm

Re: magtag circuitpython not responding

by techluma on Mon May 24, 2021 5:40 pm

Yes. The com port shows up, but no output after connecting a terminal app.

techluma
 
Posts: 10
Joined: Fri Sep 28, 2012 9:31 pm

Re: magtag circuitpython not responding

by adafruit_support_carter on Mon May 24, 2021 6:40 pm

And just to be sure - you're using everything else the same with the one that works? Same USB cable, port, etc. You simply swap from one MagTag to the other and get that behavior? And it's repeatable.

adafruit_support_carter
 
Posts: 21891
Joined: Tue Nov 29, 2016 2:45 pm

Re: magtag circuitpython not responding

by techluma on Mon May 24, 2021 7:09 pm

Correct. Everything works as expected with the other one. Only difference is the Magtag device itself.

techluma
 
Posts: 10
Joined: Fri Sep 28, 2012 9:31 pm

Re: magtag circuitpython not responding

by adafruit_support_carter on Mon May 24, 2021 8:56 pm

Are you using esptool.py to upload the firmware to the MagTag?

adafruit_support_carter
 
Posts: 21891
Joined: Tue Nov 29, 2016 2:45 pm

Re: magtag circuitpython not responding

by techluma on Tue May 25, 2021 1:29 pm

Hi Carter,

No, I have been using the Web Serial ESPTool. Seems to be working well.

techluma
 
Posts: 10
Joined: Fri Sep 28, 2012 9:31 pm

Re: magtag circuitpython not responding

by adafruit_support_carter on Tue May 25, 2021 1:34 pm

OK, that'll work also. When you did this:
- I've erased a reflashed multiple times,

was that this process?
https://learn.adafruit.com/adafruit-mag ... 3079291-11
If not, try that and see if it helps. Do the erase, and then reload.

adafruit_support_carter
 
Posts: 21891
Joined: Tue Nov 29, 2016 2:45 pm

Re: magtag circuitpython not responding

by techluma on Tue May 25, 2021 1:48 pm

Correct. I've explicitly erased and reloaded a number of times now. Same result. (In fact, that's why I called this out in my original message.)

techluma
 
Posts: 10
Joined: Fri Sep 28, 2012 9:31 pm

Re: magtag circuitpython not responding

by adafruit_support_carter on Tue May 25, 2021 3:17 pm

OK, we are super baffled and not sure what's going on with that one. Let's just replace it and see what happens.

Send an email to support@adafruit.com with a link to this thread and your order number and they can send you a replacement MagTag.

adafruit_support_carter
 
Posts: 21891
Joined: Tue Nov 29, 2016 2:45 pm

Re: magtag circuitpython not responding

by techluma on Tue May 25, 2021 3:50 pm

Agreed. I'm baffled as well, since it seems very _close_ to working normally. Thanks for the attempt.

--Ron

techluma
 
Posts: 10
Joined: Fri Sep 28, 2012 9:31 pm

Please be positive and constructive with your questions and comments.