-
Notifications
You must be signed in to change notification settings - Fork 984
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 USB drive name shows as NO NAME
#1082
Comments
The V1 device name contains 3 spaces at the end DAPLink/source/board/microbit.c Line 78 in 82dc31d
And V2 does not have the spaces present: DAPLink/source/board/microbitv2/microbitv2.c Line 475 in 82dc31d
Switching the strings between the V1 and V2, and testing the builds in macOS and we can confirm that the issue seems to be related to the spaces. There are a few more cases of other ports where spaces have been added until the 11th character (and some where a shorter than 11 characters name doesn't have spaces either), and haven't found a drive name with more than 11 characters. So maybe the standard specifies it needs to be 11 characters exactly? A bit odd that this has never been an issue anywhere else before. |
The structure is 11 bytes long. The difference between the two is that if you dont pad with spaces you will end up with |
Thanks Mathias! I wrongly assumed perhaps the volume name was null terminated anyway, but yeah, it's just 11 characters and no need to null terminate it. This FAT specification doc from Microsoft doesn't explicitly indicate not to use null characters, but it looks like even the default |
This has been reported with the micro:bit V2.00 and V2.21, using DAPLink 0255 to 0258.
This problem is not present for micro:bit V1, where the USB drive name is still
MICROBIT
, tested with DAPLink 0249, 0254 and 0258.The text was updated successfully, but these errors were encountered: