# Atmel ICE

## In-circuit programmer 

The Atmel ICE in-circuit programm is used to insert the 
code inside the hardvest module.

This is the wiring of the adapter to use between the Atmel ICE SAM port
and the Harvest1 ICSP port:

<img src="./icsp.jpg">

| Atmel ICE SAM port | Harvest 1 ICSP port |
|--------------------|---------------------|
| 1                  | 5                   |
| 6                  | 6                   |
| 7                  | 4                   |
| 9                  | 3                   |
| 10                 | 2                   |

Inside the Raspberry Pi file system create a file:

	sudo nano /etc/udev/rules.d/99-atmel-ice.rules
	
whith these contents:

	# Atmel-ICE JTAG/SWD in-circuit debugger
	ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2141", MODE="664", GROUP="plugdev"

