0

Neotrellis m4 reset?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Neotrellis m4 reset?

by Fuzzpope on Sun Jun 06, 2021 8:47 am

hello everyone, new Adafruit user here. I picked up a Neotrellis M4 earlier this week for use as a general midi usb controller for my Monome Norns Shield unit. All went fine with following the guide, up to installing circuitpython, then I did something screwy and I cannot get this thing back to a useable state, it won't go into bootloader mode, and the Arduino app doesn't see it anymore, there's nothing appearing in the available ports but bluetooth, but I'm not sure I'm selecting the right board either, as I've tried several arduino/adafruit boards and nothing gets this thing to show up again,

The neopixel on the M4 is flashing green once, then orange/yellow once, then blinks yellow several times and blue several times, then cycles again.

I'd like to get it back to its default, non-circuitpython state, can somebody please give me a hand? I am absolutely *not* a coder, I'm a modular synth guy, so please go easy on me!

Thanks!

- Donovan/Fuzzpope

Fuzzpope
 
Posts: 8
Joined: Sun Jun 06, 2021 8:34 am

Re: Neotrellis m4 reset?

by dastels on Sun Jun 06, 2021 9:29 am

The flashing means there's an CircuitPython error of some sort. The first thing to do is get into the REPL and see what's happening.

Can you post what you see in the REPL? That should give a better idea of what's happening.

If you aren't familiar with using the REPL (or even just the serial connection), see
https://learn.adafruit.com/welcome-to-circuitpython/kattni-connecting-to-the-serial-console
https://learn.adafruit.com/welcome-to-circuitpython/interacting-with-the-serial-console
https://learn.adafruit.com/welcome-to-circuitpython/the-repl

Try double-pressing reset and see if that gets it to show up in Arduino.
Do you have all the required board support packages installed and up to date in Arduino, as per https://learn.adafruit.com/adafruit-neotrellis-m4/setup?

Dave

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

Re: Neotrellis m4 reset?

by Fuzzpope on Sun Jun 06, 2021 9:37 pm

Hi Dave, thanks for your reply.

Double clicks get me a solid red LED. That means there's no connection, yes??

And yes, I've got all the stuff installed per the Adafruit M4 guide by Lady Ada:

https://learn.adafruit.com/adafruit-neotrellis

I actually went back and tried to repeat the steps there to escape circuitpython and obviously that attempt failed.

I'm not a console guy by any means but I'll try now to see what I can get done per your suggestion.

thanks!
Last edited by Fuzzpope on Sun Jun 06, 2021 9:51 pm, edited 1 time in total.

Fuzzpope
 
Posts: 8
Joined: Sun Jun 06, 2021 8:34 am

Re: Neotrellis m4 reset?

by Fuzzpope on Sun Jun 06, 2021 9:45 pm

Ok Dave, that didn't take long, because Terminal shows no serial connection at all from the Neotrellis, all I have is the bluetooth show up when I scan for serial connections with
Code: Select all | TOGGLE FULL SIZE
ls /dev/tty.*
.

What now? How can I fix this board if I cant get a disk image to boot?

[this is just my ^!@@#@ luck...]

edit: redundant I'm sure, but I tried Mu as well, it doesn't see anything when I plug the Neo in either.

Fuzzpope
 
Posts: 8
Joined: Sun Jun 06, 2021 8:34 am

Re: Neotrellis m4 reset?

by dastels on Mon Jun 07, 2021 8:46 am

It sounds like you're using a Mac so it should show up as /dev/tty.usbmodem*

Let's step back... in your initial post you said "I did something screwy ". What was that?

The color blinking on the Neopixel is indicating an error with code.py (sounds like indentation related) so it seems like CircuitPython is running.

Do you have any antivirus software running? Some are known to block the connection.

You could try getting into safe mode and see if that gives you some access. From https://learn.adafruit.com/welcome-to-circuitpython/troubleshooting:

The method used to manually enter safe mode can be different for different devices. It is also very similar to the method used for getting into bootloader mode, which is a different thing. So it can take a few tries to get the timing right. If you end up in bootloader mode, no problem, you can try again without needing to do anything else.

For most devices:
Press the reset button, and then when the RGB status LED is yellow, press the reset button again.

Dave

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

Re: Neotrellis m4 reset?

by Fuzzpope on Mon Jun 07, 2021 10:21 pm

dastels wrote:It sounds like you're using a Mac so it should show up as /dev/tty.usbmodem*


Hey Dave, yeah, I;'m using a mac, but I got the exact same results on a PC running Windows 10, again, Arduino/Mu do not see a M4 port in the index.

dastels wrote:Let's step back... in your initial post you said "I did something screwy ". What was that?


Well, I had everything running fine, all the libraries installed perfectly, and when I tried to enter the Blinky code, I got an error, straight away, but I was then able to download and run a couple firmware uf2 files which ran fine, so I moved on to the part of the guide focusing on circuitpython, which I got loaded, and I accidentally mixed files from two different scripts, so I got it back to the CP default, and then decided I wanted to return to Arduino so I could run it as a midi usb device.

This is where things got screwy, but by that, I don't mean that I screwed up, but that there was a failure somewhere that resulted in the current status. I was following the instructions on this page:

https://learn.adafruit.com/welcome-to-c ... 04-1GZwkUE

I made it up to: "Create a new simple Blink sketch example:" without incident. Then I copied the code, placed it and hit upload, and then this specifically happened:

the mounted drive went back to cplayboot for a second, and then I got an error with the upload, and the drive state returned to circuitpython. After that, I tried to reload the original board via Arduino, I'm not even sure I chose the right board or not at that point as I was getting pretty frustrated, but the M4 was still visible at that point, but my next step trying to select the board, that was it, poof, no more drive connection. Sorry for the novel, I'm trying to be as specific about what happened as I can, all of this took place in less than 5 minutes, and I actually had the device running less than 30 minutes before it bricked. Its very disappointing that it was this easy to wreck the device, all I was doing was following the web instructions to the letter, basically just copy/pasting code, I don't know why the initial errors occurred on such a simple process, but there you go, that's what happened.

dastels wrote:The color blinking on the Neopixel is indicating an error with code.py (sounds like indentation related) so it seems like CircuitPython is running.


Great! So...where the heck is it? haha..[doh!]

dastels wrote:Do you have any antivirus software running? Some are known to block the connection.


I do not, nope.

dastels wrote:You could try getting into safe mode and see if that gives you some access. From https://learn.adafruit.com/welcome-to-circuitpython/troubleshooting:

The method used to manually enter safe mode can be different for different devices. It is also very similar to the method used for getting into bootloader mode, which is a different thing. So it can take a few tries to get the timing right. If you end up in bootloader mode, no problem, you can try again without needing to do anything else.

For most devices:
Press the reset button, and then when the RGB status LED is yellow, press the reset button again.


Ok, let me try this now and I'll let you know what happens, thanks again for your patience.

Fuzzpope
 
Posts: 8
Joined: Sun Jun 06, 2021 8:34 am

Re: Neotrellis m4 reset?

by Fuzzpope on Mon Jun 07, 2021 10:23 pm

Pulsing yellow light, success!

What do I do now???

Yay!!

edit: there is STILL no drive mounted though, ugh!!!!

edit2: same results on my PC; I can enter safe mode, but lights on and nobody's home, no disk mounts, or port indexing.

Fuzzpope
 
Posts: 8
Joined: Sun Jun 06, 2021 8:34 am

Re: Neotrellis m4 reset?

by Fuzzpope on Mon Jun 07, 2021 11:01 pm

F I X E D.

I was accidentally using a usb cable that lacked sync, swapped it out and Bam! back in action. Thanks for your time and effort, Dave, I'm sure I'll be back at some point, haha.

wooooo!!

Fuzzpope
 
Posts: 8
Joined: Sun Jun 06, 2021 8:34 am

Re: Neotrellis m4 reset?

by Fuzzpope on Tue Jun 08, 2021 12:12 am

Ok, so here is exactly where things went wrong for me. Following the Adafruit guide, on the circuitpython section:

https://learn.adafruit.com/adafruit-neo ... cuitpython

we are told to download the newest circuitpython file for the M4, and sent here:

https://circuitpython.org/board/trellis_m4_express/

That stable release is actually the Rainbow Trellis' default drum machine, but as soon as I drag the uf2 file onto the M4 disk image, it goes into error and flashes the light sequence I described in my OP above.

My problem I guess, is I have not been able to get Circuitpython running correctly, can we please walk through that process? I have a CP format file from another Monome Norns user that's got all of the work done in order to use the M4 with Norns, I just need circuitpython installed.

Fuzzpope
 
Posts: 8
Joined: Sun Jun 06, 2021 8:34 am

Re: Neotrellis m4 reset?

by Fuzzpope on Tue Jun 08, 2021 9:22 pm

All sorted now, thank you for your help!

Fuzzpope
 
Posts: 8
Joined: Sun Jun 06, 2021 8:34 am

Please be positive and constructive with your questions and comments.