Can't upload to Redboard Artemis on a Macbook Pro M1 / Monterey

I am trying to get up and working on a new Macbook Pro M1 with Monterey. I have the latest Arduino IDE (1.8.16) and Sparkfun Apollo3 boards package (1.2.1) installed. I get the error below for trying to upload the simple blink example. I saw there have been a problem with artemis_svl back at Big Sur but that was resolved some time back. Plus I was using all of this on my previous Big Sur based machine

But from all the reading I have done it looks like the same problem. There are hints on how to hand fix this here:

https://github.com/espressif/arduino-esp32/issues/4408

But thus far I am have not managed to get this to work. I have looked about and am not seeing much that is Monterey specific so I am thinking this is unique to my set up. I could use some pointers on debugging this.

thanks

–dwight

eback (most recent call last):

File “artemis_svl.py”, line 38, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

exec(bytecode, module.dict)

File “serial/tools/list_ports.py”, line 29, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

exec(bytecode, module.dict)

File “serial/tools/list_ports_posix.py”, line 31, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

An error occurred while uploading the sketch

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

exec(bytecode, module.dict)

File “serial/tools/list_ports_osx.py”, line 32, in

ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found

Index error: could not find referenced tool name=xtensa-esp32-elf-gcc version=1.22.0-80-g6c4433a-5.2.0 packager=esp32

Index error: could not find referenced tool name=esptool_py version=2.6.1 packager=esp32

Index error: could not find referenced tool name=mkspiffs version=0.2.3 packager=esp32

Update. I did the recommendations here and here:

viewtopic.php?t=55470

https://github.com/espressif/arduino-esp32/issues/4408

The first removes the tool errors above. Unforunately, the second one does not eliminate the problem. Still get this:

/Users/dmeglan/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.2.1/tools/artemis/macosx/artemis_svl /dev/cu.usbserial-210 -f /var/folders/6y/rtd6sb7s68zbl4vmh1x10n540000gs/T/arduino_build_702913/Example1_Blink.ino.bin -b 921600 -v

[5492] Failed to execute script artemis_svl

An error occurred while uploading the sketch

Traceback (most recent call last):

File “artemis_svl.py”, line 38, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

exec(bytecode, module.dict)

File “serial/tools/list_ports.py”, line 29, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

exec(bytecode, module.dict)

File “serial/tools/list_ports_posix.py”, line 31, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

exec(bytecode, module.dict)

File “serial/tools/list_ports_osx.py”, line 32, in

ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found

Hi Dwight,

Can you try and update to Apollo3 Core v1.2.3 and see if you get the same error? Wenn0101 fixed the SVL issue for macos Big Sur in v1.2.2.

Edit: I just tested my RedBoard Artemis with an RTC example using v1.2.3 and confirmed that it works on macOS Monterey.

Using library RTC at version 1.2 in folder: /Users/adam/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.2.3/libraries/RTC 
/Users/adam/Library/Arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/arm-none-eabi-size -A /Users/adam/Documents/Arduino/debug/Example3_Test_RTC.ino.axf
Sketch uses 14276 bytes (1%) of program storage space. Maximum is 960000 bytes.
Global variables use 34360 bytes of dynamic memory.
/Users/adam/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.2.3/tools/artemis/macosx/artemis_svl /dev/cu.usbserial-1430 -f /Users/adam/Documents/Arduino/debug/Example3_Test_RTC.ino.bin -b 230400 -v 


Artemis SVL Bootloader
Script version 1.7

Phase:	Setup
	Cleared startup blip
	Got SVL Bootloader Version: 5
	Sending 'enter bootloader' command

Phase:	Bootload
	have 14460 bytes to send in 8 frames
	Sending frame #1, length: 2048
	Sending frame #2, length: 2048
	Sending frame #3, length: 2048
	Sending frame #4, length: 2048
	Sending frame #5, length: 2048
	Sending frame #6, length: 2048
	Sending frame #7, length: 2048
	Sending frame #8, length: 124

	Upload complete

	Nominal bootload bps: 17333.7

Cheers,

Adam

I’m experiencing the same issue (not being able to upload to a RedBoard Artemis ATP), but with a different setup. I’m using an intel-based Mac (an iMac) running Monterey 12.0.1. I’ve tried loading the board using IDE 1.8.16 and .18, and also 2.0.0 beta. I’ve also tried versions 1.2.2, 1.2.3, and 2.2.0 of the Sparkfun core. I’ve gotten more information as to trying to burn the bootloader using IDE beta 2.2.0, as follows:

/Users/jeff/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.2.3/tools/ambiq/macosx/ambiq_bin2board --bin “/Users/jeff/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.2.3/bootloaders/artemis/artemis_svl.bin” --load-address-blob 0x20000 --magic-num 0xCB -o “/Users/jeff/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.2.3/bootloaders/artemis/artemis_svl” --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 115200 -port “/dev/cu.usbserial-1460” -r 2 -v

[24404] Failed to execute script ambiq_bin2board

Traceback (most recent call last):

File “ambiq_bin2board.py”, line 19, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports.py”, line 29, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports_posix.py”, line 31, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports_osx.py”, line 32, in

ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found

Error while burning the bootloader: Failed chip erase: uploading error: exit status 255


It could be the board … I have a RedBoard Artemis (not an ATP) arriving today that I’ll try. I’ve been at this a few days doing a lot of what I’ve read online. I cannot receive board into and in IDE beta there is a yellow warning triangle displayed with the board name, suggesting I think, that the USBserial port does not see the board.

Anyone seeing issues like this please file an issue on the github repo: https://github.com/sparkfun/Arduino_Apollo3

We will have a software engineer take a look when they have a chance.

Hi inchstone,

Did you have any luck with your Redboard Artemis? I’m also using an Intel-based iMac and MacBook, which are both on macOS Monterey. I have confirmed that the v1.x and 2.x versions of the Apollo3 Core are working properly. Happy to help if I can.

Cheers,

Adam

P.S. John, I think the forums are a good place to start. macOS-related issues on GitHub historically have taken several months to resolve. We were able to get Derek up and running pretty quickly here: viewtopic.php?f=181&t=56682. We also identified an issue with the AVR/SAMD board definitions and created a new GitHub issue.