0

I messed up my Gemma M0 somehow.
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

I messed up my Gemma M0 somehow.

by agilliam on Wed Oct 10, 2018 5:47 pm

Hey all, I have received my Gemma M0 and when I plugged it in it was flashing through the RGB test code like normal. I thin assembled my two new your pixie sticks for the unicorn horn for my daughter’s Halloween costume. I uploaded the sample code and everything worked fine it was fading through the colors like it should. However I wanted to change the rate and it was changing and when I did that somehow a corrupted the main.py file. Now I can’t get it to do anything I can’t even save the main.py from the original test code back to the drive.

I have uploaded the uf2 firmware/image to my drive f:\ using boot loader mode. But still nothing. Now my led bro pixels don’t even light up! What did I do and how do I fix it?

agilliam
 
Posts: 6
Joined: Wed Oct 10, 2018 4:52 pm

Re: I messed up my Gemma M0 somehow.

by agilliam on Wed Oct 10, 2018 5:53 pm

Sorry for the typos. Siri is making me mad. It keeps messing up my posts.

I’m using the 8 led NEO pixel sticks.

agilliam
 
Posts: 6
Joined: Wed Oct 10, 2018 4:52 pm

Re: I messed up my Gemma M0 somehow.

by agilliam on Wed Oct 10, 2018 9:26 pm

As an update and desperate attempt to fix this, I tried deleting all files on the drive and extracting the zip file from the adafruit website. It is now back the way it was when I received it. With 1 major problem. It still isn’t working. Not the default python code or the unicorn python code. And I have renamed the files to main.py.

Nothing is working at all. I’ve double, triple and quadruple checked the connections. Only 3 wires and they are wired correctly. I have green as ground going to GND on Gemma to the GND pad on NEO pixels. I have purple wire going from D1 on Gemma to the DIN pad on the NEO Pixels. And red connected to VOUT to the 5VIN pad.

I have used double sided tape to stick them together and insulate the pads and solder joints. Using 4 pin smd style XH connectors.

Here are a few pics.
Attachments
8796E57F-BB5B-4CA6-81A0-6C2B9090602F.jpeg
8796E57F-BB5B-4CA6-81A0-6C2B9090602F.jpeg (47.48 KiB) Viewed 123 times
9BD19CA5-EEC9-423E-BD8D-42287C0507BE.jpeg
9BD19CA5-EEC9-423E-BD8D-42287C0507BE.jpeg (75.97 KiB) Viewed 123 times
BAD47FBA-7130-47FA-B427-A0AC7629480A.jpeg
BAD47FBA-7130-47FA-B427-A0AC7629480A.jpeg (55.6 KiB) Viewed 123 times

agilliam
 
Posts: 6
Joined: Wed Oct 10, 2018 4:52 pm

Re: I messed up my Gemma M0 somehow.

by agilliam on Wed Oct 10, 2018 9:44 pm

Never mind. It’s been fixed. Took a lot of research but is good now.

agilliam
 
Posts: 6
Joined: Wed Oct 10, 2018 4:52 pm

Re: I messed up my Gemma M0 somehow.

by agilliam on Wed Oct 10, 2018 10:14 pm

It only works when I program it using Arduino IDE. As soon as I put circuitpython / circuitplayground, it does nothing.

Anyone help me with that?

agilliam
 
Posts: 6
Joined: Wed Oct 10, 2018 4:52 pm

Re: I messed up my Gemma M0 somehow.

by danhalbert on Sun Oct 14, 2018 9:13 am

How did you fix it?
How are you reloading CircuitPython, what version, did you add libraries, and what's in main.py or code.py?

danhalbert
 
Posts: 1267
Joined: Tue Aug 08, 2017 12:37 pm

Re: I messed up my Gemma M0 somehow.

by agilliam on Wed Oct 24, 2018 11:58 am

The fix was using Arduino IDE to program it. However I can’t get circuit playground to work. I have downloaded the files from your page link and downloaded for Gemma M0. I pressed reset 2x and put it into flash mode and drag and dropped the image over to the appropriate drive. It comes back after flashing but main.py is blank. I didn’t check code.py. It’s been almost 2 weeks now so I gave up on that one. I’ll check and get back. I’d really like to get it working correctly.

agilliam
 
Posts: 6
Joined: Wed Oct 10, 2018 4:52 pm

Re: I messed up my Gemma M0 somehow.

by danhalbert on Wed Oct 24, 2018 12:47 pm

The Gemma is not a Circuit Playground? Which file did you download to load CircuitPython on it, and how did you try to load CircuitPython?
You want to download: https://github.com/adafruit/circuitpyth ... -3.0.3.uf2
then double-click the reset button to get GEMMABOOT, and drag the .uf2 above to GEMMABOOT.

Also, I happen to have made up a fresh load for Gemma M0 with libraries and the demo program. See this page:
https://learn.adafruit.com/adafruit-gemma-m0/downloads
Download this: https://cdn-learn.adafruit.com/assets/a ... 1539974383 (Update to CircuitPython 3.0.3 with lib and demo main.py file: gemma-m0-circuitpython-main-lib-3.0.3.uf2)

danhalbert
 
Posts: 1267
Joined: Tue Aug 08, 2017 12:37 pm

Please be positive and constructive with your questions and comments.