Skip to content

CIRCUITPY drive not appearing with SAM E54 Xplained Pro #8047

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tomiahola opened this issue May 29, 2023 · 10 comments · Fixed by #8054 or #10249
Closed

CIRCUITPY drive not appearing with SAM E54 Xplained Pro #8047

tomiahola opened this issue May 29, 2023 · 10 comments · Fixed by #8054 or #10249
Assignees
Labels
atmel-samd board New board or update to a single board bug
Milestone

Comments

@tomiahola
Copy link

tomiahola commented May 29, 2023

CircuitPython version

Adafruit CircuitPython 8.1.0 on 2023-05-22; SAM E54 Xplained Pro with same54p20

Code/REPL

]0;🐍Done | 8.1.0\Auto-reload is off.
Running in safe mode! Not running saved code.

You are in safe mode because:
CIRCUITPY drive could not be found or created.
Press reset to exit safe mode.

Press any key to enter the REPL. Use CTRL-D to reload.
]0;🐍Done | 8.1.0\

Behavior

USB drive appearing instead of CIRCUITPY drive.

Description

Hello, could someone help me understand why after installing the latest CircuitPython to my SAM E54 Xplained Pro, the "CIRCUITPY" drive does not appear but "USB Drive" appears instead?

When trying to open the "USB Drive", a notification appears: "Please insert a disk into USB Drive (D:)."

I'm using the latest bootloader version (3.15).

storage.erase_filesystem() did not solve the issue.

Additional information

No response

@tomiahola tomiahola added the bug label May 29, 2023
@dhalbert dhalbert added this to the 8.x.x milestone May 29, 2023
@dhalbert dhalbert modified the milestones: 8.x.x, Support May 29, 2023
@dhalbert
Copy link
Collaborator

Here are some things to check:

@tomiahola
Copy link
Author

Here are some things to check:

Hi, the flash chip markings are: 26F064B

@tannewt
Copy link
Member

tannewt commented May 30, 2023

Please post a picture of the chip. It'll likely have a manufacturer's logo too.

@tomiahola
Copy link
Author

chip
Here is a picture of the chip.

@tannewt
Copy link
Member

tannewt commented May 31, 2023

Thanks! That looks like a MicroChip flash chip instead of micron as the board def says. Want to make a PR adding "SST26VF064B" to the list here: https://github.com/adafruit/circuitpython/blob/main/ports/atmel-samd/boards/same54_xplained/mpconfigboard.mk#L10 ? That's the full name of the MicroChip flash (nvm.toml define here.)

@tannewt tannewt added the board New board or update to a single board label May 31, 2023
@tannewt tannewt modified the milestones: Support, 8.x.x May 31, 2023
@tomiahola
Copy link
Author

Made a PR: #8054

@tannewt
Copy link
Member

tannewt commented Jun 1, 2023

Thank you! I've tweaked it so it'll hopefully build.

@Jones14021
Copy link

Just adding this here in case anyone stumbles over this issue like I did:

My SAM E54 Xplained Pro (ordered July 2024, SST26VF064B QSPI flash chip dates to sometime in 2021 so I guess this issue has been around for some time already) has the same issue as @tomiahola described. The issue can be observed for all CircuitPython builds that include the above commit from #8054.
No response from the board, neither CIRCUITPY or USB Drive appears, and no COM port is detected.
Previous builds of CircuitPython (<8.1.0) at least boot into safe-mode but the CIRCUITPY drive also does not appear.

I was not able to fix this by playing around with the nvm.toml file for the SST26VF064B.

The only thing that worked for me was to disable the external flash completely and instead enabling the internal flash file system by replacing the QSPI_FLASH_FILESYSTEM = 1 and EXTERNAL_FLASH_DEVICES = "N25Q256A,SST26VF064B" with INTERNAL_FLASH_FILESYSTEM = 1 in mpconfigboard.mk.
Since the latest 9.X.X builds of CircuitPython are too large to fit into the default FLASH_FIRMWARE area, I also had to shrink the filesystem by defining CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE (FLASH_SIZE / 4) in mpconfigboard.h.

I know that this is not a solution, but maybe someone finds this workaround helpful.

@dhalbert
Copy link
Collaborator

Reopening since this sounds like it is still a problem.

@eightycc
Copy link
Collaborator

@tomiahola Please re-test with the build artifact from #10249. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment