EasyManua.ls Logo

ST SPC560P34 - Table 176. EDMA_CR Field Descriptions

ST SPC560P34
936 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RM0046 Enhanced Direct Memory Access (eDMA)
Doc ID 16912 Rev 5 387/936
eDMA Error Status Register (EDMA_ESR)
The EDMA_ESR provides information concerning the last recorded channel error. Channel
errors can be caused by a configuration error (an illegal setting in the transfer control
descriptor or an illegal priority register setting in fixed arbitration mode) or an error
termination to a bus master read or write cycle.
A configuration error is caused when the starting source or destination address, source or
destination offsets, minor loop byte count, and the transfer size represent an inconsistent
state. The addresses and offsets must be aligned on 0-modulo-transfer_size boundaries,
and the minor loop byte count must be a multiple of the source and destination transfer
sizes. All source reads and destination writes must be configured to the natural boundary of
the programmed transfer size respectively.
In fixed arbitration mode, a configuration error is caused by any two channel priorities being
equal within a group, or any group priority levels being equal among the groups. For either
type of priority configuration error, the ERRCHN field is undefined. All channel priority levels
within a group must be unique and all group priority levels among the groups must be
unique when fixed arbitration mode is enabled.
If a scatter/gather operation is enabled upon channel completion, a configuration error is
reported if the scatter/gather address (DLAST_SGA) is not aligned on a 32-byte boundary. If
minor loop channel linking is enabled upon channel completion, a configuration error is
reported when the link is attempted if the TCD.CITER.E_LINK bit does not equal the
TCD.BITER.E_LINK bit. All configuration error conditions except scatter/gather and minor
loop link error are reported as the channel is activated and assert an error interrupt request
if enabled. When properly enabled, a scatter/gather configuration error is reported when the
scatter/gather operation begins at major loop completion. A minor loop channel link
configuration error is reported when the link operation is serviced at minor loop completion.
If a system bus read or write is terminated with an error, the data transfer is immediately
stopped and the appropriate bus error flag is set. In this case, the state of the channel’s
transfer control descriptor is updated by the eDMA engine with the current source address,
destination address, and minor loop byte count at the point of the fault. If a bus error occurs
on the last read prior to beginning the write sequence, the write executes using the data
captured during the bus error. If a bus error occurs on the last write prior to switching to the
next read sequence, the read sequence executes before the channel is terminated due to
the destination bus error.
Table 176. EDMA_CR field descriptions
Field Description
0-28 Reserved.
29
ERCA
Enable round-robin channel arbitration.
0 Fixed-priority arbitration is used for channel selection within each group.
1 Round-robin arbitration is used for channel selection within each group.
30
EDBG
Enable debug.
0 The assertion of the system debug control input is ignored.
1 The assertion of the system debug control input causes the eDMA to stall the start of a new
channel. Executing channels are allowed to complete. Channel execution resumes when either
the system debug control input is negated or the EDBG bit is cleared.
31 Reserved.

Table of Contents

Related product manuals