I’m starting to use a XIAO with Arduino IDE 2.0.3 on a Mac M1 Ventura 13.1.
I already change stab file to prevent the mounting of the Xiao as a volume.
I still got the error “No upload port found” , “SAM-BA operation failed” and “Failed uploading: uploading error: exit status 1” when I upload the Blink sketch.
I tried to restart the Mac, change the USB port.
What can I do more to make it running?
Thanks
Using the XIAO nrf52840 sense board, having a fresh zephyr sdk and project installed:
- west build -p always -b xiao_ble/nrf52840/sense samples/hello_world
- double click the reset button to enable the bootloader
- west flash -r uf2
The last command gives the following output (but … the device is programmed correctly though!!):
-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner uf2
-- runners.uf2: Copying UF2 file to '/Volumes/XIAO-SENSE'
Traceback (most recent call last):
File "/Users/adev/miniconda3/envs/zypher/bin/west", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/adev/miniconda3/envs/zypher/lib/python3.12/site-packages/west/app/main.py", line 1085, in main
app.run(argv or sys.argv[1:])
File "/Users/adev/miniconda3/envs/zypher/lib/python3.12/site-packages/west/app/main.py", line 244, in run
self.run_command(argv, early_args)
File "/Users/adev/miniconda3/envs/zypher/lib/python3.12/site-packages/west/app/main.py", line 505, in run_command
self.run_extension(args.command, argv)
File "/Users/adev/miniconda3/envs/zypher/lib/python3.12/site-packages/west/app/main.py", line 654, in run_extension
self.cmd.run(args, unknown, self.topdir, manifest=self.manifest,
File "/Users/adev/miniconda3/envs/zypher/lib/python3.12/site-packages/west/commands.py", line 194, in run
self.do_run(args, unknown)
File "/Users/adev/zephyrproject/zephyr/scripts/west_commands/flash.py", line 33, in do_run
do_run_common(self, my_args, runner_args, domain_file=domains_file)
File "/Users/adev/zephyrproject/zephyr/scripts/west_commands/run_common.py", line 288, in do_run_common
do_run_common_image(command, user_args, user_runner_args,
File "/Users/adev/zephyrproject/zephyr/scripts/west_commands/run_common.py", line 459, in do_run_common_image
runner.run(command_name)
File "/Users/adev/zephyrproject/zephyr/scripts/west_commands/runners/core.py", line 660, in run
self.do_run(command, **kwargs)
File "/Users/adev/zephyrproject/zephyr/scripts/west_commands/runners/uf2.py", line 105, in do_run
self.copy_uf2_to_partition(part)
File "/Users/adev/zephyrproject/zephyr/scripts/west_commands/runners/uf2.py", line 88, in copy_uf2_to_partition
copy(self.cfg.uf2_file, part.mountpoint)
File "/Users/adev/miniconda3/envs/zypher/lib/python3.12/shutil.py", line 435, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/Users/adev/miniconda3/envs/zypher/lib/python3.12/shutil.py", line 266, in copyfile
_fastcopy_fcopyfile(fsrc, fdst, posix._COPYFILE_DATA)
File "/Users/adev/miniconda3/envs/zypher/lib/python3.12/shutil.py", line 110, in _fastcopy_fcopyfile
raise err from None
File "/Users/adev/miniconda3/envs/zypher/lib/python3.12/shutil.py", line 103, in _fastcopy_fcopyfile
posix._fcopyfile(infd, outfd, flags)
OSError: [Errno 5] Input/output error: '/Users/adev/zephyrproject/zephyr/build/zephyr/zephyr.uf2' -> '/Volumes/XIAO-SENSE/zephyr.uf2'