Site Tools


projects:3dprinting:anycubic_i3_mega:replacing_atmega2560

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:3dprinting:anycubic_i3_mega:replacing_atmega2560 [2020/03/12 10:34] – [Replace Atmega2560 at Trigorilla board] adminprojects: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://forum.vellemanprojects.eu/t/replaced-atmega-2560-because-of-damaged-adc-input-t2-heatbed/10954]])), this is most likely caused by electrostatic discharge, destroying one or more input pins.
 +
 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://www.microchip.com/DevelopmentTools/ProductDetails/PartNO/ATAVRDRAGON|AVR Dragon]]. The connection typically would look like: For this you need a programmer like the [[https://www.microchip.com/DevelopmentTools/ProductDetails/PartNO/ATAVRDRAGON|AVR Dragon]]. The connection typically would look like:
  
-^  Prototype  ^ +^  Connecting trigorilla ISP to AVR Dragon ISP  ^ 
-|  {{:projects:3dprinting:anycubic_i3_mega:IMG_20200312_102818.jpg.jpg?400}}  |+|  {{:projects:3dprinting:anycubic_i3_mega:img_20200312_102818.jpg?400}}  |
  
-This is the wiring connection for the AVR Dragon to the Trigorilla ISP connector:+This is the wiring connection between an AVR Dragon and a Trigorilla ISP connector:
 ^   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 -avrdude-6.3.tar.gz | tar xf - +# 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/SOMEWHERE/apps/avrdude 
 +cd !$ 
 +wget http://download.savannah.gnu.org/releases/avrdude/avrdude-6.4.tar.gz 
 +tar xzf avrdude-6.4.tar.gz 
 +# See here https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Word-Designators 
 +# for an explanation about word designaters in bash 
 +cd !$:r:r
 ./configure ./configure
 make make
-su root -c 'make install'+sudo make install
 </code> </code>
  
Line 75: Line 88:
   avrdude -p m2560 -c dragon_isp -P usb -Uflash:w:stk500boot_v2_mega2560.hex:i -Ulock:w:0x0f:m -v   avrdude -p m2560 -c dragon_isp -P usb -Uflash:w:stk500boot_v2_mega2560.hex:i -Ulock:w:0x0f:m -v
  
-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:w:stk500boot_v2_mega2560.hex:i -Ulock:w:0xcf:m -v   avrdude -p m2560 -c dragon_isp -P usb -Uflash:w:stk500boot_v2_mega2560.hex:i -Ulock:w:0xcf:m -v
projects/3dprinting/anycubic_i3_mega/replacing_atmega2560.1584005699.txt.gz · Last modified: 2020/03/12 10:34 by admin