This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:3dprinting:anycubic_i3_mega:replacing_atmega2560 [2020/03/12 10:34] – [Replace Atmega2560 at Trigorilla board] admin | projects:3dprinting:anycubic_i3_mega:replacing_atmega2560 [2022/02/04 12:40] (current) – [Install avrdude] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Replace Atmega2560 at Trigorilla board ====== | ====== Replace Atmega2560 at Trigorilla board ====== | ||
+ | If the Atmega2560 is broken, gives for example wrong temperature readings ((See for example here: [[https:// | ||
+ | |||
With the right equipment, removing the Atmega2560 and soldeering a new one should be pretty straightforward. Once done, you need to make sure that the arduino bootloader is in place. | With the right equipment, removing the Atmega2560 and soldeering a new one should be pretty straightforward. Once done, you need to make sure that the arduino bootloader is in place. | ||
For this you need a programmer like the [[https:// | For this you need a programmer like the [[https:// | ||
- | ^ | + | ^ |
- | | {{: | + | | {{: |
- | This is the wiring connection | + | This is the wiring connection |
^ AVR Dragon ISP (pin) ^ Trigorilla ISP connector (pin) ^ | ^ AVR Dragon ISP (pin) ^ Trigorilla ISP connector (pin) ^ | ||
| 1: MISO | 1: D50 (Mega2560 pin 22) | | | 1: MISO | 1: D50 (Mega2560 pin 22) | | ||
Line 15: | Line 17: | ||
| 5: RESET | 5 RESET (Mega2560 pin 30) | | | 5: RESET | 5 RESET (Mega2560 pin 30) | | ||
| 6: GND | 6: GND | | | 6: GND | 6: GND | | ||
+ | |||
+ | (Pin marking is given on the silk-screen) | ||
For flashing the bootloader, download and install avrdude: | For flashing the bootloader, download and install avrdude: | ||
Line 26: | Line 30: | ||
<code bash> | <code bash> | ||
- | gunzip | + | # Dependencies |
- | cd avrdude-6.0 | + | sudo apt-get update |
+ | sudo apt-get install build-essential bison flex automake libelf-dev libusb-1.0-0-dev libusb-dev libftdi-dev libftdi1 | ||
+ | |||
+ | mkdir -p $HOME/ | ||
+ | cd !$ | ||
+ | wget http:// | ||
+ | tar xzf avrdude-6.4.tar.gz | ||
+ | # See here https:// | ||
+ | # for an explanation about word designaters in bash | ||
+ | cd !$:r:r | ||
./configure | ./configure | ||
make | make | ||
- | su root -c 'make install' | + | sudo make install |
</ | </ | ||
Line 75: | Line 88: | ||
avrdude -p m2560 -c dragon_isp -P usb -Uflash: | avrdude -p m2560 -c dragon_isp -P usb -Uflash: | ||
- | Similarly as in step 2, to prevent an error with the fuse setting at the verification step, change this command in: | + | Similarly as in step 1, to prevent an error with the fuse setting at the verification step, change this command in: |
avrdude -p m2560 -c dragon_isp -P usb -Uflash: | avrdude -p m2560 -c dragon_isp -P usb -Uflash: |