Software PDI mode breaks unless the software USART has 100 cycles between bits.
This commit is contained in:
1 parent
7d51e51c79
commit
9a5ae36a4f
8 files changed
+20
-22
No files matched your search
@@ -175,10 +175,6 @@ static void XPROGProtocol_LeaveXPROGMode(void)
|
||||
/* Clear the RESET key in the RESET PDI register to allow the XMEGA to run */
|
||||
XPROGTarget_SendByte(PDI_CMD_STCS | PDI_RESET_REG);
|
||||
XPROGTarget_SendByte(0x00);
|
||||
|
||||
/* Clear /RESET key twice (for some reason this needs to be done twice to take effect) */
|
||||
XPROGTarget_SendByte(PDI_CMD_STCS | PDI_RESET_REG);
|
||||
XPROGTarget_SendByte(0x00);
|
||||
|
||||
XPROGTarget_DisableTargetPDI();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user