Closed spachner closed 4 years ago
This does work on Linux; I use it all the time. I notice you are running Linux on Parallels. Do you have a native Linux machine to try?
Hi Dan,
thank for your quick answer. Glad to hear that is must work. I am working with Linux@Parallels for many years now and never had an issue with USB. I will try on native Linux next week. I also gave CDC a try and used bossac. Either on MacOS and on Linux@Parallels. Same result Mac works and Linux not. I guess the CDC device is /dev/ttyACM0. I tried
[linux]$
bossac -i -p /dev/ttyACM0
No device found on /dev/ttyACM0
[macOS]$
[ master ] $ ./bin/bossac -i -p /dev/tty.usbmodem1412201
Device : ATSAMD21x18
Version : v1.1 [Arduino:XYZ] Jun 6 2020 18:42:39
Address : 0x0
Pages : 4096
Page Size : 64 bytes
Total Size : 256KB
Planes : 1
Lock Regions : 16
Locked : none
Security : false
BOD : false
BOR : false
I have no glue what is going on. My app running also MSC on my board which works fine under Linux@Parallels.
I will come back to you next week.
spachner
Hi Dan,
quite wired: After rebooting the Mac my virtual Ubuntu works quite well with uf2. I am happily bootloading now. Seems to be a glitch with MacOS's USB subsystem.
Thanks for you help.
regards
spachner
Glad to hear! I was thinking of how to reproduce this.
Just thought I'd chime in and say that I see the same problem where it resets after 22 seconds, using USB3 redirection with QEMU 5.0.0. On native Linux it is working fine.
I'd guess it's some kind of timing issue but who knows.
Hi,
I found your uf2 bootloader which looks quite promising. I have a custom board with SAMD21 which works file with USB/MSC driver from Microchip asf. Now I would like to add a USB bootloader and trying your uf2 (msc) to get drag-and-drop firmware update work. I develop on MacOS and there everything work quite fine. When attaching my SAMD board the new volume shows up and firmware update works perfectly! Unfortunately I would like to update the firmware under Linux (Ubuntu). When attaching my board almost never a volume shows up. Despite the dmesg look quite good (see below). I rare cases a volume did show up, so it does not seem impossible under Linux. I do not understand the difference between MacOS and Linux. Why is MacOS working and Linux almost never? Seems that the device is recognized as USB MSC but the registration does not get through and finally not drive device (/dev/sd?) is created and finally no volume with filesystem is accessable.
What do I miss?
regards
spachner