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

QT PY, flash memory, no CIRCUITPY usb showing
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

QT PY, flash memory, no CIRCUITPY usb showing

by dashworth on Wed Oct 07, 2020 5:51 pm

My flash memory chip arrived today for my QT PY. I have loaded this uf2 file: adafruit-circuitpython-qtpy_m0_haxpress-en_US-6.0.0-beta.2.uf2 (and tried several other qtpy haxpress versions/files). After I load the uf2 file, the CIRCUITPY usb drive never shows up. If I go back to a non - haxpress uf2 file, it works fine, but of course it's not using the new flash chip.

I have triple checked my soldering (yes, it's small) and I think I've got good connections.

The flash chip is a GD25Q16CTIGR from digikey.

Seems like circuitpython just isn't recognizing the chip?

Thanks!

dashworth
 
Posts: 20
Joined: Fri Oct 02, 2020 5:36 pm

Re: QT PY, flash memory, no CIRCUITPY usb showing

by dastels on Wed Oct 07, 2020 7:16 pm

That all seems like it should work. Can you post a clear closeup of the flash chip, including the solder pads?

Dave

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

Re: QT PY, flash memory, no CIRCUITPY usb showing

by dashworth on Wed Oct 07, 2020 7:24 pm

dastels wrote:That all seems like it should work. Can you post a clear closeup of the flash chip, including the solder pads?

Dave


image_123927839 (Large).JPG
image_123927839 (Large).JPG (320.99 KiB) Viewed 108 times

dashworth
 
Posts: 20
Joined: Fri Oct 02, 2020 5:36 pm

Re: QT PY, flash memory, no CIRCUITPY usb showing

by dastels on Wed Oct 07, 2020 7:57 pm

That looks right. All that I can think of is to go over the soldering again.

Dave

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

Re: QT PY, flash memory, no CIRCUITPY usb showing

by tannewt on Wed Oct 07, 2020 9:04 pm

Do you have anything that can detect signals like a logic analyzer or oscilloscope? You could use it to verify the signals make it to the legs of the IC.

tannewt
 
Posts: 1837
Joined: Thu Oct 06, 2016 8:48 pm

Re: QT PY, flash memory, no CIRCUITPY usb showing

by dashworth on Wed Oct 07, 2020 9:15 pm

tannewt wrote:Do you have anything that can detect signals like a logic analyzer or oscilloscope? You could use it to verify the signals make it to the legs of the IC.


I don't.
Maybe a little progress.

I re-soldered some pins. Now, consistently, when I plug in the qy py, the computer picks it up, but as a generic usb "F" drive. Also get some windows errors about the drive being corrupt. I'm able to open the F drive - contains a lib folder and a boot_out.txt file. Unable to open the lib folder.

dashworth
 
Posts: 20
Joined: Fri Oct 02, 2020 5:36 pm

Re: QT PY, flash memory, no CIRCUITPY usb showing

by bcochran1 on Wed Oct 07, 2020 9:23 pm

I just received my own QT Py board today. I am running Mac OS X 10.15.7, Catalina, all software updates applied. When I plug the QT Py into a USB port using either the Micro USB-to-USB-C adapter or a USB-A to USB -C cable, the CIRCUITPY drive does not show up.

I am going on the assumption that CircuitPython is already installed on the QtPy board. I have not attempted to install CircuitPython version 6.x.

If I double-click the reset button, the QT_PYBOOT drive shows up and I can see I have bootloader version v1.23.1-adafruit.1-328-gf06693a-dirty.

To be clear, this is for a plain, brand new QT Py which does not have a flash chip soldered on back. The USB adapter and cable mentioned above were both purchased from Adafruit and should work for data transfer.

Also, all my other Adafruit boards -- Feathers, ItsyBitsy, etc -- do show up with a CIRCUITPY drive. For instance, I most recently updated a Grand Central to CircuitPython 5.3.1 and the CIRCUITPY drive shows up fine on my Mac.

So I think there must be an issue here...perhaps with the bootloader?

Thanks so much

Bob


bcochran1
 
Posts: 484
Joined: Mon Jan 21, 2013 10:46 pm

Re: QT PY, flash memory, no CIRCUITPY usb showing

by bcochran1 on Wed Oct 07, 2020 9:38 pm

Hi,

I just downloaded the CircuitPython version 6.x UF2 for the Qt Py and dragged it into the bootloader, and now the CIRCUITPY drive does show up. Apparently, one must install CircuitPython on the Qt Py, there is no preloaded version. I'm a bit embarrassed, but happy that CircuitPython is now installed on the board.

Thanks so much

Bob

bcochran1
 
Posts: 484
Joined: Mon Jan 21, 2013 10:46 pm

Re: QT PY, flash memory, no CIRCUITPY usb showing

by dastels on Wed Oct 07, 2020 11:10 pm

I found the same.

Dave

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

Re: QT PY, flash memory, no CIRCUITPY usb showing

by tannewt on Thu Oct 08, 2020 2:01 pm

dashworth, try doing:
Code: Select all | TOGGLE FULL SIZE
import storage
storage.erase_filesystem()


That will rewrite the filesystem and usually fixes the corruption issue.

tannewt
 
Posts: 1837
Joined: Thu Oct 06, 2016 8:48 pm

Re: QT PY, flash memory, no CIRCUITPY usb showing

by dashworth on Thu Oct 08, 2020 4:16 pm

tannewt wrote:dashworth, try doing:
Code: Select all | TOGGLE FULL SIZE
import storage
storage.erase_filesystem()


That will rewrite the filesystem and usually fixes the corruption issue.



That fixed the corruption issue. I'm now seeing a CIRCUITPY usb drive. Thanks.

I don't think it's recognizing the flash chip though. The output from gc.mem_free() should be a lot larger, right?

Adafruit CircuitPython 6.0.0-beta.2 on 2020-10-05; Adafruit QT Py M0 Haxpress with samd21e18
>>> import gc
>>> gc.mem_free()
19728


And. I'm now getting memory error(s) on code that was running prior to the flash chip install.

code.py output:
Traceback (most recent call last):
File "code.py", line 4, in <module>
File "adafruit_dps310.py", line 172, in <module>
File "adafruit_dps310.py", line 418, in DPS310
MemoryError: memory allocation failed, allocating 376 bytes

dashworth
 
Posts: 20
Joined: Fri Oct 02, 2020 5:36 pm

Re: QT PY, flash memory, no CIRCUITPY usb showing

by dastels on Thu Oct 08, 2020 5:47 pm

No, mem_free() is RAM. Look at the properties of CIRCUITPY in your file nanager (eg Get Info in Finder on a Mac). It should report the drive as 2M (ish).

Dave

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

Re: QT PY, flash memory, no CIRCUITPY usb showing

by dashworth on Thu Oct 08, 2020 6:15 pm

dastels wrote:No, mem_free() is RAM. Look at the properties of CIRCUITPY in your file nanager (eg Get Info in Finder on a Mac). It should report the drive as 2M (ish).

Dave



1.97 MB! Looks like I'm good. Thanks for being so patient with me. :/

I'll track down the run time memory issue(s).

dashworth
 
Posts: 20
Joined: Fri Oct 02, 2020 5:36 pm

Re: QT PY, flash memory, no CIRCUITPY usb showing

by dastels on Thu Oct 08, 2020 7:41 pm

That's what I'd expect to see. Looks like you have flash!

Dave

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

Re: QT PY, flash memory, no CIRCUITPY usb showing

by tannewt on Fri Oct 09, 2020 2:04 pm

gc.mem_free() may actually be 4k lower than when using internal flash because the external flash requires a 4k cache when writing. The internal flash can write in 256 byte increments.

tannewt
 
Posts: 1837
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.