This might be generally applicable to Adafruit's NRF52 Arduino support? The Arduino BSP for NRF52 seems to have an undocumented minimum macOS requirement of >= 11.1.
```
/Users/tlyu/Library/Arduino15/packages/adafruit/hardware/nrf52/1.3.0/tools/adafruit-nrfutil/macos/adafruit-nrfutil dfu genpkg --dev-type 0x0052 --sd-req 0x00B6 --application /var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/arduino_build_954494/arcada_clue_test.ino.hex /var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/arduino_build_954494/arcada_clue_test.ino.zip
[11029] Error loading Python lib '/var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/_MEIxEd1T9/libpython3.8.dylib': dlopen: dlopen(/var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/_MEIxEd1T9/libpython3.8.dylib, 10): Symbol not found: _preadv
Referenced from: /var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/_MEIxEd1T9/libpython3.8.dylib (which was built for Mac OS X 11.1)
Expected in: /usr/lib/libSystem.B.dylib
in /var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/_MEIxEd1T9/libpython3.8.dylib
```
undocumented required macOS >= 11.1 in NRF52 BSP
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- argonblue
- Posts: 93
- Joined: Wed Apr 25, 2012 12:18 am
- argonblue
- Posts: 93
- Joined: Wed Apr 25, 2012 12:18 am
Re: undocumented required macOS >= 11.1 in NRF52 BSP
Sorry, accidentally hit submit and can't find an edit button. Excerpt from verbose build log on macOS 10.15.7:
It looks like the bundled adafruit-nrfutil is using a python library that's linked against a newer version of the system libraries.
A possible workaround is to locally install adafruit-nrfutil using pip, and create a platforms.local.txt with a tools.nrfutil.cmd.macosx setting pointing to the version installed by pip.
Code: Select all
/Users/tlyu/Library/Arduino15/packages/adafruit/hardware/nrf52/1.3.0/tools/adafruit-nrfutil/macos/adafruit-nrfutil dfu genpkg --dev-type 0x0052 --sd-req 0x00B6 --application /var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/arduino_build_954494/arcada_clue_test.ino.hex /var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/arduino_build_954494/arcada_clue_test.ino.zip
[11029] Error loading Python lib '/var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/_MEIxEd1T9/libpython3.8.dylib': dlopen: dlopen(/var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/_MEIxEd1T9/libpython3.8.dylib, 10): Symbol not found: _preadv
Referenced from: /var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/_MEIxEd1T9/libpython3.8.dylib (which was built for Mac OS X 11.1)
Expected in: /usr/lib/libSystem.B.dylib
in /var/folders/d5/nzysv6bx0fz3lt46bhlv_bhw0000gn/T/_MEIxEd1T9/libpython3.8.dylib
A possible workaround is to locally install adafruit-nrfutil using pip, and create a platforms.local.txt with a tools.nrfutil.cmd.macosx setting pointing to the version installed by pip.
- alpierce
- Posts: 207
- Joined: Mon May 13, 2013 2:44 am
Re: undocumented required macOS >= 11.1 in NRF52 BSP
Bingo argon blue ! Thanks for the quick response. Not sure why a problem with an NRF52 utility would affect a Tensilica ESP32 pico, but it certainly seems to be failing because of the macOS version. Guess the QtPy ESP needs to be labeled "macOS 11.0 or greater". Guess I'll have to switch development on that QtPy to a newer system, the iMac I was using can't be upgraded to 11.0. I'll have to check the ESP32-S2 and S3 with Arduino on this iMac. They work fine with CircuitPython at least.
- argonblue
- Posts: 93
- Joined: Wed Apr 25, 2012 12:18 am
Re: undocumented required macOS >= 11.1 in NRF52 BSP
I figure there might be a similar utility for ESP32 that's delivered as a bundled Python executable in the Arduino BSP.
Please be positive and constructive with your questions and comments.