-
Notifications
You must be signed in to change notification settings - Fork 20
Fuses
xiew edited this page Sep 27, 2011
·
6 revisions
##Introduction
Before debugging, the JTAG and On Chip Debug Enable Fuses have to be programmed in the ATMega 1280 or ATMega 2560 board. This section walks through the connections and steps of this procedure.
Note: This section assumes you have the required hardware prescribed on the main [Debug Debugging] page.
##Procedure
- Separate the ArduPilotMega (APM) and Oilpan boards
- Locate the SPI header on the APM board
##Advaned Section
- How to calculate your AVR Fuses http://www.engbedded.com/fusecalc/
- Watch out setting lfuse, DO NOT CHANGE THE CLOCK FREQUENCY!! If you do this we were only able to recover the device through the jtag ice mkii cn debugger using the -U lfuse:w:0xc2:m command for the 1280/2560 chips.
- To reset to the default fuses use: -U hfuse:w:0xda:m
- Separate oilpan and apm.
- Connect avrisp programmer to apm.
- Power the board
- reset to the default fuses using: avrdude -P usb -c avrisp2 -p m2560 -U hfuse:w:0xda:m
- Use arduino to burn bootloader (avrisp2)