aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-10-02 10:07:24 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-10-02 10:07:24 +0000
commit93793679c95198e3272de565c6904f14ab257795 (patch)
tree4b62c1b4666ddff2c585fd9d2877d9c6b66dc838
parenta447ae134f416ab45dcfe3dfe5dd1222bb908be2 (diff)
downloadlufa-93793679c95198e3272de565c6904f14ab257795.tar.gz
lufa-93793679c95198e3272de565c6904f14ab257795.tar.bz2
lufa-93793679c95198e3272de565c6904f14ab257795.zip
Revert change to the AVRISP-MKII project for fuse byte programming via the CMDEX bit - this appears to be an error in the XMEGA manual external memory programming table.
-rw-r--r--LUFA/ManPages/ChangeLog.txt1
-rw-r--r--Projects/AVRISP-MKII/Lib/XPROG/XMEGANVM.c9
2 files changed, 0 insertions, 10 deletions
diff --git a/LUFA/ManPages/ChangeLog.txt b/LUFA/ManPages/ChangeLog.txt
index 23ef75c5c..805b3e165 100644
--- a/LUFA/ManPages/ChangeLog.txt
+++ b/LUFA/ManPages/ChangeLog.txt
@@ -68,7 +68,6 @@
* - Fixed incorrect LEDs_ChangeLEDs() function in the Benito board LED driver
* - Fixed incorrect USB_DeviceState value when unconfiguring the device without an address set
* - Fixed broken FLASH/EEPROM programming in the AVRISP-MKII clone project when writing in non-paged mode and the polling byte cannot be used
- * - Fixed broken lock byte programming in the AVRISP-MKII clone project for some XMEGA targets
*
* \section Sec_ChangeLog100807 Version 100807
* <b>New:</b>
diff --git a/Projects/AVRISP-MKII/Lib/XPROG/XMEGANVM.c b/Projects/AVRISP-MKII/Lib/XPROG/XMEGANVM.c
index 537441fc0..22f4e93e0 100644
--- a/Projects/AVRISP-MKII/Lib/XPROG/XMEGANVM.c
+++ b/Projects/AVRISP-MKII/Lib/XPROG/XMEGANVM.c
@@ -220,15 +220,6 @@ bool XMEGANVM_WriteByteMemory(const uint8_t WriteCommand, const uint32_t WriteAd
XPROGTarget_SendByte(PDI_CMD_STS | (PDI_DATSIZE_4BYTES << 2));
XMEGANVM_SendAddress(WriteAddress);
XPROGTarget_SendByte(Byte);
-
- /* Lock bytes need a special confirmation sequence for the write to complete */
- if (WriteCommand == XMEGA_NVM_CMD_WRITELOCK)
- {
- /* Set CMDEX bit in NVM CTRLA register to start the Lock Byte write sequence */
- XPROGTarget_SendByte(PDI_CMD_STS | (PDI_DATSIZE_4BYTES << 2));
- XMEGANVM_SendNVMRegAddress(XMEGA_NVM_REG_CTRLA);
- XPROGTarget_SendByte(1 << 0);
- }
return true;
}