Configure SWD Transfers.
More...
Configure SWD Transfers.
Command to set the SWD transfer configuration.
BYTE | WORD *********| Short ******|
> 0x14 | Configuration | Match Retry |
******|***************|*************|
Where
- Configuration: Contains information about SWD specific features
- Bit 1.. 0: Turnarround period (must be same as in WCR register)
00B - 1 (default)
01B - 2
10B - 3
11B - 4
- Bit 2: DataPhase
0 - Do not generate Data Phase on WAIT/FAULT (default)
1 - Always generate Data Phase (also on WAIT/FAULT)
required for Sticky Overrun behavior
- Bit 7.. 4: Idle cycles - number of extra idle cycles after each transfer
0 (default) .. 15
- Bit31..15: Number of transfer retries after WAIT response
- Match Retry: Number of retries on reads with mismatch Configuration of Read Register with Value Match Register is read until its value matches or retry counter expires
retry = Match_Retry;
do {
if ((Register_Value & Match_Mask) == Match_Value) break;
} while (retry--);
Response to setting the SWD transfer configuration. BYTE | BYTE **|
< 0x14 | Status |
******|********|
Where
- Status: Status Code
- 0 - Success
- otherwise Error