Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Feather M0 Adalogger Not Enumerating - Firmware Requested
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather M0 Adalogger Not Enumerating - Firmware Requested

by stook on Mon Jan 11, 2016 11:59 am

Hi,

The Feather M0 Adalogger(https://learn.adafruit.com/adafruit-feather-m0-adalogger/) I recently purchased is no longer being detected by my PC when I plug it in to the USB port. I've tried all of the steps outlined here (https://learn.adafruit.com/adafruit-feather-m0-adalogger/faq) to bring it back with no success. Nothing happens when I double click the reset button so I suspect the bootloader is corrupted. I purchased an ST-Link debugger and setup the Adalink and OpenOCD software to reflash the firmware, however I cannot find the necessary hex files needed. If you could supply me with a link to the hex files I will attempt to reflash the Feather M0 using Adalink.

Thank you

stook
 
Posts: 15
Joined: Sun Jan 12, 2014 9:33 pm

Re: Feather M0 Adalogger Not Enumerating - Firmware Requeste

by adafruit2 on Tue Jan 12, 2016 1:08 pm

thats...pretty amazing that it wont even enumerate. do you know what you did? just cuz...the bootloader shouldnt be deleted ever :/

I tossed it in here tho!
https://github.com/adafruit/Adafruit-Fe ... -Proto-PCB
(its just the classic Arduino Zero bossac bootloader with new VID/PID)

adafruit2
Site Admin
 
Posts: 19408
Joined: Fri Mar 11, 2005 7:36 pm

Re: Feather M0 Adalogger Not Enumerating - Firmware Requeste

by stook on Tue Jan 12, 2016 5:03 pm

Thank you so much for the file, I just reflashed the bootloader and my PC was able to detect the board again. I uploaded the blink sketch and it ran successfully. I'm glad I was able to do something amazing lol :D Now if only I was lucky enough to win that megamillions(billions)...

The quick run down of my project is: I am creating a system to record and log sensor data (temperature, etc.) onto an SD card using a microcontroller. The user can then connect to the microcontroller via Bluetooth LE and download the logged data for analysis. I posted a little more about my project here (https://forums.adafruit.com/viewtopic.php?f=53&t=86944&p=438027#p437830).

I have been working primarily with the Feather Bluefruit LE (I love the feather line of products btw, awesome idea!) and the micro SD card reader breakout (https://www.adafruit.com/products/254). I was running into problems with the bluefruit module resetting itself back to factory settings, and I would lose all of my custom GATT services and characteristics, similar to what another customer has posted here (https://forums.adafruit.com/viewtopic.php?f=53&t=86236&p=439272#p434253). To remedy the unwanted factory resets I simply put the AT+ commands to set the custom characteristics in my main sketch each time the board turns on (in the "setup" part of the Arduino sketch). I quickly ran out of memory (both flash and sram), and the Feather M0 board seems like the perfect solution. I ran into the problem with the Feather M0 board when I tried bringing over my sketch from the Feather Bluefruit LE. I also purchased a bluefruit SPI Friend which I was trying to use with the M0 board since it doesn't have one built in(https://www.adafruit.com/products/2633).

I also ran into a problem when I did want to factory reset the Feather Bluefruit LE with the SD breakout attached. The supplied factory reset program would hang while the SD breakout was connected. To purposefully do a factory reset on the Feather Bluefruit LE, I must first physically remove the SD breakout, run the code, and reattach the SD breakout. Could it be the SD breakout communicating over the SPI interface is somehow interfering with the SPI bluefruit module built into the Feather Bluefruit? I ordered a UART bluefruit friend to see if I get better results with the M0.


Both while the M0 board was "bricked" and now that it is working again, when I connect the ST-Link debugger to the Feather M0 Adalogger and run Adalink with the "--info" command I get "Not Implemented" returned. I'm not sure if that has any significance. Here is a screen shot of that.
adalinkinfo.png
adalinkinfo.png (3.93 KiB) Viewed 2893 times



Here is a screenshot of just calling the Adalink command from the C:\ prompt to show that I have my paths setup correctly.
adalinkinfo2.png
adalinkinfo2.png (32.3 KiB) Viewed 2893 times



Thank you for taking the time to help me, and also making and supporting such wonderful products!

-Michael

stook
 
Posts: 15
Joined: Sun Jan 12, 2014 9:33 pm

Re: Feather M0 Adalogger Not Enumerating - Firmware Requeste

by adafruit2 on Tue Jan 12, 2016 5:21 pm

not sure about adalink...i do know there will be a feather M0 bluefruit shortly - as in this week. bluefruit on the feathers uses SPI so yeah make sure that the CS line is pulled high for those and that there's no bus conflict on the SPI bus :)

adafruit2
Site Admin
 
Posts: 19408
Joined: Fri Mar 11, 2005 7:36 pm

Re: Feather M0 Adalogger Not Enumerating - Firmware Requeste

by stook on Tue Jan 12, 2016 6:03 pm

Ok! Awesome thanks for the heads up. I will definitely be ordering one. It would also be cool to see an SD wing or a Bluefruit wing, or both on the same wing! :O Just saying :)

stook
 
Posts: 15
Joined: Sun Jan 12, 2014 9:33 pm

Re: Feather M0 Adalogger Not Enumerating - Firmware Requeste

by adafruit2 on Tue Jan 12, 2016 6:15 pm

stook wrote:Ok! Awesome thanks for the heads up. I will definitely be ordering one. It would also be cool to see an SD wing or a Bluefruit wing, or both on the same wing! :O Just saying :)



SD wing...yes there will be one (with RTC) - no ETA but its past prototype stage
Bluefruit wing is tougher becaues theres an IRQ pin...but maybe one day!

adafruit2
Site Admin
 
Posts: 19408
Joined: Fri Mar 11, 2005 7:36 pm

Please be positive and constructive with your questions and comments.