MacOS may grab the Atmel-ICE USB device and prevent access. Folllow these instructions (found here):
Preparation:
Download the AtmelICE.kext.zip
and unzip it.
Open a Terminal and change directory (cd
) to the folder where you unzipped it
sudo chown -R root:wheel AtmelICE.kext
sudo mv AtmelICE.kext /Library/Extensions/AtmelICE.kext
sudo kextload /Library/Extensions/AtmelICE.kext
If you get a permissions error:
sudo rm -rf /Library/Extensions/AtmelICE.kext
- Restart the Mac and get into recovery mode (hold down CMD + R while booting)
- Mount the OS drive by choosing the Disk Utility, select the drive and mount it from the menu.
- Open a terminal by going to the Utilities menu at the top of the screen and then Terminal
- Remove the driver from /Volumes/your volume/Library/StagedExtensions/Library/Extensions
rm -rf /Volumes/your volume/Library/StagedExtensions/Library/Extensions/AtmelICE.kext
- Close the terminal and restart the computer
- Follow the steps (1…3) in the first part of this post and you should have a working driver
Test with avrdude (e.g. for ATmega2560):
avrdude -c atmelice_isp -p ATmega2560
Expected output is something similar to:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: safemode: Fuses OK (E:FD, H:D8, L:FF)
avrdude done. Thank you.