M1 Mac support

There are multiple issues like https://devzone.nordicsemi.com/f/nordic-q-a/81793/jlinkarm-dll-load-failed-on-m1-mac which are basically just « resolved » by saying « these require Intel »

I have an M1 Max based MacBook Pro. I got it specifically because the Intel version sucked. I'm not about to roll back my environment to get this to work

I get this error trying to flash.

Flashing build to undefined
west flash -d /Users/smenor/Development/Noir.Switch/NOR-00-100.FW00/NOR-00-100.FW00-BLE/build --skip-rebuild -r nrfjprog --snr 820100738

-- west flash: using runner nrfjprog
WARNING: runners: Argument --snr is deprecated, use -i/--dev-id instead.
-- runners.nrfjprog: Flashing file: /Users/smenor/Development/Noir.Switch/NOR-00-100.FW00/NOR-00-100.FW00-BLE/build/zephyr/zephyr.hex
ERROR: JLinkARM DLL load failed. Try again. If it keeps failing, please
ERROR: reinstall latest JLinkARM from Segger webpage.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
FATAL ERROR: command exited with status 32: nrfjprog --program /Users/smenor/Development/Noir.Switch/NOR-00-100.FW00/NOR-00-100.FW00-BLE/build/zephyr/zephyr.hex --sectoranduicrerase -f NRF52 --snr 820100738

Now if I just copy-paste 

 nrfjprog --program /Users/smenor/Development/Noir.Switch/NOR-00-100.FW00/NOR-00-100.FW00-BLE/build/zephyr/zephyr.hex --sectoranduicrerase -f NRF52 --snr 820100738

to the shell (generally adding --verify to make link happier ) it just works.

Please someone there just get an M1 based Mac and fix this.

I wasted hours getting this to work and hours more on nRF Connect for Desktop not working and now it kinda mostly works with some glue and duct tape, but it's still quite annoying to have to go to the terminal and manually do something that seems like it should just be scripted in VS Code

Related