tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
15.46k stars 912 forks source link

tinygo flash may not work on Sequoia (macOS 15) #4519

Open Senoue opened 1 month ago

Senoue commented 1 month ago

Hi. I wonder if tinygo flash can't be used on Sequoia (macOS 15). In my case,

failed to flash /var/folders/m9/xxxx/T/xxx/main.uf2: unable to locate any volume: [RPI-RP2]

Is everyone okay?

Senoue commented 1 month ago

sorry. It was macOS 15 instead of 18

sago35 commented 1 month ago

The error is being output from here, and we can predict that the cause lies in findFATMounts(). Since I don't have a macOS system, I need someone's help.

https://github.com/tinygo-org/tinygo/blob/v0.33.0/main.go#L994-L1018

aykevl commented 1 month ago

I have MacOS (though I don't use it much) but am not yet on Sequoia. Kinda hesitant to upgrade, am afraid it will break stuff (last upgrade didn't exactly go very smoothly).

Senoue commented 1 month ago

Thank you, when I checked the mount point on Sequoia, it was mounted as NO NAME in /Volumes, so I added NO NAME to targets/rp2040.json

"msd-volume-name": ["RPI-RP2", "NO NAME"],

I found out that tinygo flash can be done!