Software PDI mode breaks unless the software USART has 100 cycles between bits.
This commit is contained in:
parent
7d51e51c79
commit
9a5ae36a4f
8 changed files with 20 additions and 22 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue