External QSPI flash drive not mounting

No we don’t provide a bootloader for Arduino boards and we don’t overwrite it.

I guess the OpenMV IDE firmware flashing process is not erasing/formatting the external QSPI flash successfully.

Do you have the similar log for the QSPI flash?

No I check it does erase it as well as the internal flash file system sector, it’s configured correctly, and both our firmware and MicroPython work on 2 of the boards we tested. I’m still not sure what’s different about your board, I did notice the trailing markings on the QSPI are different but it could be just a batch number.

0x90F00000 is the address used for the WiFi firmware, we flashing the firmware it gets loaded as well.

Is there any way to format and make the filesystem on the external flash from the Micropython code? I do not need WiFI so an empty filesystem should be ok.

There’s no straightforward way, you could try:

import os
import machine, pyb

bdev = pyb.Flash()
vfs = os.VfsFat(bdev)
machine.reset()
del os, bdev, vfs

But first I was told there was an issue with some floating pins on the QSPI or something like that, that affected some users/parts, I’ve attached a firmware with a patch for that issue let me know if it works.

firmware.dfu (1.0 MB)

This firmware worked! :grinning:

But I am not able to connect it using the OpenMV IDE.

Yes we will need to patch our firmware as well.

Yes, I can access it using serial terminal screen /dev/tty.usbmodem3956374F31322 115200. Thanks a lot for your help! I assume the next OpenMV IDE release would be able to connect it.

The next firmware release will have a patch for the QSPI flash issue. To use the IDE you need our firmware, it can’t connect to MicroPython (well it has a serial terminal feature but that’s just like using screen).

2 Likes

@yokonav Hi, could you please test the attached firmware and see if it still works ? I made small changes and just want to be sure it still works before committing this fix. Thanks!

firmware.dfu (1.0 MB)

Hi @iabdalkader

Yes, it works!

Thank you!

Hi @iabdalkader,

Have you got a chance to merge the changes into the latest development release?

Thanks!

I just saw it has been merged. Thanks a lot!

Yes I did, and it’s also merged in MicroPython.

1 Like