-
Notifications
You must be signed in to change notification settings - Fork 981
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
macOS 15 Sequoia finder drag&drop flashing fails #1083
Comments
@fabianhugo To install... Connect micro:bit and check current options: Unzip 99-microbit-udisks.zip, and copy the rules file to the udev rules.d folder. For example Check it has the same owner, group and permissions as other rules files. Restart UDEV. Disconnect and reconnect micro:bit then check what options are in use now. The only difference should be the addition of "sync". To uninstall, delete 99-microbit-udisks.rules from the rules.d folder. |
Seems to have fixed it! Thank you! :) |
AnalysisWith macOS 14 and older, hex files were written by the OS into continuous FAT sectors. On macOS 15 the hex file blocks are sent in order, but they are not written into continuous filesystem sectors. This is due to fragmentation introduced by previously created metadata files, the reason the orange LED blinks for so long after the USB drive is mounted. I added additional RTT logging into a DAPLink test build, to capture the filesystem traffic data to check what data blocks are written into what the file system sectors. The following files have been captured:
In these files we can see the following:
This suggests that the hex file blocks are written into non-consecutive filesystem sectors because the OS has already created several metadata files on the drive occupying the sectors that would have otherwise be used by the hex file. This is the file structure of the micro:bit USB drive in macOS 12, where no metadata files are created by the OS:
In contrast, this is the file structure of the same micro:bit USB drive in macOS 15:
|
Not quite the same, but similar to:
There has been reports of issues flashing in macOS 15 Sequoia via finder.
Some things we've noticed so far:
ERROR_TRANSFER_TIMEOUT
andERROR_OOO_SECTOR
cp
andrsync
commands as wellIssue description
NO NAME
#1082)Copying "file.hex" to ...
window with a progress bar appearsInitial findings
I've done an initial test by printing some vfs data to serial during the file transfer. I'll need to do a better capture using RTT next.
With this initial run, we can see that the captured flashing failures are not caused due to out-of-order blocks, but because the OS now sends continuous file blocks to non-continuous fs sectors (the fs is configured with 512 byte sectors).
For example, in the serial_0.txt log we can see:
Further Analysis
More technical details can be found further down in this issue thread, in comment: #1083 (comment)
The text was updated successfully, but these errors were encountered: