This shows you the differences between two versions of the page.
software:programming:atmel_ice [2023/01/19 19:22] – created admin | software:programming:atmel_ice [2023/01/19 19:55] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
To use the Atmel-ICE programmer on linux, make sure to add the following udev rule first: | To use the Atmel-ICE programmer on linux, make sure to add the following udev rule first: | ||
Line 35: | Line 35: | ||
</ | </ | ||
- | The pinout from the 6-pin IDC connector from the cable that came with the Atmel-ICE as seen from the bottom: | + | The pinout from the 6-pin IDC connector from the cable that came with the Atmel-ICE as seen from the top: |
< | < | ||
+-----+-----+-----+ | +-----+-----+-----+ | ||
- | ! | + | ! |
+-----+-----+-----+ | +-----+-----+-----+ | ||
- | ! | + | ! |
+-----+-----+-----+ | +-----+-----+-----+ | ||
+++++++ | +++++++ | ||
Line 57: | Line 57: | ||
The Arduino micro cannot be powered from the Atmel-ICE. An external 5v power is required. | The Arduino micro cannot be powered from the Atmel-ICE. An external 5v power is required. | ||
+ | |||
+ | When connected it should look like the following picture: | ||
+ | |||
+ | {{: | ||
+ | ==== flashing with avrdude ==== | ||
+ | " | ||
+ | |||
+ | < | ||
+ | vrdude: Version 6.3-20201216 | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | User configuration file is " | ||
+ | User configuration file does not exist or is not a regular file, skipping | ||
+ | |||
+ | Using Port : usb | ||
+ | Using Programmer | ||
+ | avrdude: usbdev_open(): | ||
+ | avrdude: max packet size expected 912, but found 512 due to EP 0x01's wMaxPacketSize | ||
+ | avrdude: Found CMSIS-DAP compliant device, using EDBG protocol | ||
+ | AVR Part : ATmega32U4 | ||
+ | Chip Erase delay : 9000 us | ||
+ | | ||
+ | | ||
+ | RESET disposition | ||
+ | RETRY pulse : SCK | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Block Poll | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | SCK period | ||
+ | |||
+ | avrdude: AVR device initialized and ready to accept instructions | ||
+ | |||
+ | Reading | ################################################## | ||
+ | |||
+ | avrdude: Device signature = 0x1e9587 (probably m32u4) | ||
+ | avrdude: safemode: lfuse reads as FF | ||
+ | avrdude: safemode: hfuse reads as D8 | ||
+ | avrdude: safemode: efuse reads as CB | ||
+ | avrdude: NOTE: " | ||
+ | To disable this feature, specify the -D option. | ||
+ | avrdude: erasing chip | ||
+ | avrdude: reading input file "/ | ||
+ | avrdude: writing flash (3958 bytes): | ||
+ | |||
+ | Writing | ################################################## | ||
+ | |||
+ | avrdude: 3958 bytes of flash written | ||
+ | avrdude: verifying flash memory against / | ||
+ | avrdude: load data flash data from input file / | ||
+ | avrdude: input file / | ||
+ | avrdude: reading on-chip flash data: | ||
+ | |||
+ | Reading | ################################################## | ||
+ | |||
+ | avrdude: verifying ... | ||
+ | avrdude: 3958 bytes of flash verified | ||
+ | |||
+ | avrdude: safemode: lfuse reads as FF | ||
+ | avrdude: safemode: hfuse reads as D8 | ||
+ | avrdude: safemode: efuse reads as CB | ||
+ | avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF) | ||
+ | |||
+ | avrdude done. Thank you. | ||
+ | </ |