0

Matrix portal freezes periodically
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Matrix portal freezes periodically

by reallydontknowwhatimdoing on Fri Jun 18, 2021 2:03 pm

Hello,
I recently completed a project using the matrix portal and an LED matrix, and it works great for hours but then freezes, with the Neopixel on the back of the portal stuck on yellow, and the LED matrix no longer updating. In looking in to this, I have discovered that the freezing does not happen when it is connected to a USB port on my computer -- only if I have the USB cord attached directly to a power adapter. I've tried a couple of different adapters with the same result.

What could be causing this? Grateful for any advice.

reallydontknowwhatimdoing
 
Posts: 3
Joined: Fri Jun 18, 2021 1:59 pm

Re: Matrix portal freezes periodically

by mikeysklar on Fri Jun 18, 2021 6:45 pm

Go ahead and post the code you are running if you can. Some of our CircuitPython examples do include a HID line in the code that can change the behavior when being plugged into a computer versus on an isolated power supply.

When you are plugged into a computer USB power source what are the specs (eg. USB3, 2A, etc). When you are plugged into the power supplies that are freezing what were their specs?

mikeysklar
 
Posts: 4996
Joined: Mon Aug 01, 2016 8:10 pm

Re: Matrix portal freezes periodically

by reallydontknowwhatimdoing on Sat Jun 19, 2021 3:11 pm

thanks for getting back to me. The USB port on my computer is USB-C. The wall supply is 5.0V, 2.1A.

I am running this: https://github.com/metro-sign/dc-metro

reallydontknowwhatimdoing
 
Posts: 3
Joined: Fri Jun 18, 2021 1:59 pm

Re: Matrix portal freezes periodically

by mikeysklar on Mon Jun 21, 2021 4:28 pm

Thanks for confirming the power supply. That sounds like a reasonable amount of current.

Are you currently running our CircuitPython 6.3.0 release with 20210619 release of the libraries?

https://circuitpython.org/board/matrixportal_m4/
https://circuitpython.org/libraries

I did see a hang issue opened on the code base you linked to, but I suspect that might be your issue. Is that correct?

"Board freezes periodically #3"
https://github.com/metro-sign/dc-metro/issues/3

Are you able to keep a REPL open and send maybe sprinkle some prints into the console to narrow down where the freeze occurs?

mikeysklar
 
Posts: 4996
Joined: Mon Aug 01, 2016 8:10 pm

Re: Matrix portal freezes periodically

by reallydontknowwhatimdoing on Mon Jun 21, 2021 4:57 pm

Correct, I was the one that posted that. I will try to narrow down when this occurs and get back to you.

reallydontknowwhatimdoing
 
Posts: 3
Joined: Fri Jun 18, 2021 1:59 pm

Please be positive and constructive with your questions and comments.