28. Low-power direct memory access controller (LPDMA)
28.1 LPDMA introduction
The low-power direct memory access (LPDMA) controller is a bus master and system peripheral.
The LPDMA is used to perform programmable data transfers between memory-mapped peripherals and/or memories via linked-lists, upon the control of an off-loaded CPU.
28.2 LPDMA main features
- • Single bidirectional AHB master
- • Memory-mapped data transfers from a source to a destination:
- – Peripheral-to-memory
- – Memory-to-peripheral
- – Memory-to-memory
- – Peripheral-to-peripheral
- • Autonomous data transfers during Stop mode (see Section 28.4.18)
- • Transfers arbitration based on a 4-grade programmed priority at channel level:
- – One high-priority traffic class, for time-sensitive channels (queue 3)
- – Three low-priority traffic classes, with a weighted round-robin allocation for non time-sensitive channels (queues 0, 1, 2)
- • Per channel event generation, on any of the following events: transfer complete, half transfer complete, data transfer error, user setting error, link transfer error, completed suspension and trigger overrun
- • Per channel interrupt generation, with separately programmed interrupt enable per event
- • 4 concurrent LPDMA channels:
- – Intra-channel LPDMA transfers chaining via programmable linked-list into memory, supporting two execution modes: run-to-completion and link step mode
- – Intra-channel and inter-channel LPDMA transfers chaining via programmable LPDMA input triggers connection to LPDMA task completion events
- • Per linked-list item within a channel:
- – Separately programmed source and destination transfers
- – Programmable data handling between source and destination: byte-based padding or truncation, sign extension and left/right realignment
- – Programmable number of data bytes to be transferred from the source, defining the block level
- – Linear source and destination addressing: either fixed or contiguously incremented addressing, programmed at a block level, between successive single transfers
- – Programmable LPDMA request and trigger selection
- – Programmable LPDMA half-transfer and transfer-complete events generation
- – Pointer to the next linked-list item and its data structure in memory, with automatic update of the LPDMA linked-list control registers
- • Debug:
- – Channel suspend and resume support
- – Channel status reporting and event flags
- • TrustZone support
- – Support for secure and nonsecure LPDMA transfers, independently at a first channel level, and independently at a source/destination and link sub-levels
- – Secure and nonsecure interrupts reporting, resulting from any of the respectively secure and nonsecure channels
- – TrustZone-aware AHB slave port, protecting any LPDMA secure resource (register, register field) from a nonsecure access
- • Privileged/unprivileged support:
- – Support for privileged and unprivileged LPDMA transfers, independently at a channel level
- – Privileged-aware AHB slave port
- • Channel isolation support:
- – Support for compartmented DMA transfers, independently at a channel level, via compartment IDs (named CIDs)
- – CID-aware interrupts reporting
- – CID-aware AHB slave port, with integrated semaphores for a concurrent control, from any of the CPUs
- • Identification registers, with associated peripheral revision and hardware configuration
28.3 LPDMA implementation
28.3.1 LPDMA channels
A given LPDMA channel x is implemented with the hardware parameters as per the table below.
Table 215. LPDMA1 channels implementation
| Channel x | Hardware parameters | Features | |
|---|---|---|---|
| dma_fifo_ size[x] | dma_ addressing[x] | ||
| x = 0 to 3 | 0 | 0 | Channel x (x = 0 to 3) is implemented with:
|
28.3.2 LPDMA autonomous mode in low-power modes
The LPDMA autonomous mode and wake-up features are implemented in the device low-power modes as per the table below.
Table 216. LPDMA1 autonomous mode and wake-up in low-power modes
| Feature | Low-power modes |
|---|---|
| Autonomous mode and wake-up | LPDMA1 in Sleep, Stop 0, Stop 1 and Stop 2 modes |
28.3.3 LPDMA requests
A LPDMA request from a peripheral can be assigned to a LPDMA channel x, via the REQSEL[4:0] field in the LPDMA channel x transfer register 2 (LPDMA_CxTR2), provided that SWREQ = 0.
The LPDMA requests mapping is specified in the table below.
Table 217. Programmed LPDMA1 request
| LPDMA_CxTR2.REQSEL[4:0] | Selected LPDMA request |
|---|---|
| 0 | lpuart1_rx_dma |
| 1 | lpuart1_tx_dma |
| 2 | i2c8_rx_dma |
| 3 | i2c8_tx_dma |
| 4 | i2c8_evc_dma |
| 5 | spi8_rx_dma |
| 6 | spi8_tx_dma |
| 7 | adf1_flt0_dma |
| 8 | lptim3_ic1_dma |
| 9 | lptim3_ic2_dma |
| 10 | lptim3_ue_dma |
| 11 | lptim4_ic1_dma |
| 12 | lptim4_ic2_dma |
| 13 | lptim4_ue_dma |
| 14 | Reserved |
| 15 | i3c4_rx_dma |
| 16 | i3c4_tx_dma |
| 17 | i3c4_tc_dma |
| 18 | i3c4_rs_dma |
28.3.4 LPDMA block requests
Some LPDMA requests must be programmed as a block request, and not as a single request. Then the BREQ bit in LPDMA channel x transfer register 2 (LPDMA_CxTR2) must be set for a correct LPDMA execution of the requested peripheral transfer at the hardware level.
The LPDMA block requests are listed in the table below.
Table 218. Programmed LPDMA1 request as a block request
| LPDMA block requests |
|---|
| lptim3_ue_dma |
| lptim4_ue_dma |
28.3.5 LPDMA channels with peripheral early termination
A LPDMA channel, if implemented with this feature, can support the early termination of the data transfer from the peripheral which does also support this feature.
Table 219. LPDMA channel with peripheral early termination
| LPDMA channel x with peripheral early termination |
|---|
| x = 0 to 3 |
This LPDMA support is activated when the channel x is programmed with LPDMA_CxTR2.PFREQ = 1. Then, the peripheral itself can initiate and request a data transfer completion, before that the LPDMA has transferred the whole block (see Section 28.4.14 for more details).
Table 220. Programmed LPDMA request with peripheral early termination
| Programmed LPDMA channel x request with peripheral early termination |
|---|
| i3c4_rx_dma |
28.3.6 LPDMA triggers
A LPDMA trigger can be assigned to a LPDMA channel x, via the TRIGSEL[4:0] field in the LPDMA channel x transfer register 2 (LPDMA_CxTR2), provided that TRIGPOL[1:0] defines a rising or a falling edge of the selected trigger (TRIGPOL[1:0] = 01 or TRIGPOL[1:0] = 10).
The LPDMA triggers mapping is specified in the table below.
Table 221. Programmed LPDMA1 trigger
| LPDMA_CxTR2.TRIGSEL[4:0] | Selected LPDMA trigger |
|---|---|
| 0 | exti2 line 0 |
| 1 | exti2 line 1 |
| 2 | exti2 line 2 |
| 3 | exti2 line 3 |
Table 221. Programmed LPDMA1 trigger (continued)
| LPDMA_CxTR2.TRIGSEL[4:0] | Selected LPDMA trigger |
|---|---|
| 4 | exti2 line 4 |
| 5 | tamp_trg1 |
| 6 | tamp_trg2 |
| 7 | tamp_trg3 |
| 8 | lptim2_ch1 |
| 9 | lptim3_ch1 |
| 10 | lptim4_ch1 |
| 11 | lptim5_ch1 |
| 12 | rtc_alra_trg |
| 13 | rtc_alrb_trg |
| 14 | rtc_wut_trg |
| 15 | lpdma1_ch0_tc |
| 16 | lpdma1_ch1_tc |
| 17 | lpdma1_ch2_tc |
| 18 | lpdma1_ch3_tc |
| 19 | hpdma1_ch0_tc |
| 20 | hpdma1_ch8_tc |
| 21 | hpdma1_ch12_tc |
| 22 | hpdma2_ch0_tc |
| 23 | hpdma2_ch8_tc |
| 24 | hpdma2_ch12_tc |
| 25 | hpdma3_ch0_tc |
| 26 | hpdma3_ch8_tc |
| 27 | hpdma3_ch12_tc |
| 28 | tim2_trgo |
| 29 | tim15_trgo |
28.4 LPDMA functional description
28.4.1 LPDMA block diagram
The LPDMA block diagram is illustrated in the figure below.
Figure 177. LPDMA block diagram

(1) Refer to the device implementation table for the number of channels.
MSv67816V1
28.4.2 LPDMA channel state and direct programming without any linked-list
After a LPDMA reset, a LPDMA channel x is in idle state. When the software writes 1 into the in LPDMA_CxCR.EN enable control bit, the channel takes into account the value of the different channel configuration registers (LPDMA_CxXXX), switches to the active/non-idle state and starts to execute the corresponding requested data transfers.
After enabling/starting a LPDMA channel transfer by writing 1 into the LPDMA_CxCR.EN bit, a LPDMA channel interrupt on a complete transfer notifies the software that the LPDMA channel is back in idle state (EN is then de-asserted by hardware) and that the channel is ready to be reconfigured then enabled again.
The figure below illustrates this LPDMA direct programming without any linked-list (LPDMA_CxLLR = 0).
Figure 178. LPDMA channel direct programming without linked-list (LPDMA_CxLLR = 0)

graph TD; subgraph IdleState [Channel state = Idle]; Init[Initialize DMA channel
(keeping DMA_CxLLR[31:0] = 0)]; Reconfig[Reconfigure DMA channel
(keeping DMA_CxLLR[31:0] = 0)]; Enable[Enable DMA channel]; end; subgraph ActiveState [Channel state = Active]; Valid{Valid user setting?}; Error{No transfer error?}; Transfer[Executing the data transfer
from the register file]; TCF[Setting TCF = 1
Disabling DMA channel]; USEF[Setting USEF = 1
Disabling DMA channel]; DTEF[Setting DTEF = 1
Disabling DMA channel]; end; IdleState --> ActiveState; Valid -- Y --> Transfer; Transfer --> Error; Error -- Y --> TCF; Valid -- N --> USEF; Error -- N --> DTEF; TCF --> End[/End/]; USEF --> End; DTEF --> End; End --> Reconfig; Reconfig --> Init;
MSv62626V1
28.4.3 LPDMA channel suspend and resume
The software can suspend on its own a channel still active, with the following sequence:
- 1. The software writes 1 into the LPDMA_CxCR.SUSP bit.
- 2. The software polls the suspended flag LPDMA_CxSR.SUSPF until SUSPF = 1, or waits for an interrupt previously enabled by writing 1 to LPDMA_CxCR.SUSPIE. Wait for the channel to be effectively in suspended state means wait for the completion of
any ongoing LPDMA transfer over its master port. Then the software can observe, in a steady state, any read register or register field that is hardware modifiable.
Note that an ongoing LPDMA transfer can be a data transfer (a read-followed-by-write single transfer) or a link transfer for the internal update of the linked-list register file from the next linked-list item.
- The software safely resumes the suspended channel by writing 0 to LPDMA_CxCR.SUSP.
The suspend and resume sequence is illustrated in the figure below.
Figure 179. LPDMA channel suspend and resume sequence

graph TD
Start(( )) --> Active1[Channel state = Active]
Active1 --> Suspend[Suspend the DMA channel
(write 1 to CxCR.SUSP)]
Suspend --> Decision{SUSPF=1?}
Decision -- N --> Suspend
Decision -- Y --> Suspended[Channel state = Suspended and Idle]
Suspended --> Interrupt[Receiving suspended interrupt]
Interrupt --> Resume[Resume the DMA channel
(write 0 to CxCR.SUSP)]
Suspended --> Resume
Resume --> Active2[Channel state = Active]
Active2 --> End(( ))
MSv62627V1
Note: A suspend and resume sequence does not impact the LPDMA_CxCR.EN bit. Suspending a channel (transfer) does not suspend a started trigger detection.
28.4.4 LPDMA channel abort and restart
Alternatively, like for aborting a continuous LPDMA transfer with a circular buffering or a double buffering, the software can abort, on its own, a still active channel with the following sequence:
- The software writes 1 into the LPDMA_CxCR.SUSP bit.
- The software polls suspended flag LPDMA_CxSR.SUSPF until SUSPF = 1, or waits for an interrupt previously enabled by writing 1 to LPDMA_CxCR.SUSPIE. Wait for the channel to be effectively in suspended state means wait for the completion of any ongoing LPDMA transfer over its master port.
- The software resets the channel by writing 1 to LPDMA_CxCR.RESET. This causes the reset of the channel internal state, the reset of the LPDMA_CxCR.EN bit, and the reset of the LPDMA_CxCR.SUSP bit.
- 4. The software safely reconfigures the channel. The software must reprogram the hardware-modified LPDMA_CxBR1, LPDMA_CxSAR, and LPDMA_CxDAR registers.
- 5. In order to restart the aborted then reprogrammed channel, the software enables it again by writing 1 to the LPDMA_CxCR.EN bit.
The abort and restart sequence is illustrated in the figure below.
Figure 180. LPDMA channel abort and restart sequence

graph TD
Start(( )) --> Active1[Channel state = Active]
Active1 --> Suspend[Suspend the DMA channel
(write 1 to CxCR.SUSP)]
Suspend --> Decision{SUSPF=1 ?}
Decision -- N --> Suspend
Decision -- Y --> Suspended[Channel state = Suspended
(and Idle)]
Suspended --> Interrupt[Receiving
suspended
interrupt]
Interrupt --> Reset[Reset the DMA channel
(write 1 to CxCR.RESET)]
Reset --> Idle[Channel state = Idle]
Idle --> Reconfigure[Reconfigure the DMA channel]
Reconfigure --> Enable[Enable the DMA channel]
Enable --> Active2[Channel state = Active]
Active2 --> End(( ))
MSv62628V1
28.4.5 LPDMA linked-list data structure
Alternatively to the direct programming mode, a channel can be programmed by a list of transfers, known as a list of linked-list items (LLI). Each LLI is defined by its data structure.
The base address in memory of the data structure of a next LLIn+1 of a channel x is the sum of the following:
- • the link base address of the channel x (in LPDMA_CxLBAR)
- • the link address offset (LA[15:2] field in LPDMA_CxLLR)
The data structure for each LLI may be specific.
A linked-list data structure is addressed following the value of the UT1, UT2, UB1, USA, UDA and ULL bits of the LPDMA_CxLLR register.
In linked-list mode, each LPDMA linked-list register (LPDMA_CxTR1, LPDMA_CxTR2, LPDMA_CxBR1, LPDMA_CxSAR, LPDMA_CxDAR or LPDMA_CxLLR) is conditionally and automatically updated from the next linked-list data structure in the memory, following the current value of the LPDMA_CxLLR register that was conditionally updated from the linked-list data structure of the previous LLI.
Static linked-list data structure
For example, when the update bits (UT1, UT2, UB1, USA, UDA and ULL) of the LPDMA_CxLLR register are all asserted, the linked-list data structure in memory is maximal with six contiguous 32-bit locations, including LPDMA_CxTR1, LPDMA_CxTR2, LPDMA_CxBR1, LPDMA_CxSAR, LPDMA_CxDAR and LPDMA_CxLLR (see the figure below) and including the first linked-list register file (LLI0) and the next LLIs (LLI1, LLI2,...) in the memory.
Figure 181. Static linked-list data structure (all Uxx = 1) of channel x

The diagram illustrates the static linked-list data structure of channel x. It shows the DMA register file containing the Channel x linked-list register file (LLI0) and other registers. The Channel x linked-list register file (LLI0) contains DMA_CxTR1, DMA_CxTR2, DMA_CxBR1, DMA_CxSAR, DMA_CxDAR, and DMA_CxLLR. The DMA_CxLLR register points to the next LLI in memory (LLI1) via the link address offset. The memory from link base address DMA_CxLBAR contains LLI1 and LLI2, each containing the same set of registers. The DMA_CxLLR register in LLI1 points to LLI2, and the DMA_CxLLR register in LLI2 points to the next LLI. The diagram is labeled MSv62629V1.
Dynamic linked-list data structure
Alternatively, the memory organization for the full list of LLIs can be compacted with specific data structure for each LLI.
If UT1 = 0 and UT2 = 1, the link address offset of the register LPDMA_CxLLR is pointing to the updated value of the LPDMA_CxTR2 instead of the LPDMA_CxTR1 which is not to be modified.
Example: if UT1 = UB1 = USA = 0, and if UT2 = UDA = ULL = 1, the next LLI does not contain an updated value for LPDMA_CxTR1, nor LPDMA_CxBR1, nor LPDMA_CxSAR.
The next LLI contains an updated value for LPDMA_CxTR2, LPDMA_CxDAR, and LPDMA_CxLLR, as shown in the figure below.
Figure 182. LPDMA dynamic linked-list data structure of an addressing channel x

The diagram illustrates the dynamic linked-list data structure for an addressing channel x. It shows two linked-list items (LLIn and LLIn+1) connected by a pointer. LLIn contains registers: DMA_CxTR1, DMA_CxTR2, DMA_CxBR1, DMA_CxSAR, DMA_CxDAR, and DMA_CxLLR. An arrow labeled 'All Uxx = 1' points to the top of LLIn. The DMA_CxLLR register of LLIn points to LLIn+1. The linking conditions are specified as UT1 = UB1 = USA = 0 and UT2 = UDA = ULL = 1. LLIn+1 contains registers: DMA_CxTR2, DMA_CxDAR, and DMA_CxLLR. A dashed arrow points from the DMA_CxLLR register of LLIn+1 to the right, indicating the next item in the list. The label 'MSv62630V1' is at the bottom right.
The user must program LPDMA_CxLLR for each LLIn to be 32-bit aligned and not to exceed the 64-Kbyte addressable space pointed by LPDMA_CxLBAR.
28.4.6 Linked-list item transfer execution
A LLIn transfer is the sequence of:
- 1. a data transfer: LPDMA executes the data transfer as described by the LPDMA internal register file (this data transfer can be void/null for LLI0)
- 2. a conditional link transfer: LPDMA automatically and conditionally updates its internal register file by the data structure of the next LLIn+1, as defined by the LPDMA_CxLLR value of the LLIn.
Note: The initial data transfer as defined by the internal register file (LLI0) can be null (LPDMA_CxBR1.BNDT[15:0] = 0 and LPDMA_CxTR2.PFREQ = 0) provided that the conditional update bit UB1 in LPDMA_CxLLR is set (meaning there is a non-null data transfer described by the next LLI1 in the memory to be executed).
Depending on the intended LPDMA usage, a LPDMA channel x can be executed as described by the full linked-list (run-to-completion mode, LPDMA_CxCR.LSM = 0) or a LPDMA channel x can be programmed for a single execution of a LLI (link step mode, LPDMA_CxCR.LSM = 1), as described in the next paragraphs.
28.4.7 LPDMA channel state and linked-list programming in run-to-completion mode
When LPDMA_CxCR.LSM = 0, a LPDMA channel x is initially programmed, started by writing 1 to LPDMA_CxCR.EN, and after (possibly) completed at channel level. The channel transfer is:
- • configured with at least the following:
- – the first LLI0, internal linked-list register file: LPDMA_CxTR1, LPDMA_CxTR2, LPDMA_CxBR1, LPDMA_CxSAR, LPDMA_CxDAR and LPDMA_CxLLR
- – the last LLIN, described by the linked-list data structure in memory, as defined by the LPDMA_CxLLR reflecting the before last LLIN-1
- • completed when LPDMA_CxLLR[31:0] = 0 and LPDMA_CxBR1.BNDT[15:0] = 0, at the end of the last LLIN-1 transfer
LPDMA_CxLLR[31:0] = 0 is the condition of a linked-list based channel completion and means the following:
- • The 16 low significant bits LPDMA_CxLLR.LA[15:0] of the next link address are null.
- • All the update bits Uxx of LPDMA_CxLLR are null (UT1, UT2, UB1, USA, UDA, ULL).
The channel may never be completed when LPDMA_CxLLR.LSM = 0:
- • If the last LLIN is recursive, pointing to itself as a next LLI:
- – either LPDMA_CxLLR.ULL = 1 and LPDMA_CxLLR.LA[15:2] is updated by the same value
- – or LPDMA_CxLLR.ULL = 0
- • If LLIN is pointing to a previous LLI.
In the regular data transfer completion at a block level, LPDMA_CxBR1.BNDT[15:0] = 0. Alternatively, a block transfer may be early completed by a peripheral (such as an I3C in Rx mode), and then BNDT[15:0] is not null (see Section 28.4.14 for more details).
In the typical run-to-completion mode, the allocation of a LPDMA channel, including its fine programming, is done once during the LPDMA initialization. In order to have a reserved data communication link and LPDMA service during run-time, for continuously repeated transfers (from/to a peripheral respectively to/from memory or for memory-to-memory transfers). This reserved data communication link can consist of a channel, or the channel can be shared and a repeated transfer consists of a sequence of LLIs.
Figure 183 depicts the LPDMA channel execution and its registers programming in run-to-completion mode.
Note: Figure 183 is not intended to illustrate how often a TCEF can be raised, depending on the programmed value of TCEM[1:0] in LPDMA_CxTR2. It can be raised at (each) block completion, at (each) 2D block completion, at (each) LLI completion, or only at channel completion. In run-to-completion mode, whatever is the value of TCEM[1:0], at the channel completion, the hardware always set TCEF = 1 and disables the channel.
In Figure 183, BNDT ≠ 0 is the typical condition for starting the first data transfer. This condition becomes (BNDT ≠ 0 and PFREQ = 1) if the peripheral requests a data transfer with early termination (see Section 28.3.5).
Figure 183. LPDMA channel execution and linked-list programming in run-to-completion mode (LPDMA_CxCR.LSM = 0)

graph TD
subgraph IdleState [Channel state = Idle]
Init[Initialize DMA channel]
Enable[Enable DMA channel]
Reconfig[Reconfigure DMA channel]
Enable --> ActiveState
Reconfig --> Enable
end
subgraph ActiveState [Channel state = Active]
ValidUser1{Valid user setting?}
BNDT{BNDT ≠ 0?}
Exec[Executing once the data transfer from the register file]
NoError1{No transfer error?}
LLR{LLR ≠ 0?}
LoadLLI[Loading next LLI into the register file]
NoError2{No transfer error?}
ValidUser2{Valid user setting?}
SetTCF[Setting TCF = 1
Disabling DMA channel]
SetUSEF1_1[Setting USEF = 1
Disabling DMA channel]
SetDTEF[Setting DTEF = 1
Disabling DMA channel]
SetULEF[Setting ULEF = 1
Disabling DMA channel]
SetUSEF1_2[Setting USEF = 1
Disabling DMA channel]
ValidUser1 -- Y --> BNDT
ValidUser1 -- N --> SetUSEF1_1
BNDT -- Y --> Exec
BNDT -- N --> SetDTEF
Exec --> NoError1
NoError1 -- Y --> LLR
NoError1 -- N --> SetDTEF
LLR -- Y --> LoadLLI
LLR -- N --> SetTCF
LoadLLI --> NoError2
NoError2 -- Y --> ValidUser2
NoError2 -- N --> SetULEF
ValidUser2 -- Y --> SetTCF
ValidUser2 -- N --> SetUSEF1_2
SetTCF --> End
SetUSEF1_1 --> End
SetDTEF --> End
SetULEF --> End
SetUSEF1_2 --> End
end
End((End))MSv62631V1
Run-time inserting a \(LLI_n\) via an auxiliary channel, in run-to-completion mode
The start of the link transfer of the \(LLI_{n-1}\) (start of the \(LLI_n\) loading) can be conditioned by the occurrence of a trigger, when programming the following fields of the LPDMA_CxTR2 in the data structure of the \(LLI_{n-1}\):
- • TRIGM[1:0] = 10 (link transfer triggering mode)
- • TRIGPOL[1:0] = 01 or 10 (rising or falling edge)
- • TRIGSEL[4:0] (see Section 28.3.6 for the trigger selection details)
Another auxiliary channel y can be used to store the channel x \(LLI_n\) in the memory and to generate a transfer complete event lpdma_chy_tc. By selecting this event as the input trigger of the link transfer of the \(LLI_{n-1}\) of the channel x, the software can pause the primary channel x after its \(LLI_{n-1}\) data transfer, until it is indeed written the \(LLI_n\).
Figure 184 depicts such a dynamic elaboration of a linked-list of a primary channel x, via another auxiliary channel y.
Caution: This use case is restricted to an application with a \(LLI_{n-1}\) data transfer that does not need a trigger. The triggering mode of this \(LLI_{n-1}\) is used to load the next \(LLI_n\).
Figure 184. Inserting a LLIn with an auxiliary LPDMA channel y
sequenceDiagram
participant DMAx as DMA primary channel x
participant DMAy as DMA auxiliary channel y
participant CPU as CPU
Note left of DMAx: LLI_{n-2} transfer
DMAx->>DMAx: Executing LLI_{n-2} data transfer
DMAx->>DMAx: Loading LLI_{n-1}
(with DMA_CxTR2: TRIGM[1:0] = 10
TRIGPOL[1:0] = 01
TRIGSEL= dma_chy_tc
and TCEM[1:0] = 01)
Note left of DMAx: LLI_{n-1} transfer
DMAx->>DMAx: Executing LLI_{n-1} data transfer
DMAx-->>CPU: Transfer complete interrupt
CPU->>CPU: Build new LLI_n
Configure channel Y
CPU->>DMAy: Executing data transfer
(Memcpy of new LLI_n)
DMAy-->>DMAx: dma_chy_tc
DMAx->>DMAx: Loading new LLI_n
Note left of DMAx: LLI_n transfer
DMAx->>DMAx: Executing LLI_n data transfer
DMAx->>DMAx: Loading LLI_{n+1}
Note left of DMAx: LLI_{n+1} transfer
MSv62632V2
28.4.8 LPDMA channel state and linked-list programming in link step mode
When LPDMA_CxCR.LSM = 1, a channel transfer is executed and completed after each single execution of a LLI, including its (conditional) data transfer and its (conditional) link transfer.
A LPDMA channel transfer can be programmed at LLI level, started by writing 1 into LPDMA_CxCR.EN, and after completed at LLI level:
- • The current LLIn transfer is described with:
- – LPDMA_CxTR1 defines the source/destination elementary single transfers.
- – LPDMA_CxBR1 defines the number of bytes at a block level (BNDT[15:0]).
- – LPDMA_CxTR2 defines the input control (request, trigger) and the output control (transfer complete event) of the transfer.
- – LPDMA_CxSAR/LPDMA_CxDAR defines the source/destination transfer start address.
- – LPDMA_CxLLR defines the data structure and the address offset of the next LLIn+1 in the memory.
- • The current LLIn transfer is completed after the single execution of the current LLIn:
- – after the (conditional) data transfer completion (when LPDMA_CxBR1.BNDT[15:0] = 0)
- – after the (conditional) update of the LPDMA link register file from the data structure of the next LLIn+1 in memory
Note: If a LLI is recursive (pointing to itself as a next LLI, either LPDMA_CxLLR.ULL = 1 and LPDMA_CxLLR.LA[15:2] is updated by the same value, or LPDMA_CxLLR.ULL = 0), a channel in link step mode is completed after each repeated single execution of this LLI.
In the regular data transfer completion at a block level, LPDMA_CxBR1.BNDT[15:0] = 0. Alternatively, a block transfer may be early completed by a peripheral (such as an I3C in Rx mode), and then BNDT[15:0] is not null (see Section 28.4.14 for more details).
Figure 185 depicts the LPDMA channel execution mode, and its programming in link step mode.
Note: Figure 185 is not intended to illustrate how often a TCEF can be raised, depending on the programmed value of TCEM[1:0] in LPDMA_CxTR2. It can be raised at (each) block completion, at (each) 2D block completion, at (each) LLI completion, or only at the last LLI data transfer completion. In link step mode, the channel is disabled after each single execution of a LLI, and depending on the value of TCEM[1:0] a TCEF is raised or not.
In Figure 185, BNDT ≠ 0 is the typical condition for starting the first data transfer. This condition becomes (BNDT ≠ 0 and PFREQ = 1) if the peripheral requests a data transfer with early termination (see Section 28.3.5).
Figure 185. LPDMA channel execution and linked-list programming in link step mode (LPDMA_CxCR.LSM = 1)

graph TD
subgraph IdleState [Channel state = Idle]
Init[Initialize DMA channel]
Enable[Enable DMA channel]
Reconfig[Reconfigure DMA channel]
Enable --> ActiveState
Reconfig --> Enable
end
subgraph ActiveState [Channel state = Active]
Valid1{Valid user setting?}
BNDT{BNDT ≠ 0?}
Exec[Executing once the data transfer from the register file]
Error1{No transfer error?}
LLR{LLR ≠ 0?}
LoadLLI[Loading next LLI into the register file]
Error2{No transfer error?}
Valid2{Valid user setting?}
TCF[Setting TCF = 1
Disabling DMA channel]
USEF1[Setting USEF = 1
Disabling DMA channel]
DTEF[Setting DTEF = 1
Disabling DMA channel]
ULEF[Setting ULEF = 1
Disabling DMA channel]
Valid1 -- Y --> BNDT
Valid1 -- N --> USEF1
BNDT -- Y --> Exec
BNDT -- N --> Error1
Exec --> Error1
Error1 -- Y --> LLR
Error1 -- N --> DTEF
LLR -- Y --> LoadLLI
LLR -- N --> Error2
LoadLLI --> Error2
Error2 -- Y --> Valid2
Error2 -- N --> ULEF
Valid2 -- Y --> TCF
Valid2 -- N --> USEF1
end
TCF --> End{End}
USEF1 --> Reconfig
DTEF --> Reconfig
ULEF --> ReconfigMSv62633V1
The link step mode can be used to elaborate dynamically LLIs in memory during run-time. The software can be facilitated by using a static data structure for any \(LLI_n\) (all update bits of LPDMA_CxLLR have a static value, \(LLI_n.LLR.LA = LLI_{n-1}.LLR.LA + \text{constant}\)).
Run-time adding a \(LLI_{n+1}\) in link step mode
During run-time, the software can defer the elaboration of the \(LLI_{n+1}\) (and next LLIs), until/after LPDMA executed the transfer from the \(LLI_{n-1}\) and loaded the \(LLI_n\) from the memory, as shown in the figure below.
Figure 186. Building \(LLI_{n+1}\): LPDMA dynamic linked-lists in link step mode

graph TD
subgraph DMA_Channel [DMA Channel]
LLI_n2_transfer([LLI_{n-2} transfer])
LLI_n1_transfer([LLI_{n-1} transfer])
LLI_n_transfer([LLI_n transfer])
end
subgraph CPU [CPU]
Enable_DMA1[Enable DMA channel]
Build_LLI_n1[Build and store LLI_{n+1}]
Enable_DMA2[Enable DMA channel]
end
LLI_n2_transfer -- "Transfer complete interrupt" --> Enable_DMA1
Enable_DMA1 --> Build_LLI_n1
Build_LLI_n1 --> Enable_DMA2
Enable_DMA2 --> LLI_n_transfer
LLI_n1_transfer --> Executing_LLI_n1[Executing LLI_{n-1} data transfer]
Executing_LLI_n1 --> Loading_LLI_n[Loading LLI_n]
Loading_LLI_n -- "Transfer complete interrupt" --> Enable_DMA2
MSv62634V1
Run-time replacing a \(LLI_n\) with a new \(LLI_{n'}\) in link step mode (in linked-list register file)
In this link step mode, during run-time, the software can build and insert a new \(LLI_{n'}\), after LPDMA executed the transfer from the \(LLI_{n-1}\) and loaded a formerly elaborated \(LLI_n\) from the memory by overwriting directly the linked-list register file with the new \(LLI_{n'}\), as shown in Figure 187.
Figure 187. Replace with a new LLIn' in register file in link step mode

The diagram illustrates the process of replacing an LLI in the register file in link step mode, divided into three stages:
- Stage 1:
- DMA channel: Executes LLIn-1 data transfer, then loads LLIn.
- CPU: Builds LLIn' and overwrites the linked-list register file.
- Interaction: A 'Transfer complete interrupt' from the DMA channel triggers the CPU action.
- Stage 2:
- DMA channel: Executes LLIn' data transfer, then loads LLIn+1'.
- CPU: Enables the DMA channel.
- Interaction: A 'Transfer complete interrupt' from the DMA channel triggers the CPU action.
- Stage 3:
- DMA channel: Executes LLIn+1" transfer.
- CPU: Builds LLIn+1" and overwrites the linked-list register file, then enables the DMA channel.
- Interaction: A 'Transfer complete interrupt' from the DMA channel triggers the CPU action.
MSv62635V1
Run-time replacing a LLIn with a new LLIn' in link step mode (in the memory)
The software can build and insert a new LLIn' and LLIn+1' in the memory, after LPDMA executed the transfer from the LLIn-1 and loaded a formerly elaborated LLIn from the memory, by overwriting partly the linked-list register file (LPDMA_CxBR1.BNDT[15:0] to be null and LPDMA_CxLLR to point to new LLIn') as shown in Figure 188.
Figure 188. Replace with a new LLIn' and LLI n+1' in memory in link step mode (option 1)
LSM = 1 with 1-stage linked-list programming:
Overwriting the (pre)loaded LLIn linked-list register file with a new LLIn' and LLIn+1' in memory and
overwrite partly linked-list register file
(DMA_CxBR1.BNDT = 0 and DMA_CxLLR to point to new LLIn')
DMA executes LLIn-1 and load LLIn then CPU builds (LLIn' and LLIn+1') and overwrite (BR1 and LLR)
graph TD
subgraph DMA_Channel [DMA Channel]
LLI_n_minus_1_transfer[LLIn-1 transfer]
LLI_n_transfer[LLIn' transfer]
LLI_n_plus_1_transfer[LLIn+1' transfer]
end
subgraph CPU
CPU_Steps[CPU Steps]
end
LLI_n_minus_1_transfer --> LLI_n_transfer
LLI_n_transfer --> LLI_n_plus_1_transfer
LLI_n_minus_1_transfer -- "Transfer complete interrupt" --> CPU_Build[Build LLIn' and LLIn+1' in memory]
CPU_Build --> CPU_Write[Write DMA_CxBR1.BNDT = 0
Write DMA_CxLLR to point to new LLIn']
CPU_Write --> CPU_Enable1[Enable DMA channel]
CPU_Enable1 --> LLI_n_transfer
LLI_n_transfer -- "Transfer complete interrupt" --> CPU_Enable2[Enable DMA channel]
CPU_Enable2 --> LLI_n_plus_1_transfer
LLI_n_plus_1_transfer -.-> End[ ]
LLIn-1 transfer
- Executing LLIn-1 data transfer
- Loading LLIn
Transfer complete interrupt
CPU
- Build LLIn' and LLIn+1' in memory
- Write DMA_CxBR1.BNDT = 0
Write DMA_CxLLR to point to new LLIn' - Enable DMA channel
LLIn' transfer
- Loading LLIn'
Transfer complete interrupt
CPU
- Enable DMA channel
LLIn+1' transfer
- Executing LLIn+1' data transfer
- Loading LLIn+1'
Transfer complete interrupt
MSv62636V1
Run-time replacing a LLIn with a new LLIn' in link step mode
Other software implementations exist. Meanwhile LPDMA executes the transfer from the LLIn-1 and loads a formerly elaborated LLIn from the memory (or even earlier), the software can do the following:
- 1. Disable the NVIC for not being interrupted by the interrupt handling.
- 2. Build a new LLIn' and a new LLIn+1'.
- 3. Enable again the NVIC for the channel interrupt (transfer complete) notification.
The software in the interrupt handler for LLIn-1 is then restricted to overwrite LPDMA_CxBR1.BNDT[15:0] to be null and LPDMA_CxLLR to point to new LLIn', as shown in Figure 189.
Figure 189. Replace with a new LLIn' and LLIn+1' in memory in link step mode (option 2)

LSM = 1 with 1-stage linked-list programming:
Overwriting the (pre)loaded LLIn linked-list register file by building new LLIn' and LLIn+1' in memory while disabling (temporary) channel interrupt at NVIC level, and overwriting DMA_CxBR1.BNDT = 0 and DMA_CxLLR to point to new LLIn'
DMA executes LLIn-1 and loading LLIn while CPU builds (LLIn' and LLIn+1'), then CPU overwrites (BR1 and LLR)
graph TD
subgraph DMA_channel [DMA channel]
D1[Executing LLI_{n-1} data transfer] --> D2[Loading LLI_n]
D2 -- "Transfer complete interrupt" --> C1[Enable DMA channel]
C1 --> D3[Loading LLI_{n'}]
D3 -- "Transfer complete interrupt" --> C2[Enable DMA channel]
C2 --> D4[Executing LLI_{n+1'} data transfer]
D4 --> D5[Loading LLI_{n+1'}]
D5 -- "Transfer complete interrupt" --> C3[ ]
end
subgraph CPU [CPU]
C0[Disable NVIC DMA irq channel] --> C1[Build LLI_{n'} & LLI_{n+1'} in memory]
C1 --> C2[Enable NVIC DMA irq channel]
C2 --> C3[Write DMA_CxBR1.BNDT = 0
Write DMA_CxLLR to point to new LLI_{n'}]
C3 --> C4[Enable DMA channel]
C4 --> C5[Enable DMA channel]
C5 --> C6[ ]
end
MSv62637V1
28.4.9 LPDMA channel state and linked-list programming
The software can reconfigure a channel when the channel is disabled (LPDMA_CxCR.EN = 0) and update the execution mode (LPDMA_CxCR.LSM) to change from/to run-to-completion mode to/from link step mode.
In any execution mode, the software can:
- • reprogram \(LLI_{n+1}\) in the memory to finally complete the channel by this \(LLI_{n+1}\) (clear the LPDMA_CxLLR of this \(LLI_{n+1}\)), before that this \(LLI_{n+1}\) is loaded/used by the LPDMA channel
- • abort and reconfigure the channel with a LSM update (see Section 28.4.4)
In link step mode, the software can clear LSM after each a single execution of any LLI, during \(LLI_{n-1}\).
Figure 190 shows the overall and unified LPDMA linked-list programming, whatever is the execution mode.
Note: Figure 190 is not intended to illustrate how often a TCEF can be raised, depending on the programmed value of TCEM[1:0] in LPDMA_CxTR2. It can be raised at (each) block completion, at (each) 2D block completion, at (each) LLI completion, or only at the last LLI data transfer completion. In run-to-completion mode, whatever is the value of TCEM[1:0], at the channel completion the hardware always set TCEF = 1 and disables the channel. In link step mode, the channel is disabled after each single execution of a LLI, and depending on the value of TCEM[1:0] a TCEF is raised or not.
In Figure 190, BNDT ≠ 0 is the typical condition for starting the first data transfer. This condition becomes (BNDT ≠ 0 and PFREQ = 1) if the peripheral requests a data transfer with early termination (see Section 28.3.5).
Figure 190. LPDMA channel execution and linked-list programming

graph TD; subgraph IdleState [Channel state = Idle]; Init[Initialize DMA channel]; Enable[Enable DMA channel]; Reconfig[Reconfigure DMA channel]; End((End)); end; subgraph ActiveState [Channel state = Active]; ValidUser{Valid user setting?}; BNDT{BNDT ≠ 0?}; Execute[Executing once the data transfer from the register file]; NoError1{No transfer error?}; LLR{LLR ≠ 0?}; LoadLLI[Loading next LLI into the register file]; NoError2{No transfer error?}; ValidUser2{Valid user setting?}; LSM{LSM = 1?}; SetUSEF1[Setting USEF = 1 Disabling DMA channel]; SetDTEF1[Setting DTEF = 1 Disabling DMA channel]; SetULEF1[Setting ULEF = 1 Disabling DMA channel]; SetTCF1[Setting TCF = 1 Disabling DMA channel]; end; Init --> Enable; Enable --> ValidUser; ValidUser -- N --> SetUSEF1; SetUSEF1 --> Reconfig; Reconfig --> Enable; ValidUser -- Y --> BNDT; BNDT -- N --> SetDTEF1; SetDTEF1 --> Reconfig; BNDT -- Y --> Execute; Execute --> NoError1; NoError1 -- N --> SetDTEF1; NoError1 -- Y --> LLR; LLR -- N --> SetTCF1; LLR -- Y --> LoadLLI; LoadLLI --> NoError2; NoError2 -- N --> SetULEF1; NoError2 -- Y --> ValidUser2; ValidUser2 -- N --> SetUSEF1; ValidUser2 -- Y --> LSM; LSM -- N --> SetTCF1; LSM -- Y --> SetTCF1; SetTCF1 --> End;MSv62638V1
28.4.10 LPDMA direct transfers
There is a single transfer operation mode called the direct mode. Any LPDMA channel is used in direct mode. Any channel is implemented without any FIFO (for every channel x, dma_fifo_size[x] = 0).
LPDMA single
A programmed transfer at the lowest level is called a LPDMA single.
A LPDMA single data width is 1, 2 or 4 bytes, as defined by the SDW_LOG2[1:0] and DDW_LOG2[1:0] fields of LPDMA_CxTR1(respectively for source and destination).
Note: The user must not assign a 8-byte data width (SDW_LOG2[1:0] = 0b11 or DDW_LOG2[1:0] = 0b11) else a user setting is reported and no transfer is issued.
The addressing mode after each data of a LPDMA single is defined by the SINC and DINC bits of LPDMA_CxTR1(respectively for source and destination): either a fixed addressing or an incremented addressing with contiguous data.
The start and next addresses of a LPDMA source/destination single (defined by LPDMA_CxSAR and LPDMA_CxDAR) must be aligned with the respective data width.
The table below lists the main characteristics of a LPDMA single.
The next single address in the table is the next source/destination address, pointed by LPDMA_CxSAR and LPDMA_CxDAR, once the programmed source/destination single is completed.
Table 222. Programmed LPDMA source/destination single
| Programmed LPDMA source/destination single | SDW_LOG2[1:0] DDW_LOG2[1:0] | Data width (bytes) | SINC/ DINC | Addressing mode | SAR/DAR next single address | Address alignment |
|---|---|---|---|---|---|---|
| Fixed byte single | 00 | 1 | 0 | Fixed | +0 | 1 |
| Fixed half-word single | 01 | 2 | 2 | |||
| Fixed word single | 10 | 4 | 4 | |||
| Incremented byte single | 00 | 1 | 1 | Incremented | +1 | 1 |
| Incremented half-word single | 01 | 2 | +2 | 2 | ||
| Incremented word single | 10 | 4 | +4 | 4 | ||
| Forbidden | 11 | Causes USEF generation and none single to be issued. | ||||
In direct mode, a LPDMA single is an AHB single transfer.
LPDMA data handling: byte-based padding/truncation, sign extension and left/right alignment
The user can configure some data manipulation between a transferred data from the source and its transfer to the destination. Data handling is controlled by the LPDMA_CxTR1 register:
- • If destination data width = source data width (DDW_LOG2[1:0] = SDW_LOG2[1:0]), the source data is copied as is and transferred to the destination.
- • Else, depending on PAM:
- – If destination data width > source data width, the source data can be either right-aligned and padded with 0 s, or sign extended up to the destination data width.
- – If destination data width < source data width, the source data can be either right-aligned and left-truncated down to the destination data width, or left-aligned and right-truncated down to the destination data width.
There is no data manipulation between two distinct transferred data from the source, before the generation of the destination transfer.
The table below lists possible data handling from the source to the destination.
Table 223. Programmed data handling
| SDW_LOG2[1:0] | Source data | Source data stream(1) | DDW_LOG2[1:0] | Destination data | PAM[0] | Destination data stream(1) |
|---|---|---|---|---|---|---|
| 00 | Byte | B7,B6,B5,B4, B3,B2,B1,B0 | 00 | Byte | x | B7,B6,B5,B4,B3,B2,B1,B0 |
| 01 | Half-word | 0 (RA, 0P)(2)(3) | 0B3,0B2,0B1,0B0 | |||
| 1 (RA, SE)(2)(4) | SB3,SB2,SB1,SB0 | |||||
| 10 | Word | 0 (RA, 0P) | 000B1,000B0 | |||
| 1 (RA, SE) | SSSB1,SSSB0 | |||||
| 01 | Half-word | B7B6,B5B4, B3B2,B1B0 | 00 | Byte | 0 (RA, LT)(2) | B6,B4,B2,B0 |
| 1 (LA, RT)(2) | B7,B5,B3,B1 | |||||
| 01 | Half-word | xx | B7B6,B5B4,B3B2,B1B0 | |||
| 0 (RA, 0P) | 00B3B2,00B1B0 | |||||
| 10 | Word | B7B6B5B4, B3B2B1B0 | 00 | Byte | 0 (RA, LT) | B12,B8,B4,B0 |
| 1 (LA, RT) | B15,B11,B7,B3 | |||||
| 01 | Half-word | 0 (RA, LT) | B5B4,B1B0 | |||
| Word | 1 (LA, RT) | B7B6,B3B2 | ||||
| 10 | xx | B7B6B5B4,B3B2B1B0 |
- 1. Data stream is timely ordered starting from the byte with the lowest index a.k.a B0.
- 2. RA = right aligned. LA = left aligned. RT= right truncated. LT = left truncated.
- 3. 0P = zero bit padding up to the destination data width.
- 4. SE = sign bit extended up to the destination data width.
28.4.11 LPDMA transfer request and arbitration
LPDMA transfer request
As defined by LPDMA_CxTR2, a programmed LPDMA data transfer is requested with one of the following:
- • a software request if the control bit SWREQ = 1: This is used typically by the CPU for a data transfer from a memory-mapped address to another memory mapped address (memory-to-memory, GPIO to/from memory)
- • an input hardware request coming from a peripheral if SWREQ = 0: The selection of the LPDMA hardware peripheral request is driven by the REQSEL[4:0] field (see Section 28.3.4). The selected hardware request can be one of the following:
- – a hardware request from a peripheral configured in LPDMA mode (for a transfer from/to the peripheral data register respectively to/from the memory)
- – a hardware request from a peripheral for its control registers update from the memory
- – a hardware request from a peripheral for a read of its status registers transferred to the memory
Caution: The user must not assign a same input hardware peripheral LPDMA request via LPDMA_CxTR.REQSEL[4:0] to two different channel if at a given time this request is asserted by the peripheral and each channel is ready to execute this requested data transfer. There is no user setting error reporting.
LPDMA transfer request for arbitration
For a given channel, a LPDMA requested data transfer from the source address to the destination address is arbitrated versus simultaneous requested LPDMA transfers from other channels, in order to be scheduled over the AHB master port. A LPDMA data transfer is atomic to the LPDMA arbitration: it consists of an AHB read single, immediately followed by an AHB write single. It is granted by the arbiter once for both AHB transfers, based on the channel priority defined by LPDMA_CxCR.PRIO[1:0].
An arbitrated LPDMA requested link transfer consists of one 32-bit read from the linked-list data structure in the memory to one of the linked-list registers (LPDMA_CxTR1, LPDMA_CxTR2, LPDMA_CxBR1, LPDMA_CxSAR, LPDMA_CxDAR or LPDMA_CxLLR). Each 32-bit read from the memory is arbitrated with the same channel priority as for data transfers, in order to be scheduled over the master port.
The re arbitration occurs after each granted single transfer:
- • whatever how the requested data transfer is programmed:
- – with a software request for a memory-to-memory transfer (LPDMA_CxTR2.SWREQ = 1)
- – with a hardware request (LPDMA_CxTR2.SWREQ = 0) for a memory-to-peripheral transfer or a peripheral-to-memory transfer
- • whatever the hardware request type
When the requested data transfer is programmed with a hardware request from a peripheral (LPDMA_CxTR2.SWREQ = 0), the first memory read of a block is gated by the occurrence of the corresponding and selected hardware request, whatever the peripheral is source or destination of the transfer. This first read request to the memory is not taken into account earlier by the arbiter (not as soon as the block transfer is enabled and executable).
LPDMA arbitration
The LPDMA arbitration is directed from the 4-grade assigned channel priority (LPDMA_CxCR.PRIO[1:0]). The arbitration policy, as illustrated in Figure 191, is defined by:
- • one high-priority traffic class (queue 3), dedicated to the assigned channels with priority 3, for time-sensitive channels
This traffic class is granted via a fixed-priority arbitration against any other low-priority traffic class. Within this class, requested single transfers are round-robin arbitrated. - • three low-priority traffic classes (queues 0, 1 or 2) for non time-sensitive channels with priority 0, 1 or 2
Each requested single transfer within this class is round-robin arbitrated, with a weight that is monotonically driven from the programmed priority:- – Requests with priority 0 are allocated to the queue 0.
- – Requests with priority 1 are allocated and replicated to the queue 0 and queue 1.
- – Requests with priority 2 are allocated and replicated to the queue 0, queue 1, and queue 2.
- – Any queue 0, 1 or 2 equally grants any of its active input requests in a round-robin manner, provided there are simultaneous requests.
- – Additionally, there is a second stage for the low-traffic with a round-robin arbiter that fairly alternates between simultaneous selected requests from queue 0, queue 1 and queue 2.
Figure 191. LPDMA arbitration policy

Request from any channel x being assigned with LPDMA_CxCR.PRIO = 0 → Queue 0 RRA
Request from any channel x being assigned with LPDMA_CxCR.PRIO = 1 → Queue 1 RRA
Request from any channel x being assigned with LPDMA_CxCR.PRIO = 2 → Queue 2 RRA
Request from any channel x being assigned with LPDMA_CxCR.PRIO = 3 → Queue 3 RRA
Queue 0 RRA, Queue 1 RRA, Queue 2 RRA → RRA → Low → FPA → Granted request
Queue 3 RRA → High → FPA
RRA = round-robin arbitration, FPA = fixed-priority arbitration
LPDMA arbitration MSv62639V1
- 1. RRA: round-robin arbitration
- 2. FPA: fixed-priority arbitration
LPDMA arbitration and bandwidth
With this arbitration policy, the following is guaranteed:
- • Equal maximum bandwidth between requests with same priority
- • Reserved bandwidth (noted as \(B_{Q3}\)) to the time-sensitive requests (with priority 3)
- • Residual weighted bandwidth between different low-priority requests (priority 0 versus priority 1 versus priority 2).
The two following examples highlight that the weighted round-robin arbitration is driven by the programmed priorities:
- • Example 1: basic application with two non time-sensitive LPDMA requests: req0 and req1. There are the following programming possibilities:
- – If they are assigned with same priority, the allocated bandwidth by the arbiter to req0 (\(B_{req0}\)) is equal to the allocated bandwidth to req1 (\(B_{req1}\)).
- – If req0 is assigned to priority 0 and req1 to priority 1, the allocated bandwidth to req0 (\(B_{P0}\)) is 3 times less than the allocated bandwidth to req1 (\(B_{P1}\)).
- – If req0 is assigned to priority 0 and req1 to priority 2, the allocated bandwidth to req0 (\(B_{P0}\)) is 5 times less than the allocated bandwidth to req1 (\(B_{P2}\)).
The above computed bandwidth calculation is based on a theoretical input request, always active for any LPDMA clock cycle. This computed bandwidth from the arbiter must be weighted by the frequency of the request given by the application, that cannot be always active and may be quite much variable from one LPDMA client (example I2C at 400 kHz) to another one (PWM at 1 kHz) than the above x3 and x5 ratios.
- • Example 2: application where the user distributes a same non-null N number of LPDMA requests to every non time-sensitive priority 0, 1 and 2. The bandwidth calculation is then the following:
- – The allocated bandwidth to the set of requests of priority 0 (\(B_{P0}\)) is
- – The allocated bandwidth to the set of requests of priority 1 (\(B_{P1}\)) is
- – The allocated bandwidth to the set of requests of priority 2 (\(B_{P2}\)) is
- – The allocated bandwidth to any request n (\(B_n\)) among the N requests of that priority \(P_i\) (i = 0 to 2) is \(B_n = 1/N * B_{P_i}\)
- – The allocated bandwidth to any request n of priority 0 (\(B_{n, P0}\)) is
In this example, when the master port bus bandwidth is not totally consumed by the time-sensitive queue 3, the residual bandwidth is such that 2.5 times less bandwidth is allocated to any request of priority 0 versus priority 1, and 5.5 times less bandwidth is allocated to any request of priority 0 versus priority 2.
More generally, assume that the following requests are present:
- • I requests (I ≥ 0) assigned to priority 0
If I > 0, these requests are noted from i = 0 to I-1. - • J requests (J ≥ 0) assigned to priority 1
If J > 0, these requests are noted from j = 0 to J-1. - • K requests (K > 0) assigned to priority 2
These requests are noted from k = 0 to K-1 - • L requests (L ≥ 0) assigned to priority 3
If L > 0, these requests are noted from l = 0 to L-1.
As \(B_{Q3}\) is the reserved bandwidth to time-sensitive requests, the bandwidth for each request L with priority 3 is:
- • \(B_l = B_{Q3} / L\) for L > 0 (else: \(B_l = 0\))
The bandwidth for each non-time sensitive queue is:
- • \(B_{Q0} = 1/3 * (1 - B_{Q3})\)
- • \(B_{Q1} = 1/3 * (1 - B_{Q3})\)
- • \(B_{Q2} = 1/3 * (1 - B_{Q3})\)
The bandwidth for the set of requests with priority 0 is:
- • \(B_{P0} = I / (I + J + K) * B_{Q0}\)
The bandwidth for each request i with priority 0 is:
- • \(B_i = B_{P0} / I\) for I > 0 (else \(B_{P0} = 0\))
The bandwidth for the set of requests with priority 1 and routed to queue 0 is:
- • \(B_{P1,Q0} = J / (I + J + K) * B_{Q0}\)
The bandwidth for the set of requests with priority 1 and routed to queue 1 is:
- • \(B_{P1,Q1} = J / (J + K) * B_{Q1}\)
The total bandwidth for the set of requests with priority 1 is:
- • \(B_{P1} = B_{P1,Q0} + B_{P1,Q1}\)
The bandwidth for each request j with priority 1 is:
- • \(B_j = B_{P1} / J\) for J > 0 (else \(B_j = 0\))
The bandwidth for the set of requests with priority 2 and routed to queue 0 is:
- • \(B_{P2,Q0} = K / (I + J + K) * B_{Q0}\)
The bandwidth for the set of requests with priority 2 and routed to queue 1 is:
- • \(B_{P2,Q1} = K / (J + K) * B_{Q1}\)
The bandwidth for the set of requests with priority 2 and routed to queue 2 is:
- • \(B_{P2,Q2} = B_{Q2}\)
The total bandwidth for the set of requests with priority 2 is:
- • \(B_{P2} = B_{P2,Q0} + B_{P2,Q1} + B_{P2,Q2}\)
The bandwidth for each request k with priority 2 is:
- • \(B_k = B_{P2} / K\) (K > 0 in the general case)
Thus finally the maximum allocated residual bandwidths for any i,j,k non-time sensitive request are:
- • in the general case (when there is at least one request k with a priority 2 (K > 0)):
- – \(B_i = 1/I * 1/3 * I/(I + J + K) * (1 - B_{Q3})\)
- – \(B_j = 1/J * 1/3 * [J/(I + J + K) + J/(J + K)] * (1 - B_{Q3})\)
- – \(B_k = 1/K * 1/3 * [K/(I + J + K) + K/(J + K) + 1] * (1 - B_{Q3})\)
- • in the specific case (when there is no request k with a priority 2 (K = 0)):
- – \(B_i = 1/I * 1/2 * I/(I + J) * (1 - B_{Q3})\)
- – \(B_j = 1/J * 1/2 * [J/(I + J) + 1] * (1 - B_{Q3})\)
Consequently, the LPDMA arbiter can be used as a programmable weighted bandwidth limiter, for each queue and more generally for each request/channel. The different weights are monotonically resulting from the programmed channel priorities.
28.4.12 LPDMA triggered transfer
A programmed LPDMA transfer can be triggered by a rising/falling edge of a selected input trigger event, as defined by LPDMA_CxTR2.TRIGPOL[1:0] and LPDMA_CxTR2.TRIGSEL[4:0] (see Section 28.3.6 for the trigger selection).
The triggered transfer, as defined by the trigger mode in LPDMA_CxTR2.TRIGM[1:0], can be at LLI data transfer level, to condition the first single read of a block, or each programmed single read. The trigger mode can also be programmed to condition the LLI link transfer (see the TRIGM[1:0] description in LPDMA channel x transfer register 2 (LPDMA_CxTR2) for more details).
Trigger hit memorization and trigger overrun flag generation
The LPDMA monitoring of a trigger for a channel x is started when the channel is enabled/loaded with a new active trigger configuration: rising or falling edge on a selected trigger (respectively TRIGPOL[1:0] = 01 or TRIGPOL[1:0] = 10).
The monitoring of this trigger is kept active during the triggered and uncompleted (data or link) transfer. If a new trigger is detected, this hit is internally memorized to grant the next transfer, as long as the defined rising/falling edge and TRIGSEL[4:0] are not modified, and the channel is enabled.
Transferring a next LLIn+1, that updates the LPDMA_CxTR2 with a new value for any of TRIGSEL[4:0] or TRIGPOL[1:0], resets the monitoring, trashing the possible memorized hit of the formerly defined LLIn trigger.
Caution: After a first new trigger hitn+1 is memorized, if another trigger hitn+2 is detected and if the hitn triggered transfer is still not completed, hitn+2 is lost and not memorized. A trigger overrun flag is reported (LPDMA_CxSR.TOF = 1) and an interrupt is generated if enabled (if LPDMA_CxCR.TOIE = 1). The channel is not automatically disabled by hardware due to a trigger overrun.
The figure below illustrates the trigger hit, memorization and overrun in the configuration example with a block-level trigger mode and a rising edge trigger polarity.
Figure 192. Trigger hit, memorization and overrun waveform

Note: The user can assign the same input trigger event to different channels. This can be used to trigger different channels on a broadcast trigger event.
28.4.13 LPDMA circular buffering with linked-list programming
LPDMA circular buffering for memory-to-peripheral and peripheral-to-memory transfers
For a circular buffering, with a continuous memory-to-peripheral (or peripheral-to-memory) transfer, the software must set up a channel with half transfer and complete transfer events/interrupts generation (LPDMA_CxCR.HTIE = 1 and LPDMA_CxCR.TCIE = 1), in order to enable a concurrent buffer software processing.
LLI0 is configured for the first block transfer. A continuously-executed LLI1 is needed to restore the memory source (or destination) start address, for the memory-to-peripheral transfer (respectively the peripheral-to-memory transfer). LPDMA automatically reloads the initially programmed LPDMA_CxBR1.BNDT[15:0] when a block transfer is completed, and there is no need to restore LPDMA_CxBR1.
The figure below illustrates this programming with a LPDMA channel and a source circular buffer.
Figure 193. LPDMA circular buffer programming: update of the memory start address

The diagram illustrates the LPDMA circular buffer programming process. At the top, a block labeled 'Channel x' contains two sub-blocks: 'Init/LLI0' and 'Restore SAR/LLI1'. A 'Reset' signal enters the 'Init/LLI0' block. Two green arrows labeled 'Req=PERIPH_TX' point to the 'Init/LLI0' and 'Restore SAR/LLI1' blocks respectively. A pink arrow labeled 'Ht+ tcf' points from 'Init/LLI0' to 'Restore SAR/LLI1'. Another pink arrow labeled 'Ht+ tcf' points from 'Restore SAR/LLI1' to the 'Memory' block below. Below 'Channel x' is a 'Linked-list register file' containing a block 'LLI0' with registers: DMA_CxTR1, DMA_CxTR2, DMA_CxBR1, DMA_CxSAR, DMA_CxDAR, and DMA_CxLLR. A line from 'DMA_CxLLR' points to the 'Memory' block. The 'Memory' block contains a sub-block 'LLI1' with register 'DMA_CxSAR'. Text between the register file and memory block specifies: 'CxLBA (LA = 0)', 'USA = 1', and 'others Uxx = 0'. The diagram is labeled 'MSv62640V1' in the bottom right corner.
If circular buffering must be executed after some other transfers over the shared LPDMA channel x, the before-last LLIN-1 in memory is needed to configure the first block transfer. And the last LLIN restores the memory source (or destination) start address in memory-to-peripheral transfer (respectively in peripheral-to-memory transfer).
The figure below illustrates this programming with a shared LPDMA channel, and a source circular buffer.
Figure 194. Shared LPDMA channel with circular buffering:
update of the memory start address

28.4.14 LPDMA transfer in peripheral flow-control mode
A peripheral with the peripheral flow-control mode feature can decide to early terminate an LPDMA block transfer, provided that the allocated channel is implemented with this feature (see Section 28.3.5).
If the related LPDMA channel x is also programmed in peripheral flow-control mode (LPDMA_CxTR2.PFREQ = 1):
- • The LPDMA block transfer starts as follows:
- – If LPDMA_CxBR1.BNDT[15:0] ≠ 0, the programmed value is internally taken into account by the LPDMA hardware.
- – If LPDMA_CxBR1.BNDT[15:0] = 0, the LPDMA hardware internally considers a 64-Kbyte value for the maximum source block size to be transferred.
- • The LPDMA block transfer is completed as soon as the first occurrence of one of the following condition occurs:
- – when LPDMA_CxBR1.BNDT[15:0] = 0
- – when the peripheral early terminates the block. The complete transfer event is generated if programmed, depending on LPDMA_CxTR2 (see LPDMA channel x transfer register 2 (LPDMA_CxTR2)). Then the software can read the current number of transferred bytes from the source (LPDMA_CxBR1.BNDT[15:0]), and/or read the current source or destination address of the buffer in memory (LPDMA_CxSAR[31:0] or LPDMA_CxDAR[31:0]).
28.4.15 LPDMA secure/nonsecure channel
The LPDMA controller is compliant with the TrustZone hardware architecture at channel level, partitioning all its resources so that they exist in one of the secure and nonsecure worlds at any given time.
Any channel x is a secure or a nonsecure hardware resource, as configured by LPDMA_SECCFGR.SECx.
When a channel x is configured in secure state by a secure and privileged agent, the following access control rules are applied:
- • A nonsecure read access to a register field of this channel is forced to return 0, except for LPDMA_SECCFGR, LPDMA_PRIVCFGR, LPDMA_RCFGLOCKR and LPDMA_CxSEMCR that are readable by a nonsecure agent.
- • A nonsecure write access to a register field of this channel has no impact.
When a channel x is configured in secure state, a secure agent can configure separately as secure or nonsecure the LPDMA data transfer from the source (LPDMA_CxTR1.SSEC) and the LPDMA data transfer to the destination (LPDMA_CxTR1.DSEC).
When a channel x is configured in secure state and in linked-list mode, the loading of the next linked-list data structure from the LPDMA memory into its register file, is automatically performed with secure transfers via the master port.
LPDMA generates the DMA channel state versus security, reflecting LPDMA_SECCFGR, to keep the other peripherals informed of the secure/nonsecure state of each LPDMA channel x.
LPDMA also generates a security illegal access pulse signal on an illegal nonsecure access to a secure LPDMA register. This signal is routed to the TrustZone interrupt controller.
When the secure software must switch a channel from a secure state to a nonsecure state, the secure software must abort the channel or wait until the secure channel is completed before switching. This is needed to dynamically re-allocate a channel to a next nonsecure transfer as a nonsecure software is not allowed to do so and must have LPDMA_CxCR.EN = 0 before the nonsecure software can reprogram the LPDMA_CxCR for a next transfer. The secure software may reset not only the channel x (LPDMA_CxCR.RESET = 1) but also the full channel x register file to its reset value.
28.4.16 LPDMA privileged/unprivileged channel
Any channel x is a privileged or unprivileged hardware resource, as configured by a privileged agent via LPDMA_PRIVCFGR.PRIVx.
When a channel x is configured in a privileged state by a privileged agent, the following access control rules are applied:
- • An unprivileged read access to a register field of this channel is forced to return 0, except for LPDMA_PRIVCFGR, LPDMA_SECCFGR, LPDMA_CxCIDCFGR and LPDMA_CxSEMCR that are readable by an unprivileged agent.
- • An unprivileged write access to a register field of this channel has no impact.
When a channel is configured in a privileged (or unprivileged) state, the source and destination data transfers are privileged (respectively unprivileged) transfers over the AHB master port.
When a channel is configured in a privileged (or unprivileged) state and in linked-list mode, the loading of the next linked-list data structure from the LPDMA memory into its register file,
is automatically performed with privileged (respectively unprivileged) transfers, via the master port.
LPDMA generates a DMA channel state versus privilege, reflecting LPDMA_PRIVCFGR, to keep the other peripherals informed of the privileged/unprivileged state of each DMA channel x.
Additionally, the LPDMA generates the privileged illegal access pulse signal on an illegal unprivileged access to a privileged LPDMA register. This signal may be used or not, depending on the product (see the system security section for more details).
When the privileged software must switch a channel from a privileged state to an unprivileged state, the privileged software must abort the channel or wait until that the privileged channel is completed before switching. This is needed to dynamically re-allocate a channel to a next unprivileged transfer as an unprivileged software is not allowed to do so, and must have LPDMA_CxCR.EN = 0 before the unprivileged software can reprogram the LPDMA_CxCR for a next transfer. The privileged software may reset not only the channel x (LPDMA_CxCR.RESET = 1) but also the full channel x register file to its reset value.
LPDMA compartmented channel
The LPDMA controller performs bus transfers over its master port, under the control of a resource isolation domain identification, named compartment identification (CID), at a channel level. For more details about resource isolation and CID, refer to RIF section in the product reference manual.
28.4.17 LPDMA error management
LPDMA is able to manage and report to the user a transfer error, as follows, depending on the root cause.
Data transfer error
On a bus access (as a AHB single) to the source or the destination:
- • The source or destination target reports an AHB error.
- • The programmed channel transfer is stopped (LPDMA_CxCR.EN cleared by the LPDMA hardware). The channel status register reports an idle state (LPDMA_CxSR.IDLEF = 1) and the data error (LPDMA_CxSR.DTEF = 1).
- • After a LPDMA data transfer error, the user must perform a debug session, taking care of the product-defined memory mapping of the source and destination, including the protection attributes.
- • After a LPDMA data transfer error, the user must issue a channel reset (set LPDMA_CxCR.RESET) to reset the hardware LPDMA channel data path before the user enables again the same channel for a next transfer.
Link transfer error
On a tentative update of a LPDMA channel register from the programmed LLI in the memory:
- • The linked-list memory reports an AHB error.
- • The programmed channel transfer is stopped (LPDMA_CxCR.EN cleared by the LPDMA hardware), the channel status register reports an idle state (LPDMA_CxSR.IDLEF = 1) and the link error (LPDMA_CxSR.ULEF = 1).
- • After a LPDMA link error, the user must perform a debug session, taking care of the product-defined memory mapping of the linked-list data structure (LPDMA_CxLBAR and LPDMA_CxLLR), including the protection attributes.
- • After a LPDMA link error, the user must explicitly write the linked-list register file (LPDMA_CxTR1, LPDMA_CxTR2, LPDMA_CxBR1, LPDMA_CxSAR, LPDMA_CxDAR and LPDMA_CxLLR), before the user enables again the same channel for a next transfer.
User setting error
On a tentative execution of a LPDMA transfer with an unauthorized user setting:
- • The programmed channel transfer is disabled (LPDMA_CxCR.EN forced and cleared by the LPDMA hardware) preventing the next unauthorized programmed data transfer from being executed. The channel status register reports an idle state (LPDMA_CxSR.IDLEF = 1) and a user setting error (LPDMA_CxSR.USEF = 1).
- • After a LPDMA user setting error, the user must perform a debug session, taking care of the LPDMA channel programming. A user setting error can be caused by one of the following:
- – a programmed null source block size without a programmed update of this value from the next LLI1 (LPDMA_CxBR1.BNDT[15:0] = 0 and LPDMA_CxLLR.UB1 = 0)
- – a programmed non-null source block size being not a multiple of the programmed data width of a source single transfer (LPDMA_CxBR1.BNDT[2:0] versus LPDMA_CxTR1.SDW_LOG2[1:0])
- – a programmed unaligned source start address, being not a multiple of the programmed data width of a source single transfer (LPDMA_CxSAR[2:0] versus LPDMA_CxTR1.SDW_LOG2[1:0])
- – a programmed unaligned destination start address, being not a multiple of the programmed data width of a destination single transfer (LPDMA_CxDAR[2:0] versus LPDMA_CxTR1.DDW_LOG2[1:0])
- – a programmed double-word source data width (LPDMA_CxTR1.SDW_LOG2[1:0] = 0b11)
- – a programmed double-word destination data width (LPDMA_CxTR1.DDW_LOG2[1:0] = 0b11)
- – a programmed linked-list item LLIn+1 with a null data transfer (LPDMA_CxLLR.UB1 = 1 and LPDMA_CxBR1.BNDT = 0)
28.4.18 LPDMA autonomous mode
To save dynamic power consumption while LPDMA executes the programmed linked-list transfers, LPDMA hardware automatically manages its own clock gating and generates a
clock request output signal to the RCC, whenever the device is in Run, Sleep or Stop mode, provided that the RCC is programmed with the corresponding LPDMA enable control bits.
For more details about the RCC programming, refer to the RCC section of the reference manual.
For mode details about the availability of the LPDMA autonomous feature vs the device low-power modes, refer to Section 28.3.2.
Note: design/firmware: In low power modes, DMA clock request is asserted upon a DMA request/trigger from an autonomous peripheral or upon a DMA trigger from an EXTI line.
The user can program and schedule the execution of a given LPDMA transfer at a LLIn level of a LPDMA channel x, with LPDMA_CxTR2 as follows:
- • The software controls and conditions the input of a transfer with TRIGM[1:0], TRIGPOL[1:0], TRIGSEL[y(a):0], SWREQ, and REQSEL[z(a):0] for the input trigger and request.
- • The software controls and signals the output of a transfer with TCEM[1:0] for generating or not a transfer complete event, and generating or not an associated half data transfer event).
See LPDMA channel x transfer register 2 (LPDMA_CxTR2) for more details.
The output channel x transfer complete event, lpdma_chx_tc, can be programmed as a selected input trigger for a channel if this event is looped-back and connected at the LPDMA level (see Section 28.3.6), allowing autonomous and fine DMA inter-channel transfer scheduling, without needing a cleared transfer complete flag (TCF).
A given LPDMA channel x asserts its clock request in one of the following conditions:
- • if the next transfer to be executed is programmed as conditioned by a trigger (LPDMA_CxTR2.TRIGPOL[1:0] and LPDMA_CxTR2.TRIGM[1:0]), only when the trigger hit occurs.
- • if the next transfer to be executed is not conditioned by a trigger:
- – if LPDMA_CxTR2.SWREQ = 0, only when the hardware request is asserted by the selected peripheral
- – if LPDMA_CxTR2.SWREQ = 1 (memory-to-memory, GPIO to/from memory), as soon as the GPDMA is enabled
The LPDMA channel x releases its clock request as soon as all the following conditions are met:
- • The transfer to be executed is completed.
- • The LPDMA channel x is not immediately ready and requested to execute the next transfer.
- • If a channel x interrupt was raised, all the flags of the status register that can cause this interrupt, are cleared by a software agent.
When one channel asserts its clock request, the LPDMA asserts its clock request to the RCC. When none channel asserts its clock request, the LPDMA releases its clock request to the RCC.
a. Refer to LPDMA channel x transfer register 2 (LPDMA_CxTR2) for y and z values.
28.5 LPDMA in debug mode
When the microcontroller enters debug mode (core halted), any channel x can be individually either continued (default) or suspended, depending on the programmable control bit in the DBGMCU module.
Note: In debug mode, LPDMA_CxSR.SUSPF is not altered by a suspension from the programmable control bit in the DBGMCU module. In this case, LPDMA_CxSR.IDLEF can be checked to know the completion status of the channel suspension.
28.6 LPDMA in low-power modes
Table 224. Effect of low-power modes on LPDMA
| Mode | Description |
|---|---|
| Sleep | No effect. LPDMA interrupts cause the device to exit Sleep mode. |
| Stop(1) | The content of the LPDMA registers is kept when entering Stop mode. The content of the LPDMA registers can be autonomously updated by a next linked-list item from memory, to perform autonomous data transfers. LPDMA interrupts can cause the device to exit Stop mode. |
| Standby | The LPDMA is powered down and must be reinitialized after exiting Standby mode. |
1. Refer to Section 28.3.2 to know which Stop mode is supported.
28.7 LPDMA interrupts
There is one LPDMA interrupt line for each channel, and separately for each CPU (if several ones in the devices).
Table 225. LPDMA interrupt requests
| Interrupt acronym | Interrupt event | Interrupt enable | Event flag | Event clear method |
|---|---|---|---|---|
| LPDMA_CHx | Transfer complete | LPDMA_CxCR.TCIE | LPDMA_CxSR.TCF | Write 1 to LPDMA_CxFCR.TCF |
| Half transfer | LPDMA_CxCR.HTIE | LPDMA_CxSR.HTF | Write 1 to LPDMA_CxFCR.HTF | |
| Data transfer error | LPDMA_CxCR.DTEIE | LPDMA_CxSR.DTEF | Write 1 to LPDMA_CxFCR.DTEF | |
| Update link error | LPDMA_CxCR.ULEIE | LPDMA_CxSR.ULEF | Write 1 to LPDMA_CxFCR.ULEF | |
| User setting error | LPDMA_CxCR.USEIE | LPDMA_CxSR.USEF | Write 1 to LPDMA_CxFCR.USEF | |
| Suspended | LPDMA_CxCR.SUSPIE | LPDMA_CxSR.SUSPF | Write 1 to LPDMA_CxFCR.SUSPF | |
| Trigger overrun | LPDMA_CxCR.TOFIE | LPDMA_CxSR.TOF | Write 1 to LPDMA_CxFCR.TOF |
A LPDMA channel x event may be:
- • a transfer complete
- • a half-transfer complete
- • a transfer error, due to either:
- – a data transfer error
- – an update link error
- – a user setting error completed suspension
- • a trigger overrun
Note: When a channel x transfer complete event occurs, the output signal lpdma_chx_tc is generated as a high pulse of one clock cycle.
An interrupt is generated following any xx event, provided that both:
- • the corresponding interrupt event xx is enabled (
LPDMA_CxCR.xxIE = 1) - • the corresponding event flag is cleared (
LPDMA_CxSR.xxF = 0). This means that, after a previous same xx event occurrence, a software agent must have written 1 into the corresponding xx flag clear control bit (write 1 intoLPDMA_CxFCR.xxF).
TCF (transfer complete) and HTF (half transfer) events generation is controlled by LPDMA_CxTR2.TCEM[1:0] as follows:
- • A transfer complete event is a block transfer complete or a LLI transfer complete including the upload of the next LLI if any, or the full linked-list completion, depending on the transfer complete event mode
LPDMA_CxTR2.TCEM[1:0]. - • A half transfer event is a half block transfer. A half-block transfer occurs when half of the source block size bytes (rounded-up integer of
LPDMA_CxBR1.BNDT[15:0] / 2) is transferred to the destination.
See LPDMA channel x transfer register 2 (LPDMA_CxTR2) for more details.
A transfer error rises in one of the following situations:
- • during a single data transfer from the source or to the destination (DTEF)
- • during an update of a LPDMA channel register from the programmed LLI in memory (ULEF)
- • during a tentative execution of a LPDMA channel with an unauthorized setting (USEF)
The user must perform a debug session to correct the LPDMA channel programming versus the USEF root causes list (see Section 28.4.17).
A trigger overrun is described in Trigger hit memorization and trigger overrun flag generation.
28.8 LPDMA registers
The LPDMA registers must be accessed with an aligned 32-bit word data access.
28.8.1 LPDMA secure configuration register (LPDMA_SECCFGR)
Address offset: 0x000
Reset value: 0x0000 0000
A write access is ignored at bit level if the corresponding channel x is locked (LPDMA_RCFGLOCKR.LOCKx = 1).
A write access to this register must be secure and privileged. A read access is secure or nonsecure, privileged or unprivileged, and with any CID.
This register can mix information from different CIDs. If a channel x is configured as CID filtered (LPDMA_CxCIDCFGR.CFEN = 1), the SECx bit can be written only by an authorized CID (and secure and privileged) agent. If the debug domain feature is activated, a write access to this register is granted to the debug domain CID, regardless of any CID filtering.
This register must be written when LPDMA_CxCR.EN = 0.
This register is read-only when LPDMA_CxCR.EN = 1.
This register must be programmed at a bit level, at the initialization/closure of a LPDMA channel (when LPDMA_CxCR.EN = 0), to securely allocate individually any channel x to the secure or nonsecure world.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SEC3 | SEC2 | SEC1 | SEC0 |
| rw | rw | rw | rw |
Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 SECx: secure state of channel x (x = 3 to 0)
0: nonsecure
1: secure
28.8.2 LPDMA privileged configuration register (LPDMA_PRIVCFGR)
Address offset: 0x004
Reset value: 0x0000 0000
A write access to this register must be privileged. A read access can be privileged or unprivileged, secure or nonsecure, and with any CID.
A write access is ignored at bit level if the corresponding channel x is locked (GPDMA_RCFGLOCKR.LOCKx = 1).
This register can mix secure and nonsecure information. If a channel x is configured as secure (LPDMA_SECCFGR.SECx = 1), the PRIVx bit can be written only by a secure (and privileged) agent.
This register can mix information from different CIDs. If a channel x is configured as CID filtered (LPDMA_CxCIDCFGR.CFEN = 1), the SECx bit can be written only by an authorized CID (and secure and privileged) agent. If the debug domain feature is activated, a write access to this register is granted to the debug domain CID, regardless of any CID filtering.
This register must be written when LPDMA_CxCR.EN = 0.
This register is read-only when LPDMA_CxCR.EN = 1.
This register must be programmed at a bit level, at the initialization/closure of a LPDMA channel (LPDMA_CxCR.EN = 0), to individually allocate any channel x to the privileged or unprivileged world.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIV3 | PRIV2 | PRIV1 | PRIV0 |
| rw | rw | rw | rw |
Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 PRIVx: privileged state of channel x (x = 3 to 0)
0: unprivileged
1: privileged
28.8.3 LPDMA configuration lock register (LPDMA_RCFGLOCKR)
Address offset: 0x008
Reset value: 0x0000 0000
This register can be written by a software agent with secure privileged and trusted domain CID attributes in order to individually lock, for example at boot time, the secure privileged and CID attributes of any DMA channel/resource (to lock the setting of LPDMA_SECCFGR, LPDMA_PRIVCFGR, and LPDMA_CxCIDCFGR for any channel x, for example at boot time).
A read access may be privileged or unprivileged, secure or nonsecure, and with any CID.
Note: If TZEN = 0, this register cannot be written.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | LOCK3 | LOCK2 | LOCK1 | LOCK0 |
| rs | rs | rs | rs |
Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 LOCKx: lock the configuration of LPDMA_SECCFGR.SECx, LPDMA_PRIVCFGR.PRIVx, and LPDMA_CxCIDCFGR until a global DMA reset (x = 3 to 0)
This bit is cleared after reset and, once set, it cannot be reset until a global DMA reset.
0: secure privilege and CID configuration of the channel x is writable.
1: secure privilege and CID configuration of the channel x is not writable.
28.8.4 LPDMA nonsecure masked interrupt status register (LPDMA_MISR)
Address offset: 0x00C
Reset value: 0x0000 0000
This register is a read register.
This is a nonsecure register, containing the masked interrupt status bit MISx for each nonsecure channel x (channel x configured with LPDMA_SECCFGR.SECx = 0). It is a logical OR of all the flags of LPDMA_CxSR, each source flag being enabled by the corresponding interrupt enable bit of LPDMA_CxCR.
Every bit is de-asserted by hardware when writing 1 to the corresponding flag clear bit in LPDMA_CxFCR.
If a channel x is in secure state (LPDMA_SECCFGR.SECx = 1), a read access to the masked interrupt status bit MISx of this channel x returns zero.
This register may mix privileged and unprivileged information, depending on the privileged state of each channel LPDMA_PRIVCFGR.PRIVx. A privileged software can read the full nonsecure interrupt status. An unprivileged software is restricted to read the status of unprivileged (and nonsecure) channel(s), other privileged bit fields returning zero.
This register can mix information of different CID values, depending on the CID of each channel (LPDMA_CxCIDCFGR register). A given CIDy software is unable to read the
masked interrupt status bit MISx of a channel x, if this channel is CID-filtered (LPDMA_CxCIDCFGR.CFEN=1) and is under the control of a software with a different CID value than the CIDy (then read as zero). If debug domain feature is activated, a read access to this register is granted to the debug domain CID, regardless of any CID filtering.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MIS3 | MIS2 | MIS1 | MIS0 |
| r | r | r | r |
Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 MISx: masked interrupt status of channel x (x = 3 to 0)
0: no interrupt occurred on nonsecure channel x
1: an interrupt occurred on nonsecure channel x
28.8.5 LPDMA secure masked interrupt status register (LPDMA_SMISR)
Address offset: 0x010
Reset value: 0x0000 0000
This is a secure read register, containing the masked interrupt status bit MISx for each secure channel x (LPDMA_SECCFGR.SECx = 1). It is a logical OR of all the LPDMA_CxSR flags, each source flag being enabled by the corresponding LPDMA_CxCR interrupt enable bit.
Every bit is de-asserted by hardware when securely writing 1 to the corresponding LPDMA_CxFCR flag clear bit.
This register does not contain any information about a nonsecure channel.
This register can mix privileged and unprivileged information, depending on the privileged state of each channel LPDMA_PRIVCFGR.PRIVx. A privileged software can read the full secure interrupt status. An unprivileged software is restricted to read the status of unprivileged and secure channels, other privileged bit fields returning zero.
This register can mix information of different CID values, depending on the CID of each channel (LPDMA_CxCIDCFGR register). A given CIDy software is unable to read the masked interrupt status bit MISx of a channel x, if this channel is CID-filtered (LPDMA_CxCIDCFGR.CFEN=1) and is under the control of a software with a different CID value than the CIDy (then read as zero). If debug domain feature is activated, a read access to this register is granted to the debug domain CID, regardless of any CID filtering.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MIS3 | MIS2 | MIS1 | MIS0 |
| r | r | r | r |
Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 MISx: masked interrupt status of the secure channel x (x = 3 to 0)
0: no interrupt occurred on the secure channel x
1: an interrupt occurred on the secure channel x
28.8.6 LPDMA channel x linked-list base address register (LPDMA_CxLBAR)
Address offset: 0x050+0x80*x (x = 0 to 3)
Reset value: 0x0000 0000
This register must be written by a privileged software. It is either privileged readable or not, depending on the privileged state of the channel x LPDMA_PRIVCFGR.PRIVx.
This register is either secure or nonsecure depending on the secure state of the channel x (LPDMA_SECCFGR.SECx).
This register is CID-filtered depending on the CID configuration of the channel x (LPDMA_CxCIDCFGR.CFEN = 1). If the debug domain feature is activated, an access to this register is granted to the debug domain CID, regardless of any CID filtering.
This register must be written when LPDMA_CxCR.EN = 0.
This register is read-only when LPDMA_CxCR.EN = 1.
This channel-based register is the linked-list base address of the memory region, for a given channel x, from which the LLIs describing the programmed sequence of the LPDMA transfers, are conditionally and automatically updated.
This 64-Kbyte aligned channel x linked-list base address is offset by the 16-bit LPDMA_CxLLR register that defines the word-aligned address offset for each LLI.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| LBA[31:16] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
Bits 31:16 LBA[31:16]: linked-list base address of LPDMA channel x
Bits 15:0 Reserved, must be kept at reset value.
28.8.7 LPDMA channel x CID register (LPDMA_CxCIDCFGR)
Address offset: 0x054 + 0x80 * x (x = 0 to 3)
Reset value: 0x0000 0000
This channel-based register can be written by the secure, privileged, trusted domain CID, in order to individually configure the CID allocation of any LPDMA channel x.
This register must be written when the CID configuration of channel x is unlocked (LPDMA_RCFGLOCKR.LOCKx = 0) and when channel x is disabled (LPDMA_CxCR.EN = 0).
This register is read-only when LPDMA_RCFGLOCKR.LOCKx = 1 or LPDMA_CxCR.EN = 1.
A read access may be privileged or unprivileged, secure or nonsecure, and with any CID.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SEM_WLIST_CID3 | SEM_WLIST_CID2 | SEM_WLIST_CID1 | SEM_WLIST_CID0 |
| rw | rw | rw | rw | ||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SCID[1:0] | Res. | Res. | SEM_EN | CFEN | |
| rw | rw | rw | rw | ||||||||||||
Bits 31:20 Reserved, must be kept at reset value.
- Bit 19 SEM_WLIST_CID3: white-listed CID3 in the CID allocation pool (of channel x in semaphore mode)
0: CID3 black-listed in the CID allocation pool (of channel x in semaphore mode)
1: CID3 white-listed in the CID allocation pool (of channel x in semaphore mode) - Bit 18 SEM_WLIST_CID2: white-listed CID2 in the CID allocation pool (of channel x in semaphore mode)
0: CID2 black-listed in the CID allocation pool (of channel x in semaphore mode)
1: CID2 white-listed in the CID allocation pool (of channel x in semaphore mode) - Bit 17 SEM_WLIST_CID1: white-listed CID1 in the CID allocation pool (of channel x in semaphore mode)
0: CID1 black-listed in the CID allocation pool (of the channel x in semaphore mode)
1: CID1 white-listed in the CID allocation pool (of the channel x in semaphore mode) - Bit 16 SEM_WLIST_CID0: white-listed CID0 in the CID allocation pool (of channel x in semaphore mode)
0: CID0 black-listed in the CID allocation pool (of channel x in semaphore mode)
1: CID0 white-listed in the CID allocation pool (of channel x in semaphore mode)
Bits 15:6 Reserved, must be kept at reset value.
- Bits 5:4 SCID[1:0]: static CID selection to channel x
00: CID0 allocated to channel x
01: CID1 allocated to channel x
10: CID2 statically allocated to channel x
11: CID3 allocated to channel x
Bits 3:2 Reserved, must be kept at reset value.
Bit 1 SEM_EN: semaphore mode enable (for the CID allocation policy to the channel x)
0: semaphore mode disabled. CID allocation policy to the channel x is defined by SCID[1:0].
1: semaphore mode enabled. CID allocation policy to the channel x is defined by the white-listed allocation pool SEM_WLIST_CIDx and LPDMA_CxSEMC.R.SEM_MUTEX.
Note: If SEM_EN = 1 and if a trusted domain or debug domain CID agent clears this bit, then the LPDMA hardware automatically clears the LPDMA_CxSEMC.R.SEM_MUTEX.
Bit 0 CFEN: CID filtering enable of the channel x
0: CID filtering disabled for when accessing a channel x register/field
1: CID filtering enabled for when accessing a channel x register/field
Note: If SCFEN = 1 and if a trusted domain or debug domain CID agent clears this bit, then the LPDMA hardware automatically clears the LPDMA_CxSEMC.R.SEM_MUTEX.
28.8.8 LPDMA channel x semaphore control register (LPDMA_CxSEMC.R)
Address offset: 0x058 + 0x80 * x (x = 0 to 3)
Reset value: 0x0000 0000
When the secure, privileged and trusted domain has set up the channel x in semaphore mode (LPDMA_CxCIDCFGR.SEM_EN = 1), this register is used during run-time by an authorized white-listed CID agent in order to take and after possibly release the control of the channel x.
A read access may be privileged or unprivileged, secure or nonsecure, and with any CID.
| RM0457 28.8.8 | column_2 | Bit 1 Bit 0 | SEM_EN CFEN the channel x. | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | column_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SEM_CCID[1:0] | Res. | Res. | Res. | SEM_ MUTEX | |
| r | r | rw | |||||||||||||
| Bits 5:4 | SEM_CCID[1:0] | : current CID allocated to channel x in semaphore mode | |||||||||||||
| RM0457 Rev 5 | 1679/ | 5881 |
Bits 31:6 Reserved, must be kept at reset value.
Bits 5:4 SEM_CCID[1:0]: current CID allocated to channel x in semaphore mode
This read-only field is internally updated when a white-listed CID takes the control of channel x, in semaphore mode. If SEM_MUTEX = 0, this same CID also released it.
00: CID0 is the last white-listed CID that took the control of channel x
01: CID1 is the last white-listed CID that took the control of channel x
10: CID2 is the last white-listed CID that took the control of channel x
11: CID3 is the last white-listed CID that took the control of the channel x
Bits 3:1 Reserved, must be kept at reset value.

Bit 0 SEM_MUTEX: mutex exclusion semaphore for the CID allocation of channel x (in semaphore mode)
If the channel x is in secure state (LPDMA_SECCFGR.SECx = 1), this bit can only be written by a secure agent. If the channel x is in privileged state (LPDMA_PRIVCFGR.PRIVx = 1), this bit can only be written by a privileged agent.
If the channel x is CID-filtered (LPDMA_CxCIDCFGR.CFEN = 1) and in semaphore mode (LPDMA_CIDCFGR.SEM_EN = 1), this bit can only be written either by an authorized (white-listed) CID agent to take the control, or by the same (white-listed) CID agent to release the control.
– Condition ‘On write’:
0: release the control of the channel x (in semaphore mode) to any white-listed CID
1: take the control of the channel x (in semaphore mode), from one of the white-listed CID pool
– Condition ‘On read’:
0: channel x CID-free (not currently under the control of any white-listed CID)
1: channel x CID-allocated (currently taken and under the control of one white-listed CID)
Note: This bit must be written when LPDMA_CxCR.EN = 0. This bit is read-only when LPDMA_CxCR.EN = 1.
When EN of CFEN bit is cleared in LPDMA_CxSEMCR, the LPDMA hardware automatically clears this SEM_MUTEX bit.
28.8.9 LPDMA channel x flag clear register (LPDMA_CxFCR)
Address offset: 0x05C+ 0x80 * x (x = 0 to 3)
Reset value: 0x0000 0000
This is a write register, secure or nonsecure depending on the secure state of channel x (LPDMA_SECCFGR.SECx) and privileged or non-privileged, depending on the privileged state of the channel x (LPDMA_PRIVCFGR.PRIVx).
This register is CID-filtered depending on the CID configuration of the channel x (LPDMA_CxCIDCFGR.CFEN = 1). If the debug domain feature is activated, an access to this register is granted to the debug domain CID, regardless of any CID filtering.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | TOF | SUSPF | USEF | ULEF | DTEF | HTF | TCF | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| w | w | w | w | w | w | w |
Bits 31:15 Reserved, must be kept at reset value.
Bit 14 TOF: trigger overrun flag clear
0: no effect
1: clears the corresponding TOF flag
Bit 13 SUSPF: completed suspension flag clear
0: no effect
1: corresponding SUSPF flag cleared
- Bit 12 USEF: user setting error flag clear
0: no effect
1: corresponding USEF flag cleared - Bit 11 ULEF: update link transfer error flag clear
0: no effect
1: corresponding ULEF flag cleared - Bit 10 DTEF: data transfer error flag clear
0: no effect
1: corresponding DTEF flag cleared - Bit 9 HTF: half transfer flag clear
0: no effect
1: corresponding HTF flag cleared - Bit 8 TCF: transfer complete flag clear
0: no effect
1: corresponding TCF flag cleared
Bits 7:0 Reserved, must be kept at reset value.
28.8.10 LPDMA channel x status register (LPDMA_CxSR)
Address offset: 0x060+0x80*x (x = 0 to 3)
Reset value: 0x0000 0001
This is a read register, reporting the channel status.
This register is secure or nonsecure, depending on the secure state of channel x (LPDMA_SECCFGR.SECx), and privileged or non-privileged, depending on the privileged state of the channel (LPDMA_PRIVCFGR.PRIVx).
This register is CID-filtered depending on the CID configuration of the channel x (LPDMA_CxCIDCFGR.CFEN = 1). If the debug domain feature is activated, an access to this register is granted to the debug domain CID, regardless of any CID filtering.
| RM0457 | column_2 | Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 | USEF ULEF DTEF HTF TCF | 0: no effect 0: no effect 0: no effect 0: no effect 0: no effect | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | column_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | TOF SUSPF USEF ULEF DTEF | HTF | TCF | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IDLEF | ||||
| r | r | r | r | r | r | r | r | ||||||||
| Bit 14 | TOF : trigger overrun flag clear | ||||||||||||||
| Bit 13 | SUSPF | : completed suspension flag | |||||||||||||
| RM0457 Rev 5 | 1681/ | 5881 |
Bits 31:15 Reserved, must be kept at reset value.
- Bit 14 TOF: trigger overrun flag clear
0: no effect
1: clears the corresponding TOF flag - Bit 13 SUSPF: completed suspension flag
0: no completed suspension event
1: a completed suspension event occurred
- Bit 12 USEF: user setting error flag
0: no user setting error event
1: a user setting error event occurred - Bit 11 ULEF: update link transfer error flag
0: no update link transfer error event
1: a master bus error event occurred while updating a linked-list register from memory - Bit 10 DTEF: data transfer error flag
0: no data transfer error event
1: a master bus error event occurred on a data transfer - Bit 9 HTF: half transfer flag
0: no half transfer event
1: a half transfer event occurred
A half transfer event is a half block transfer that occurs when half of the bytes of the source block size (rounded-up integer of LPDMA_CxBR1.BNDT[15:0] / 2) has been transferred to the destination. - Bit 8 TCF: transfer complete flag
0: no transfer complete event
1: a transfer complete event occurred
A transfer complete event is a block transfer complete or a LLI transfer complete including the upload of the next LLI if any, or the full linked-list completion, depending on the transfer complete event mode LPDMA_CxTR2.TCEM[1:0]. - Bits 7:1 Reserved, must be kept at reset value.
- Bit 0 IDLEF: idle flag
0: channel not in idle state
1: channel in idle state
This idle flag is de-asserted by hardware when the channel is enabled (LPDMA_CxCR.EN = 1) with a valid channel configuration (no USEF to be immediately reported).
This idle flag is asserted after hard reset or by hardware when the channel is back in idle state (in suspended or disabled state).
28.8.11 LPDMA channel x control register (LPDMA_CxCR)
Address offset: 0x64 + 0x80 * x (x = 0 to 3)
Reset value: 0x0000 0000
This register is secure or nonsecure depending on the secure state of channel x (LPDMA_SECCFGR.SECx), and privileged or non-privileged, depending on the privileged state of the channel x (LPDMA_PRIVCFGR.PRIVx).
This register is CID-filtered depending on the CID configuration of the channel x (LPDMA_CxCIDCFGR.CFEN = 1). If the debug domain feature is activated, an access to this register is granted to the debug domain CID, regardless of any CID filtering.
This register is used to control a channel (activate, suspend, abort or disable it).
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIO[1:0] | Res. | Res. | Res. | Res. | Res. | LSM | |
| rw | rw | rw | |||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | TOIE | SUSPIE | USEIE | ULEIE | DTEIE | HTIE | TCIE | Res. | Res. | Res. | Res. | Res. | SUSP | RESET | EN |
| rw | rw | rw | rw | rw | rw | rw | rw | w | rw | ||||||
Bits 31:24 Reserved, must be kept at reset value.
Bits 23:22 PRIO[1:0]: priority level of the channel x LPDMA transfer versus others
00: low priority, low weight
01: low priority, mid weight
10: low priority, high weight
11: high priority
Note: This bit must be written when EN = 0. This bit is read-only when EN = 1.
Bits 21:17 Reserved, must be kept at reset value.
Bit 16 LSM: Link step mode
0: channel executed for the full linked-list and completed at the end of the last LLI (LPDMA_CxLLR = 0). The 16 low-significant bits of the link address are null (LA[15:0] = 0) and all the update bits are null (UT1 = UB1 = UT2 = USA = UDA = ULL = 0). Then LPDMA_CxBR1.BNDT[15:0] = 0.
1: channel executed once for the current LLI
First the block transfer is executed as defined by the current internal register file until LPDMA_CxBR1.BNDT[15:0] = 0). Secondly the next linked-list data structure is conditionally uploaded from memory as defined by LPDMA_CxLLR. Then channel execution is completed.
Note: This bit must be written when EN = 0. This bit is read-only when EN = 1.
Bit 15 Reserved, must be kept at reset value.
Bit 14 TOIE: trigger overrun interrupt enable
0: interrupt disabled
1: interrupt enabled
Bit 13 SUSPIE: completed suspension interrupt enable
0: interrupt disabled
1: interrupt enabled
- Bit 12 USEIE: user setting error interrupt enable
0: interrupt disabled
1: interrupt enabled - Bit 11 ULEIE: update link transfer error interrupt enable
0: interrupt disabled
1: interrupt enabled - Bit 10 DTEIE: data transfer error interrupt enable
0: interrupt disabled
1: interrupt enabled - Bit 9 HTIE: half transfer complete interrupt enable
0: interrupt disabled
1: interrupt enabled - Bit 8 TCIE: transfer complete interrupt enable
0: interrupt disabled
1: interrupt enabled - Bits 7:3 Reserved, must be kept at reset value.
- Bit 2 SUSP: suspend
Writing 1 into the field RESET (bit 1) causes the hardware to de-assert this bit, whatever is written into this bit 2. Else:
Software must write 1 in order to suspend an active channel (with an ongoing DMA transfer over its master ports).
The software must write 0 in order to resume a suspended channel, following the programming sequence detailed in Figure 179.
0: write: resume channel, read: channel not suspended
1: write: suspend channel, read: channel suspended. - Bit 1 RESET: reset
This bit is write only. Writing 0 has no impact. Writing 1 implies the reset of the following: the channel internal state, SUSP and EN bits (whatever is written receptively in bit 2 and bit 0).
The reset is effective when the channel is in steady state, meaning one of the following:
- active channel in suspended state (LPDMA_CxSR.SUSPF = 1 and LPDMA_CxSR.IDLEF = LPDMA_CxCR.EN = 1)
- channel in disabled state (LPDMA_CxSR.IDLEF = 1 and LPDMA_CxCR.EN = 0).
After writing a RESET, to continue using this channel, the user must explicitly reconfigure the channel including the hardware-modified configuration registers (LPDMA_CxBR1, LPDMA_CxSAR and LPDMA_CxDAR) before enabling again the channel (see the programming sequence in Figure 180).
0: no channel reset
1: channel reset - Bit 0 EN: enable
Writing 1 into the field RESET (bit 1) causes the hardware to de-assert this bit, whatever is written into this bit 0. Else:
this bit is de-asserted by hardware when there is a transfer error (master bus error or user setting error) or when there is a channel transfer complete (channel ready to be configured, for example: if LSM = 1 at the end of a single execution of the LLI).
Else, this bit can be asserted by software.
Writing 0 into this EN bit is ignored.
0: write: ignored, read: channel disabled
1: write: enable channel, read: channel enabled
28.8.12 LPDMA channel x transfer register 1 (LPDMA_CxTR1)
Address offset: 0x090 + 0x80 * x (x = 0 to 3)
Reset value: 0x0000 0000
This register is secure or nonsecure depending on the secure state of channel x (LPDMA_SECCFGR.SECx) except for secure DSEC and SSEC, privileged or non-privileged, depending on the privileged state of the channel x in LPDMA_PRIVCFGR.PRIVx.
This register is CID-filtered depending on the CID configuration of the channel x (LPDMA_CxCIDCFGR.CFEN = 1). If the debug domain feature is activated, an access to this register is granted to the debug domain CID, regardless of any CID filtering.
This register controls the transfer of a channel x.
This register must be written when LPDMA_CxCR.EN = 0.
This register is read-only when LPDMA_CxCR.EN = 1.
This register must be written when the channel is completed. Then the hardware has deasserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block or LLI or full linked-list.
In linked-list mode, during the link transfer, this register is automatically updated by LPDMA from the memory if LPDMA_CxLLR.UT1 = 1.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DSEC | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DINC | Res. | DDW_LOG2[1:0] | |
| rw | rw | rw | rw | ||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SSEC | Res. | Res. | Res. | PAM | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SINC | Res. | SDW_LOG2[1:0] | |
| rw | rw | rw | rw | rw |
Bit 31 DSEC: security attribute of the LPDMA transfer to the destination
If LPDMA_SECCFGR.SECx = 1 and the access is secure:
0: LPDMA transfer nonsecure
1: LPDMA transfer secure
This is a secure register bit. This bit can only be read by a secure software. This bit must be written by a secure software when LPDMA_SECCFGR.SECx = 1. A secure write is ignored when LPDMA_SECCFGR.SECx = 0.
When LPDMA_SECCFGR.SECx is de-asserted, this DSEC bit is also de-asserted by hardware (on a secure reconfiguration of the channel as nonsecure), and the LPDMA transfer to the destination is nonsecure.
Bits 30:20 Reserved, must be kept at reset value.
Bit 19 DINC: destination incrementing single
0: fixed single
1: contiguously incremented single
The destination address, pointed by LPDMA_CxDAR, is kept constant after a single transfer, or is incremented by the offset value corresponding to a contiguous data after a single transfer.
Bit 18 Reserved, must be kept at reset value.
Bits 17:16 DDW_LOG2[1:0]: binary logarithm of the destination data width of a single in bytes
00: byte
01: half-word (2 bytes)
10: word (4 bytes)
11: user setting error reported and no transfer issued
Note: Setting a 8-byte data width causes a user setting error to be reported and none transfer is issued.
A destination single transfer must have an aligned address with its data width (start address LPDMA_CxDAR[2:0] versus DDW_LOG2[1:0]). Otherwise a user setting error is reported and none transfer is issued.
Bit 15 SSEC: security attribute of the LPDMA transfer from the source
If LPDMA_SECCFGR.SECx = 1 and the access is secure:
0: LPDMA transfer nonsecure
1: LPDMA transfer secure
This is a secure register bit. This bit can only be read by a secure software. This bit must be written by a secure software when LPDMA_SECCFGR.SECx = 1. A secure write is ignored when LPDMA_SECCFGR.SECx = 0.
When LPDMA_SECCFGR.SECx is de-asserted, this SSEC bit is also de-asserted by hardware (on a secure reconfiguration of the channel as nonsecure), and the LPDMA transfer from the source is nonsecure.
Bits 14:12 Reserved, must be kept at reset value.
Bit 11 PAM: padding/alignment mode
If DDW_LOG2[1:0] = SDW_LOG2[1:0]: if the data width of a single destination transfer is equal to the data width of a single source transfer, this bit is ignored.
Else, in the following enumerated values, the condition PAM_1 is when destination data width is higher than source data width, and the condition PAM_2 is when destination data width is higher than source data width.
Condition: PAM_1
0: source data is transferred as right aligned, padded with 0s up to the destination data width
1: source data is transferred as right aligned, sign extended up to the destination data width
Condition: PAM_2
0: source data is transferred as right aligned, left-truncated down to the destination data width
1: source data is transferred as left-aligned, right-truncated down to the destination data width
Bits 10:4 Reserved, must be kept at reset value.
Bit 3 SINC: source incrementing single
0: fixed single
1: contiguously incremented single
The source address, pointed by LPDMA_CxSAR, is kept constant after a single transfer or is incremented by the offset value corresponding to a contiguous data after a single transfer.
Bit 2 Reserved, must be kept at reset value.
Bits 1:0 SDW_LOG2[1:0]: binary logarithm of the source data width of a single in bytes
00: byte
01: half-word (2 bytes)
10: word (4 bytes)
11: user setting error reported and no transfer issued
Note: Setting a 8-byte data width causes a user setting error to be reported and none transfer is issued.
a source block size must be a multiple of the source data width
(LPDMA_CxBR1.BNDT[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and no transfer is issued.
A source single transfer must have an aligned address with its data width (start address LPDMA_CxSAR[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and none transfer is issued.
28.8.13 LPDMA channel x transfer register 2 (LPDMA_CxTR2)
Address offset: 0x094+0x80*x (x = 0 to 3)
Reset value: 0x0000 0000
This register is secure or nonsecure depending on the secure state of channel x (LPDMA_SECCFGR.SECx), and privileged or non-privileged, depending on the privileged state of channel x (LPDMA_PRIVCFGR.PRIVx).
This register is CID-filtered depending on the CID configuration of the channel x (LPDMA_CxCIDCFGR.CFEN = 1). If the debug domain feature is activated, an access to this register is granted to the debug domain CID, regardless of any CID filtering.
This register controls the transfer of a channel x.
This register must be written when LPDMA_CxCR.EN = 0.
This register is read-only when LPDMA_CxCR.EN = 1.
This register must be written when the channel is completed (the hardware de-asserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block or LLI or full linked-list.
In linked-list mode, during the link transfer, this register is automatically updated by LPDMA from the memory, if LPDMA_CxLLR.UT2 = 1.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TCEM[1:0] | Res. | Res. | Res. | Res. | TRIGPOL[1:0] | Res. | Res. | Res. | TRIGSEL[4:0] | ||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| TRIGM[1:0] | Res. | PFREQ | BREQ | Res. | SWREQ | Res. | Res. | Res. | Res. | REQSEL[4:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||||
Bits 31:30 TCEM[1:0]: transfer complete event mode
These bits define the transfer granularity for the transfer complete and half transfer complete events generation.
00: at block level (when LPDMA_CxBR1.BNDT[15:0] = 0): the complete (and the half) transfer event is generated at the (respectively half of the) end of a block.
Note: If the initial LLI0 data transfer is null/void (directly programmed by the internal register file with LPDMA_CxBR1.BNDT[15:0] = 0), then neither the complete transfer event nor the half transfer event is generated.
01: same as 00
10: at LLI level: the complete transfer event is generated at the end of the LLI transfer, including the update of the LLI if any. The half transfer event is generated at the half of the LLI data transfer (the LLI data transfer being a block transfer), if any data transfer.
Note: If the initial LLI0 data transfer is null/void (i.e. directly programmed by the internal register file with LPDMA_CxBR1.BNDT[15:0] = 0), then the half transfer event is not generated, and the transfer complete event is generated when is completed the loading of the LLI1.
11: at channel level: the complete transfer event is generated at the end of the last LLI transfer. The half transfer event is generated at the half of the data transfer of the last LLI. The last LLI updates the link address LPDMA_CxLLR.LA[15:2] to zero and clears all the LPDMA_CxLLR update bits (UT1, UT2, UB1, USA, UDA and ULL). If the channel transfer is continuous/infinite, no event is generated.
Bits 29:26 Reserved, must be kept at reset value.
Bits 25:24 TRIGPOL[1:0]: trigger event polarity
These bits define the polarity of the selected trigger event input defined by TRIGSEL[4:0].
00: no trigger (masked trigger event)
01: trigger on the rising edge
10: trigger on the falling edge
11: same as 00
Bits 23:21 Reserved, must be kept at reset value.
Bits 20:16 TRIGSEL[4:0]: trigger event input selection
These bits select the trigger event input of the LPDMA transfer (as per Section 28.3.6), with an active trigger event if TRIGPOL[1:0] = 00.
Bits 15:14 TRIGM[1:0]: trigger mode
These bits define the transfer granularity for its conditioning by the trigger.
If the channel x is enabled (LPDMA_CxCR.EN asserted) with TRIGPOL[1:0] = 0b00 or 0b11, these TRIGM[1:0] bits are ignored.
Else, a DMA transfer is conditioned by at least one trigger hit:
00: at block level: the first single read of each block transfer is conditioned by one hit trigger.
01: same as 00
10: at link level: a LLI link transfer is conditioned by one hit trigger. The LLI data transfer (if any) is not conditioned.
11: at programmed single level: each programmed single read is conditioned by one hit trigger.
The LPDMA monitoring of a trigger for channel x is started when the channel is enabled/loaded with a new active trigger configuration: rising or falling edge on a selected trigger (TRIGPOL[1:0] = 0b01 or respectively TRIGPOL[1:0] = 0b10).
The monitoring of this trigger is kept active during the triggered and uncompleted (data or link) transfer; and if a new trigger is detected then, this hit is internally memorized to grant the next transfer, as long as the defined rising or falling edge is not modified, and the TRIGSEL[4:0] is not modified, and the channel is enabled.
Transferring a next LLIn+1 that updates the LPDMA_CxTR2 with a new value for any of TRIGSEL[4:0] or TRIGPOL[1:0], resets the monitoring, trashing the memorized hit of the formerly defined LLIn trigger.
After a first new trigger hitn+1 is memorized, if another second trigger hitn+2 is detected and if the hitn triggered transfer is still not completed, hitn+2 is lost and not memorized, and a trigger overrun flag is reported (LPDMA_CxSR.TOF = 1), an interrupt is generated if enabled (LPDMA_CxCR.TOIE = 1). The channel is not automatically disabled by hardware due to a trigger overrun.
Bit 13 Reserved, must be kept at reset value.
Bit 12 PFREQ: Hardware request in peripheral flow control mode
Important: If a given channel x is not implemented with this feature, this bit is reserved and PFREQ is not present (see Section 28.3.5 for the list of the implemented channels with this feature).
If the channel x is activated (LPDMA_CxCR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer), this bit is ignored. Else:
0: the selected hardware request is driven by a peripheral with a hardware request/acknowledge protocol in LPDMA control mode. The LPDMA is programmed with LPDMA_CxCBR1.BNDT[15:0] and this is internally used by the hardware for the block transfer completion.
1: the selected hardware request is driven by a peripheral with a hardware request/acknowledge protocol in peripheral control mode. The LPDMA block transfer can be early completed by the peripheral itself (see Section 28.3.5 for more details).
Bit 11 BREQ: block hardware request
If the channel x is activated (LPDMA_CxCR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer), this bit is ignored. Else:
0: the selected hardware request is driven by a peripheral with a hardware request/acknowledge protocol at a single level.
1: the selected hardware request is driven by a peripheral with a hardware request/acknowledge protocol at a block level (see Section 28.3.4).
Bit 10 Reserved, must be kept at reset value.
Bit 9 SWREQ: software request
This bit is internally taken into account when LPDMA_CxCR.EN is asserted.
0: no software request. The selected hardware request REQSEL[4:0] is taken into account.
1: software request for a memory-to-memory transfer. The default selected hardware request as per REQSEL[4:0] is ignored.
Bits 8:5 Reserved, must be kept at reset value.
Bits 4:0 REQSEL[4:0]: DMA hardware request selection
These bits are ignored if channel x is activated (LPDMA_CxCR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer). Else, the selected hardware request is internally taken into account as per Section 28.3.3.
Caution: The user must not assign a same input hardware request (same REQSEL[4:0] value) to different active DMA channels (LPDMA_CxCR.EN = 1 and LPDMA_CxTR2.SWREQ = 0 for these channels). DMA is not intended to hardware support the case of simultaneous enabled channels incorrectly configured with a same hardware peripheral request signal, and there is no user setting error reporting.
28.8.14 LPDMA channel x block register 1 (LPDMA_CxBR1)
Address offset: 0x098+0x80*x (x = 0 to 3)
Reset value: 0x0000 0000
This register is secure or nonsecure depending on the secure state of channel x (LPDMA_SECCFGR.SECx), and privileged or non-privileged, depending on the privileged state of channel x (LPDMA_PRIVCFGR.PRIVx).
This register is CID-filtered depending on the CID configuration of the channel x (LPDMA_CxCIDCFGR.CFEN = 1). If the debug domain feature is activated, an access to this register is granted to the debug domain CID, regardless of any CID filtering.
This register controls the transfer of a channel x at a block level.
This register must be written when LPDMA_CxCR.EN = 0.
This register is read-only when LPDMA_CxCR.EN = 1.
This register must be written when channel x is completed (then the hardware has de-asserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block, or LLI or full linked-list.
In linked-list mode, during the link transfer:
- • if LPDMA_CxLLR.UB1 = 1, this register is automatically updated by DMA from the next LLI in memory.
- • If LPDMA_CxLLR.UB1 = 0 and if there is at least one linked-list register to be updated from the next LLI in memory, this register is automatically and internally restored with the programmed values for the field BNDT[15:0].
- • If all the update bits LPDMA_CxLLR.Uxx are null and if LPDMA_CxLLR.LA[15:0] # 0, the current LLI is the last one and is continuously executed: this register is
automatically and internally restored with the programmed value for BNDT[15:0] after each execution of this final LLI
- • If LPDMA_CxLLR = 0, this register and BNDT[15:0] are kept as null, channel x is completed.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| BNDT[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 BNDT[15:0]: block number of data bytes to transfer from the source
Block size transferred from the source. When the channel is enabled, this field becomes read-only and is decremented, indicating the remaining number of data items in the current source block to be transferred. BNDT[15:0] is programmed in number of bytes, maximum source block size is 64 Kbytes -1.
Once the last data transfer is completed (BNDT[15:0] = 0):
- - if LPDMA_CxLLR.UB1 = 1, this field is updated by the LLI in the memory.
- - if LPDMA_CxLLR.UB1 = 0 and if there is at least one non null Uxx update bit, this field is internally restored to the programmed value.
- - if all LPDMA_CxLLR.Uxx = 0 and if LPDMA_CxLLR.LA[15:0] = 0, this field is internally restored to the programmed value (infinite/continuous last LLI).
- - if LPDMA_CxLLR = 0, this field is kept as zero following the last LLI data transfer.
Note: A non-null source block size must be a multiple of the source data width (BNDT[2:0] versus LPDMA_CxTR1.SDW_LOG2[1:0]). Else a user setting error is reported and none transfer is issued.
28.8.15 LPDMA channel x source address register (LPDMA_CxSAR)
Address offset: 0x09C + 0x80 * x (x = 0 to 3)
Reset value: 0x0000 0000
This register is secure or nonsecure depending on the secure state of channel x (LPDMA_SECCFGR.SECx), and privileged or non-privileged, depending on the privileged state of channel x (LPDMA_PRIVCFGR.PRIVx).
This register is CID-filtered depending on the CID configuration of the channel x (LPDMA_CxCIDCFGR.CFEN = 1). If the debug domain feature is activated, an access to this register is granted to the debug domain CID, regardless of any CID filtering.
This register configures the source start address of a transfer.
This register must be written when LPDMA_CxCR.EN = 0.
This register is read-only when LPDMA_CxCR.EN = 1, and continuously updated by hardware, in order to reflect the address of the next single transfer from the source.
This register must be written when the channel is completed (then the hardware has deasserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block or LLI or full linked-list.
In linked-list mode, during the link transfer, this register is automatically updated by LPDMA from the memory if LPDMA_CxLLR.USA = 1.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| SA[31:16] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SA[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 SA[31:0]: source address
This field is the pointer to the address from which the next data is read.
During the channel activity, depending on the source addressing mode (LPDMA_CxTR1.SINC), this field is either kept fixed or incremented by the data width (LPDMA_CxTR1.SDW_LOG2[1:0]) after each single source data, reflecting the next address from which data is read.
In linked-list mode, after a LLI data transfer is completed, this register is automatically updated by LPDMA from the memory, provided the LLI is set with LPDMA_CxLLR.USA = 1.
Note: A source address must be aligned with the programmed data width of a source single (SA[32:0] versus LPDMA_CxTR1.SDW_LOG2[1:0]). Else, a user setting error is reported and no transfer is issued.
28.8.16 LPDMA channel x destination address register (LPDMA_CxDAR)
Address offset: 0x0A0 + 0x80 * x (x = 0 to 3)
Reset value: 0x0000 0000
This register is secure or nonsecure depending on the secure state of channel x (LPDMA_SECCFGR.SECx), and privileged or non-privileged, depending on the privileged state of channel x (LPDMA_PRIVCFGR.PRIVx).
This register is CID-filtered depending on the CID configuration of the channel x (LPDMA_CxCIDCFGR.CFEN = 1). If the debug domain feature is activated, an access to this register is granted to the debug domain CID, regardless of any CID filtering.
This register configures the destination start address of a transfer.
This register must be written when LPDMA_CxCR.EN = 0.
This register is read-only when LPDMA_CxCR.EN = 1, and continuously updated by hardware, in order to reflect the address of the next single transfer to the destination.
This register must be written when the channel is completed (then the hardware has deasserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block or LLI or full linked-list.
In linked-list mode, during the link transfer, this register is automatically updated by LPDMA from the memory if LPDMA_CxLLR.UDA = 1.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| DA[31:16] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DA[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 DA[31:0]: destination address
This field is the pointer to the address from which the next data is written.
During the channel activity, depending on the destination addressing mode (LPDMA_CxTR1.DINC), this field is kept fixed or incremented by the data width (LPDMA_CxTR1.DDW_LOG2[1:0]) after each single destination data, reflecting the next address from which data is written.
In linked-list mode, after a LLI data transfer is completed, this register is automatically updated by DMA from the memory, provided the LLI is set with LPDMA_CxLLR.UDA = 1.
Note: A destination address must be aligned with the programmed data width of a destination single (DA[2:0] versus LPDMA_CxTR1.DDW_LOG2[1:0]). Else, a user setting error is reported and no transfer is issued.
28.8.17 LPDMA channel x linked-list address register (LPDMA_CxLLR)
Address offset: 0x0CC + 0x80 * x (x = 0 to 3)
Reset value: 0x0000 0000
This register is secure or nonsecure depending on the secure state of channel x (LPDMA_SECCFGR.SECx), and privileged or non-privileged, depending on the privileged state of channel x (LPDMA_PRIVCFGR.PRIVx).
This register is CID-filtered depending on the CID configuration of the channel x (LPDMA_CxCIDCFGR.CFEN = 1). If the debug domain feature is activated, an access to this register is granted to the debug domain CID, regardless of any CID filtering.
This register configures the data structure of the next LLI in the memory and its address pointer. A channel transfer is completed when this register is null.
This register must be written when LPDMA_CxCR.EN = 0.
This register is read-only when LPDMA_CxCR.EN = 1.
This register must be written when the channel is completed (then the hardware has deasserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block or LLI or full linked-list.
In linked-list mode, during the link transfer, this register is automatically updated by LPDMA from the memory if LPDMA_CxLLR.ULL = 1.
| column_1 | column_2 | column_3 | column_4 | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | RM0457 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| UT1 | UT2 | UB1 | USA | UDA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ULL |
| rw | rw | rw | rw | rw | rw | ||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| LA[15:2] | Res. | Res. | |||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||
| Bit 31 | UT1 : Update LPDMA_CxTR1 from memory | ||||||||||||||
| Bit 30 | UT2 : Update LPDMA_CxTR2 from memory | ||||||||||||||
| Bit 29 | UB1 : Update LPDMA_CxBR1 from memory | ||||||||||||||
| Bit 28 | USA : update LPDMA_CxSAR from memory |
Bit 31 UT1: Update LPDMA_CxTR1 from memory
This bit controls the update of the LPDMA_CxTR1 register from the memory during the link transfer.
0: no LPDMA_CxTR1 update
1: LPDMA_CxTR1 update
Bit 30 UT2: Update LPDMA_CxTR2 from memory
This bit controls the update of the LPDMA_CxTR2 register from the memory during the link transfer.
0: no LPDMA_CxTR2 update
1: LPDMA_CxTR2 update
Bit 29 UB1: Update LPDMA_CxBR1 from memory
This bit controls the update of the LPDMA_CxBR1 register from the memory during the link transfer.
0: no LPDMA_CxBR1 update from memory and internally restored to the previous programmed value
1: LPDMA_CxBR1 update
Bit 28 USA: update LPDMA_CxSAR from memory
This bit controls the update of the LPDMA_CxSAR register from the memory during the link transfer.
0: no LPDMA_CxSAR update
1: LPDMA_CxSAR update
Bit 27 UDA: Update LPDMA_CxDAR register from memory
This bit is used to control the update of the LPDMA_CxDAR register from the memory during the link transfer.
0: no LPDMA_CxDAR update
1: LPDMA_CxDAR update
Bits 26:17 Reserved, must be kept at reset value.
Bit 16 ULL: Update LPDMA_CxLLR register from memory
This bit is used to control the update of the LPDMA_CxLLR register from the memory during the link transfer.
0: no LPDMA_CxLLR update
1: LPDMA_CxLLR update
Bits 15:2 LA[15:2]: pointer (16-bit low-significant address) to the next linked-list data structure
If UT1 = UT2 = UB1 = USA = UDA = ULL = 0 and if LA[15:2] = 0, the current LLI is the last one. The channel transfer is completed without any update of the linked-list DMA register file.
Else, this field is the pointer to the memory address offset from which the next linked-list data structure is automatically fetched from, once the data transfer is completed, in order to conditionally update the linked-list DMA internal register file (LPDMA_CxTR1, LPDMA_CxTR2, LPDMA_CxBR1, LPDMA_CxSAR, LPDMA_CxDAR and LPDMA_CxLLR).
Note: The user must program the pointer to be 32-bit aligned. The two low-significant bits are write ignored.
Bits 1:0 Reserved, must be kept at reset value.
28.8.18 LPDMA hardware configuration 13 register (LPDMA_HWCFGR13)
Address offset: 0xFC0
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | G_PER _CTRL 15 | Res. | Res. | Res. | G_PER _CTRL 14 | Res. | Res. | Res. | G_PER _CTRL 13 | Res. | Res. | Res. | G_PER _CTRL 12 |
| r | r | r | r | ||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | G_PER _CTRL 11 | Res. | Res. | Res. | G_PER _CTRL 10 | Res. | Res. | Res. | G_PER _CTRL 9 | Res. | Res. | Res. | G_PER _CTRL 8 |
| r | r | r | r |
Bits 31:29 Reserved, must be kept at reset value.
Bit 28 G_PER_CTRL15: DMA transfer type for channel 15
0: no peripheral flow control mode
1: peripheral flow control mode allowed
Bits 27:25 Reserved, must be kept at reset value.
Bit 24 G_PER_CTRL14: DMA transfer type for channel 14
0: no peripheral flow control mode
1: peripheral flow control mode allowed
Bits 23:21 Reserved, must be kept at reset value.
- Bit 20 G_PER_CTRL13: DMA transfer type for channel 13
0: no peripheral flow control mode
1: peripheral flow control mode allowed - Bits 19:17 Reserved, must be kept at reset value.
- Bit 16 G_PER_CTRL12: DMA transfer type for channel 12
0: no peripheral flow control mode
1: peripheral flow control mode allowed - Bits 15:13 Reserved, must be kept at reset value.
- Bit 12 G_PER_CTRL11: DMA transfer type for channel 11
0: no linked list mode
1: linked-list mode allowed - Bits 11:9 Reserved, must be kept at reset value.
- Bit 8 G_PER_CTRL10: DMA transfer type for channel 10
0: no peripheral flow control mode
1: peripheral flow control mode allowed - Bits 7:5 Reserved, must be kept at reset value.
- Bit 4 G_PER_CTRL9: DMA transfer type for channel 9
0: no peripheral flow control mode
1: peripheral flow control mode allowed - Bits 3:1 Reserved, must be kept at reset value.
- Bit 0 G_PER_CTRL8: DMA transfer type for channel 8
0: no peripheral flow control mode
1: peripheral flow control mode allowed
28.8.19 LPDMA hardware configuration 12 register (LPDMA_HWCFGR12)
Address offset: 0xFC4
Reset value: 0x0000 1111
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | G_PER_CTRL7 | Res. | Res. | Res. | G_PER_CTRL6 | Res. | Res. | Res. | G_PER_CTRL5 | Res. | Res. | Res. | G_PER_CTRL4 |
| r | r | r | r | ||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | G_PER_CTRL3 | Res. | Res. | Res. | G_PER_CTRL2 | Res. | Res. | Res. | G_PER_CTRL1 | Res. | Res. | Res. | G_PER_CTRL0 |
| r | r | r | r |
- Bits 31:29 Reserved, must be kept at reset value.
- Bit 28 G_PER_CTRL7: DMA transfer type for channel 7
0: no peripheral flow control mode
1: peripheral flow control mode allowed - Bits 27:25 Reserved, must be kept at reset value.
- Bit 24 G_PER_CTRL6: DMA transfer type for channel 6
0: no peripheral flow control mode
1: peripheral flow control mode allowed - Bits 23:21 Reserved, must be kept at reset value.
- Bit 20 G_PER_CTRL5: DMA transfer type for channel 5
0: no peripheral flow control mode
1: peripheral flow control mode allowed - Bits 19:17 Reserved, must be kept at reset value.
- Bit 16 G_PER_CTRL4: DMA transfer type for channel 4
0: no peripheral flow control mode
1: peripheral flow control mode allowed - Bits 15:13 Reserved, must be kept at reset value.
- Bit 12 G_PER_CTRL3: DMA transfer type for channel 3
0: no linked list mode
1: linked-list mode allowed - Bits 11:9 Reserved, must be kept at reset value.
- Bit 8 G_PER_CTRL2: DMA transfer type for channel 2
0: no peripheral flow control mode
1: peripheral flow control mode allowed - Bits 7:5 Reserved, must be kept at reset value.
- Bit 4 G_PER_CTRL1: DMA transfer type for channel 1
0: no peripheral flow control mode
1: peripheral flow control mode allowed - Bits 3:1 Reserved, must be kept at reset value.
- Bit 0 G_PER_CTRL0: DMA transfer type for channel 0
0: no peripheral flow control mode
1: peripheral flow control mode allowed
28.8.20 LPDMA hardware configuration 11 register (LPDMA_HWCFGR11)
Address offset: 0xFC8
Reset value: 0x0023 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | G_TST LL_IM PORT | Res. | G_NUM_RESYNC_FFS[2:0] | Res. | G_CID_WIDTH[2:0] | ||||
| r | r | r | r | r | r | r | |||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | G_SEC_OPTIONREG[5:0] | Res. | Res. | G_NONSEC_OPTIONREG[5:0] | ||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | ||||
Bits 31:25 Reserved, must be kept at reset value.
- Bit 24 G_TST_LL_IMPORT: master port for the link transfer (DFT purpose only)
0: port 0
1: port 1 - Bit 23 Reserved, must be kept at reset value.
- Bits 22:20 G_NUM_RESYNC_FFS[2:0]: number of resynchronization flip-flops, in the range 2 to 6
- Bit 19 Reserved, must be kept at reset value.
- Bits 18:16 G_CID_WIDTH[2:0]: CID bus width, in the range of 1 to 4
- Bits 15:14 Reserved, must be kept at reset value.
- Bits 13:8 G_SEC_OPTIONREG[5:0]: secure optional register width, in the range of 0 to 32
0: no register
1 to 32: n-bit width secure optional register - Bits 7:6 Reserved, must be kept at reset value.
- Bits 5:0 G_NONSEC_OPTIONREG[5:0]: nonsecure optional register width, in the range of 0 to 32
0: no register
1 to 32: n-bit width nonsecure optional register
28.8.21 LPDMA hardware configuration 10 register (LPDMA_HWCFGR10)
Address offset: 0xFCC
Reset value: 0x0000 0000
| column_1 | column_2 | Bit 24 Bits 22:20 Bits 18:16 Bits 13:8 Bits 5:0 | 0: port 0 1: port 1 | 0: no register 0: no register | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | RM0457 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | G_ADDRESSIN | |||||||||||||
| G15[1:0] | Res. | Res. | G_ADDRESSIN | ||||||||||||
| G14[1:0] | Res. | Res. | G_ADDRESSIN | ||||||||||||
| G13[1:0] | Res. | Res. | G_ADDRESSIN G12[1:0] | ||||||||||||
| r | r | r | r | r | r | r | r | ||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | G_ADDRESSIN | |||||||||||||
| G11[1:0] | Res. | Res. | G_ADDRESSIN | ||||||||||||
| G10[1:0] | Res. | Res. | G_ADDRESSIN | ||||||||||||
| G9[1:0] | Res. | Res. | G_ADDRESSIN G8[1:0] | ||||||||||||
| r | r | r | r | r | r | r | r | ||||||||
| Bits 29:28 | G_ADDRESSING15[1:0] | : DMA transfers type for the channel 15 | |||||||||||||
| Bits 25:24 | G_ADDRESSING14[1:0] | : DMA transfers type for the channel 14 | |||||||||||||
| Bits 21:20 | G_ADDRESSING13[1:0] | : DMA transfers type for the channel 13 |
- Bits 31:30 Reserved, must be kept at reset value.
- Bits 29:28 G_ADDRESSING15[1:0]: DMA transfers type for the channel 15
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size - Bits 27:26 Reserved, must be kept at reset value.
- Bits 25:24 G_ADDRESSING14[1:0]: DMA transfers type for the channel 14
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size - Bits 23:22 Reserved, must be kept at reset value.
- Bits 21:20 G_ADDRESSING13[1:0]: DMA transfers type for the channel 13
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size
Bits 19:18 Reserved, must be kept at reset value.
Bits 17:16 G_ADDRESSING12[1:0]: DMA transfers type for the channel 12
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size
Bits 15:14 Reserved, must be kept at reset value.
Bits 13:12 G_ADDRESSING11[1:0]: DMA transfers type for the channel 11
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size
Bits 11:10 Reserved, must be kept at reset value.
Bits 9:8 G_ADDRESSING10[1:0]: DMA transfers type for the channel 10
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size
Bits 7:6 Reserved, must be kept at reset value.
Bits 5:4 G_ADDRESSING9[1:0]: DMA transfers type for the channel 9
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size
Bits 3:2 Reserved, must be kept at reset value.
Bits 1:0 G_ADDRESSING8[1:0]: DMA transfers type for the channel 8
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size
28.8.22 LPDMA hardware configuration 9 register (LPDMA_HWCFGR9)
Address offset: 0xFD0
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | G_ADDRESSIN G7[1:0] | Res. | Res. | G_ADDRESSIN G6[1:0] | Res. | Res. | G_ADDRESSIN G5[1:0] | Res. | Res. | G_ADDRESSIN G4[1:0] | ||||
| r | r | r | r | r | r | r | r | ||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | G_ADDRESSIN G3[1:0] | Res. | Res. | G_ADDRESSIN G2[1:0] | Res. | Res. | G_ADDRESSIN G1[1:0] | Res. | Res. | G_ADDRESSIN G0[1:0] | ||||
| r | r | r | r | r | r | r | r | ||||||||
Bits 31:30 Reserved, must be kept at reset value.
Bits 29:28 G_ADDRESSING7[1:0]: DMA transfers type for the channel 7
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size
Bits 27:26 Reserved, must be kept at reset value.
- Bits 25:24 G_ADDRESSING6[1:0]: DMA transfers type for the channel 6
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size - Bits 23:22 Reserved, must be kept at reset value.
- Bits 21:20 G_ADDRESSING5[1:0]: DMA transfers type for the channel 5
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size - Bits 19:18 Reserved, must be kept at reset value.
- Bits 17:16 G_ADDRESSING4[1:0]: DMA transfers type for the channel 4
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size - Bits 15:14 Reserved, must be kept at reset value.
- Bits 13:12 G_ADDRESSING3[1:0]: DMA transfers type for the channel 3
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size - Bits 11:10 Reserved, must be kept at reset value.
- Bits 9:8 G_ADDRESSING2[1:0]: DMA transfers type for the channel 2
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size - Bits 7:6 Reserved, must be kept at reset value.
- Bits 5:4 G_ADDRESSING1[1:0]: DMA transfers type for the channel 1
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size - Bits 3:2 Reserved, must be kept at reset value.
- Bits 1:0 G_ADDRESSING0[1:0]: DMA transfers type for the channel 0
0: fixed/contiguous block addressing
1: programmable 2D addressing
2: programmable 2D addressing with extended offsets and block size
28.8.23 LPDMA hardware configuration 8 register (LPDMA_HWCFGR8)
Address offset: 0xFD4
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | G_LINKED_LIST15 | Res. | Res. | Res. | G_LINKED_LIST14 | Res. | Res. | Res. | G_LINKED_LIST13 | Res. | Res. | Res. | G_LINKED_LIST12 |
| r | r | r | r | ||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | G_LINKED_LIST11 | Res. | Res. | Res. | G_LINKED_LIST10 | Res. | Res. | Res. | G_LINKED_LIST9 | Res. | Res. | Res. | G_LINKED_LIST8 |
| r | r | r | r |
Bits 31:29 Reserved, must be kept at reset value.
Bit 28 G_LINKED_LIST15: DMA transfers type for the channel 15
0: no linked-list mode
1: linked-list mode allowed
Bits 27:25 Reserved, must be kept at reset value.
Bit 24 G_LINKED_LIST14: DMA transfers type for the channel 14
0: no linked-list mode
1: linked-list mode allowed
Bits 23:21 Reserved, must be kept at reset value.
Bit 20 G_LINKED_LIST13: DMA transfers type for the channel 13
0: no linked-list mode
1: linked-list mode allowed
Bits 19:17 Reserved, must be kept at reset value.
Bit 16 G_LINKED_LIST12: DMA transfers type for the channel 12
0: no linked-list mode
1: linked-list mode allowed
Bits 15:13 Reserved, must be kept at reset value.
Bit 12 G_LINKED_LIST11: DMA transfers type for the channel 11
0: no linked-list mode
1: linked-list mode allowed
Bits 11:9 Reserved, must be kept at reset value.
Bit 8 G_LINKED_LIST10: DMA transfers type for the channel 10
0: no linked-list mode
1: linked-list mode allowed
Bits 7:5 Reserved, must be kept at reset value.
Bit 4 G_LINKED_LIST9: DMA transfers type for the channel 9
0: no linked-list mode
1: linked-list mode allowed
Bits 3:1 Reserved, must be kept at reset value.
Bit 0 G_LINKED_LIST8: DMA transfers type for the channel 8
0: no linked-list mode
1: linked-list mode allowed
28.8.24 LPDMA hardware configuration 7 register (LPDMA_HWCFGR7)
Address offset: 0xFD8
Reset value: 0x0000 1111
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | G_LINKED_LIST7 | Res. | Res. | Res. | G_LINKED_LIST6 | Res. | Res. | Res. | G_LINKED_LIST5 | Res. | Res. | Res. | G_LINKED_LIST4 |
| r | r | r | r | ||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | G_LINKED_LIST3 | Res. | Res. | Res. | G_LINKED_LIST2 | Res. | Res. | Res. | G_LINKED_LIST1 | Res. | Res. | Res. | G_LINKED_LIST0 |
| r | r | r | r |
Bits 31:29 Reserved, must be kept at reset value.
Bit 28 G_LINKED_LIST7: DMA transfers type for the channel 7
0: no linked-list mode
1: linked-list mode allowed
Bits 27:25 Reserved, must be kept at reset value.
Bit 24 G_LINKED_LIST6: DMA transfers type for the channel 6
0: no linked-list mode
1: linked-list mode allowed
Bits 23:21 Reserved, must be kept at reset value.
Bit 20 G_LINKED_LIST5: DMA transfers type for the channel 5
0: no linked-list mode
1: linked-list mode allowed
Bits 19:17 Reserved, must be kept at reset value.
Bit 16 G_LINKED_LIST4: DMA transfers type for the channel 4
0: no linked-list mode
1: linked-list mode allowed
Bits 15:13 Reserved, must be kept at reset value.
Bit 12 G_LINKED_LIST3: DMA transfers type for the channel 3
0: no linked-list mode
1: linked-list mode allowed
Bits 11:9 Reserved, must be kept at reset value.
Bit 8 G_LINKED_LIST2: DMA transfers type for the channel 2
0: no linked-list mode
1: linked-list mode allowed
Bits 7:5 Reserved, must be kept at reset value.
Bit 4 G_LINKED_LIST1: DMA transfers type for the channel 1
- 0: no linked-list mode
- 1: linked-list mode allowed
Bits 3:1 Reserved, must be kept at reset value.
Bit 0 G_LINKED_LIST0: DMA transfers type for the channel 0
- 0: no linked-list mode
- 1: linked-list mode allowed
28.8.25 LPDMA hardware configuration 6 register (LPDMA_HWCFGR6)
Address offset: 0xFDC
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | G_TRAN NSFER S15 | Res. | Res. | Res. | G_TRAN NSFER S14 | Res. | Res. | Res. | G_TRAN NSFER S13 | Res. | Res. | Res. | G_TRAN NSFER S12 |
| r | r | r | r | ||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | G_TRAN NSFER S11 | Res. | Res. | Res. | G_TRAN NSFER S10 | Res. | Res. | Res. | G_TRAN NSFER S9 | Res. | Res. | Res. | G_TRAN NSFER S8 |
| r | r | r | r |
Bits 31:29 Reserved, must be kept at reset value.
Bit 28 G_TRANSFERS15: DMA transfers type for the channel 15
- 0: single only
- 1: bursts and single
Bits 27:25 Reserved, must be kept at reset value.
Bit 24 G_TRANSFERS14: DMA transfers type for the channel 14
- 0: single only
- 1: bursts and single
Bits 23:21 Reserved, must be kept at reset value.
Bit 20 G_TRANSFERS13: DMA transfers type for the channel 13
- 0: single only
- 1: bursts and single
Bits 19:17 Reserved, must be kept at reset value.
Bit 16 G_TRANSFERS12: DMA transfers type for the channel 12
- 0: single only
- 1: bursts and single
Bits 15:13 Reserved, must be kept at reset value.
Bit 12 G_TRANSFERS11: DMA transfers type for the channel 11
- 0: single only
- 1: bursts and single
Bits 11:9 Reserved, must be kept at reset value.
Bit 8 G_TRANSFERS10: DMA transfers type for the channel 10
0: single only
1: bursts and single
Bits 7:5 Reserved, must be kept at reset value.
Bit 4 G_TRANSFERS9: DMA transfers type for the channel 9
0: single only
1: bursts and single
Bits 3:1 Reserved, must be kept at reset value.
Bit 0 G_TRANSFERS8: DMA transfers type for the channel 8
0: single only
1: bursts and single
28.8.26 LPDMA hardware configuration 5 register (LPDMA_HWCFGR5)
Address offset: 0xFE0
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | G_TRANSFERS7 | Res. | Res. | Res. | G_TRANSFERS6 | Res. | Res. | Res. | G_TRANSFERS5 | Res. | Res. | Res. | G_TRANSFERS4 |
| r | r | r | r | ||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | G_TRANSFERS3 | Res. | Res. | Res. | G_TRANSFERS2 | Res. | Res. | Res. | G_TRANSFERS1 | Res. | Res. | Res. | G_TRANSFERS0 |
| r | r | r | r |
Bits 31:29 Reserved, must be kept at reset value.
Bit 28 G_TRANSFERS7: DMA transfers type for the channel 7
0: single only
1: bursts and single
Bits 27:25 Reserved, must be kept at reset value.
Bit 24 G_TRANSFERS6: DMA transfers type for the channel 6
0: single only
1: bursts and single
Bits 23:21 Reserved, must be kept at reset value.
Bit 20 G_TRANSFERS5: DMA transfers type for the channel 6
0: single only
1: bursts and single
Bits 19:17 Reserved, must be kept at reset value.
Bit 16 G_TRANSFERS4: DMA transfers type for the channel 4
0: single only
1: bursts and single
Bits 15:13 Reserved, must be kept at reset value.
Bit 12 G_TRANSFERS3: DMA transfers type for the channel 3
0: single only
1: bursts and single
Bits 11:9 Reserved, must be kept at reset value.
Bit 8 G_TRANSFERS2: DMA transfers type for the channel 2
0: single only
1: bursts and single
Bits 7:5 Reserved, must be kept at reset value.
Bit 4 G_TRANSFERS1: DMA transfers type for the channel 1
0: single only
1: bursts and single
Bits 3:1 Reserved, must be kept at reset value.
Bit 0 G_TRANSFERS0: DMA transfers type for the channel 0
0: single only
1: bursts and single
28.8.27 LPDMA hardware configuration 4 register (LPDMA_HWCFGR4)
Address offset: 0xFE4
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | G_FIFO_SIZE15[2:0] | Res. | G_FIFO_SIZE14[2:0] | Res. | G_FIFO_SIZE13[2:0] | Res. | G_FIFO_SIZE12[2:0] | ||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | ||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | G_FIFO_SIZE11[2:0] | Res. | G_FIFO_SIZE10[2:0] | Res. | G_FIFO_SIZE9[2:0] | Res. | G_FIFO_SIZE8[2:0] | ||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | ||||
Bit 31 Reserved, must be kept at reset value.
Bits 30:28 G_FIFO_SIZE15[2:0]: FIFO size for the channel 15 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
Bit 27 Reserved, must be kept at reset value.
Bits 26:24 G_FIFO_SIZE14[2:0]: FIFO size for the channel 14 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
Bit 23 Reserved, must be kept at reset value.
Bits 22:20 G_FIFO_SIZE13[2:0]: FIFO size for the channel 13 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
Bit 19 Reserved, must be kept at reset value.
Bits 18:16 G_FIFO_SIZE12[2:0]: FIFO size for the channel 12 (0 to 7):
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
Bit 15 Reserved, must be kept at reset value.
Bits 14:12 G_FIFO_SIZE11[2:0]: FIFO size for the channel 11 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
Bit 11 Reserved, must be kept at reset value.
Bits 10:8 G_FIFO_SIZE10[2:0]: FIFO size for the channel 10 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
Bit 7 Reserved, must be kept at reset value.
Bits 6:4 G_FIFO_SIZE9[2:0]: FIFO size for the channel 9 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
Bit 3 Reserved, must be kept at reset value.
Bits 2:0 G_FIFO_SIZE8[2:0]: FIFO size for the channel 8 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
28.8.28 LPDMA hardware configuration 3 register (LPDMA_HWCFGR3)
Address offset: 0xFE8
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | G_FIFO_SIZE7[2:0] | Res. | G_FIFO_SIZE6[2:0] | Res. | G_FIFO_SIZE5[2:0] | Res. | G_FIFO_SIZE4[2:0] | ||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | ||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | G_FIFO_SIZE3[2:0] | Res. | G_FIFO_SIZE2[2:0] | Res. | G_FIFO_SIZE1[2:0] | Res. | G_FIFO_SIZE0[2:0] | ||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | ||||
Bit 31 Reserved, must be kept at reset value.
Bits 30:28 G_FIFO_SIZE7[2:0]: FIFO size for the channel 7 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes
Bit 27 Reserved, must be kept at reset value.
Bits 26:24 G_FIFO_SIZE6[2:0]: FIFO size for the channel 6 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
Bit 23 Reserved, must be kept at reset value.
Bits 22:20 G_FIFO_SIZE5[2:0]: FIFO size for the channel 5 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
Bit 19 Reserved, must be kept at reset value.
- Bits 18:16 G_FIFO_SIZE4[2:0]: FIFO size for the channel 4 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes. - Bit 15 Reserved, must be kept at reset value.
- Bits 14:12 G_FIFO_SIZE3[2:0]: FIFO size for the channel 3 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes. - Bit 11 Reserved, must be kept at reset value.
- Bits 10:8 G_FIFO_SIZE2[2:0]: FIFO size for the channel 2 (0 to 7):
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes. - Bit 7 Reserved, must be kept at reset value.
- Bits 6:4 G_FIFO_SIZE1[2:0]: FIFO size for the channel 1 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes. - Bit 3 Reserved, must be kept at reset value.
- Bits 2:0 G_FIFO_SIZE0[2:0]: FIFO size for the channel 0 (0 to 7)
0: no FIFO. A single source transfer cell is internally registered.
1 to 7: FIFO of \(2^{N+1}\) bytes.
28.8.29 LPDMA hardware configuration 2 register (LPDMA_HWCFGR2)
Address offset: 0xFEC
Reset value: 0x0000 1F1F
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | G_MAX_TRIG_ID[6:0] | G_MAX_REQ_ID[7:0] | |||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | |
- Bits 31:15 Reserved, must be kept at reset value.
- Bits 14:8 G_MAX_TRIG_ID[6:0]: maximum trigger event ID (0 to 127)
- Bits 7:0 G_MAX_REQ_ID[7:0]: maximum peripheral request ID (0 to 255)
28.8.30 LPDMA hardware configuration 1 register (LPDMA_HWCFGR1)
Address offset: 0xFF0
Reset value: 0x0031 0411
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | G_M1_DATA_WIDTH_ENC[1:0] | Res. | Res. | G_M0_DATA_WIDTH_ENC[1:0] | G_MAX_CID[3:0] | Res. | Res. | Res. | G_TRUSTZONE | |||||
| r | r | r | r | r | r | r | r | r | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | G_NUM_CHANNELS[4:0] | Res. | Res. | Res. | G_PRIVILEGE | Res. | G_MASTER_PORTS[2:0] | ||||||
| r | r | r | r | r | r | r | r | r | |||||||
Bits 31:30 Reserved, must be kept at reset value.
Bits 29:28 G_M1_DATA_WIDTH_ENC[1:0]: master port 1 data bus width
- 0: 32-bit
- 1: 64-bit
- 2: 128-bit
Bits 27:26 Reserved, must be kept at reset value.
Bits 25:24 G_M0_DATA_WIDTH_ENC[1:0]: master port 0 data bus width
- 0: 32-bit
- 1: 64-bit
- 2: 128-bit
Bits 23:20 G_MAX_CID[3:0]: maximum compartment ID (CID)
- 0: no CID support, DMA not CID-aware
- 1 to 15: DMA CID-aware. Any channel is a separate CID-aware resource. Support of n+1 CIDs (from CID0 up to CIDn).
Bits 19:17 Reserved, must be kept at reset value.
Bit 16 G_TRUSTZONE: TrustZone
- 0: no TrustZone
- 1: TrustZone support
Bits 15:13 Reserved, must be kept at reset value.
Bits 12:8 G_NUM_CHANNELS[4:0]: Number of DMA channels
Bits 7:5 Reserved, must be kept at reset value.
Bit 4 G_PRIVILEGE:
- 0: no privilege
- 1: privilege support
Bit 3 Reserved, must be kept at reset value.
Bits 2:0 G_MASTER_PORTS[2:0]: master ports type
- 0: one AXI (AXI4)
- 1: one AHB: port 0 (AHB5)
- 2: two AHB: port 0 and port 1 (AHB5)
- 3: one AXI port 0 (AXI4) + one AHB port 1 (AHB5)
- 4: two AXI: port 0 and port 1 (AXI4)
28.8.31 LPDMA version register (LPDMA_VERR)
Address offset: 0xFF4
Reset value: 0x0000 0013
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MAJREV[3:0] | MINREV[3:0] | ||||||
| r | r | r | r | r | r | r | r | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 MAJREV[3:0]: LPDMA major revision
Bits 3:0 MINREV[3:0]: LPDMA minor revision
28.8.32 LPDMA identification register (LPDMA_IPIDR)
Address offset: 0xFF8
Reset value: 0x0010 0003
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ID[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 ID[31:0]: LPDMA identification
28.8.33 LPDMA size identification register (LPDMA_SIDR)
Address offset: 0xFFC
Reset value: 0xA3C5 DD04
This read register identifies the DMA as the peripheral with 4-Kbyte address space.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| SID[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 SID[31:0]: Size identification
28.8.34 LPDMA register map
Table 226. LPDMA register map and reset values
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x000 | LPDMA_SECCFGR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SEC3 | SEC2 | SEC1 | SEC0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x004 | LPDMA_PRIVCFGR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIV3 | PRIV2 | PRIV1 | PRIV0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x008 | LPDMA_ RCFGLOCKR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | LOCK3 | LOCK2 | LOCK1 | LOCK0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x00C | LPDMA_MISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MIS3 | MIS2 | MIS1 | MIS0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x010 | LPDMA_SMISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MIS3 | MIS2 | MIS1 | MIS0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x014 - 0x04C | Reserved | Res. | |||||||||||||||||||||||||||||||
| 0x050+ 0x080 * x (x = 0 to 3) | LPDMA_CxLBAR | LBA[31:16] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x054+ 0x080 * x (x = 0 to 3) | LPDMA_ CxCIDCFGR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SEM_WLIST_CID3 | SEM_WLIST_CID2 | SEM_WLIST_CID1 | SEM_WLIST_CID0 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SCID[1:0] | Res. | Res. | SEM_EN | CFEN | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x058+ 0x080 * x (x = 0 to 3) | LPDMA_CxSEMCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SEM_CCID[1:0] | Res. | Res. | Res. | SEM_MUTEX | |
| Reset value | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x05C+ 0x080 * x (x = 0 to 3) | LPDMA_CxFCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TOF | SUSPF | USEF | ULEF | DTEF | HTF | TCF | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||
| 0x060+ 0x080 * x (x = 0 to 3) | LPDMA_CxSR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TOF | SUSPF | USEF | ULEF | DTEF | HTF | TCF | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IDLEF |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |||||||||||||||||||||||||
| 0x064+ 0x080 * x (x = 0 to 3) | LPDMA_CxCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIO[1:0] | Res. | Res. | Res. | Res. | Res. | LSM | Res. | TOIE | SUSPIE | USEIE | ULEIE | DTEIE | HTIE | TCIE | Res. | Res. | Res. | Res. | Res. | SUSP | RESET | EN | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||
| 0x090+ 0x080 * x (x = 0 to 3) | LPDMA_CxTR1 | DSEC | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DINC | Res. | DDW_LOG2[1:0] | SSEC | Res. | Res. | Res. | PAM | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SINC | Res. | SDW_LOG2[1:0] | ||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||

Table 226. LPDMA register map and reset values (continued)
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x094+ 0x080 * x (x = 0 to 3) | LPDMA_CxTR2 | TCEM [1:0] | Res. | Res. | Res. | Res. | TRIGPOL [1:0] | Res. | Res. | Res. | TRIGSEL [4:0] | TRIGM [1:0] | Res. | Res. | PFREQ | BREQ | SWREQ | Res. | Res. | Res. | Res. | REQSEL [4:0] | |||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||
| 0x098+ 0x080 * x (x = 0 to 3) | LPDMA_CxBR1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | BNDT[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x09C+ 0x080 * x (x = 0 to 3) | LPDMA_CxSAR | SA[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x0A0+ 0x080 * x (x = 0 to 3) | LPDMA_CxDAR | DA[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x0CC+ 0x080 * x (x = 0 to 3) | LPDMA_CxLLR | UT1 | UT2 | UB1 | USA | UDA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ULL | LA[15:2] | Res. | Res. | |||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||
| 0xFC0 | LPDMA_HWCFG13 | Res. | Res. | Res. | G_PER_CTRL15 | Res. | Res. | Res. | G_PER_CTRL14 | Res. | Res. | Res. | G_PER_CTRL13 | Res. | Res. | Res. | G_PER_CTRL12 | Res. | Res. | Res. | G_PER_CTRL11 | Res. | Res. | Res. | G_PER_CTRL10 | Res. | Res. | Res. | G_PER_CTRL9 | Res. | Res. | Res. | G_PER_CTRL8 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0xFC4 | LPDMA_HWCFG12 | Res. | Res. | Res. | G_PER_CTRL7 | Res. | Res. | Res. | G_PER_CTRL6 | Res. | Res. | Res. | G_PER_CTRL5 | Res. | Res. | Res. | G_PER_CTRL4 | Res. | Res. | Res. | G_PER_CTRL3 | Res. | Res. | Res. | G_PER_CTRL2 | Res. | Res. | Res. | G_PER_CTRL1 | Res. | Res. | Res. | G_PER_CTRL0 |
| Reset value | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||
| 0xFC8 | LPDMA_HWCFG11 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | G_TST_LL_IMPOR | Res. | G_NUM_RESYNC_FFS[2:0] | Res. | Res. | G_CID_WIDTH[2:0] | Res. | Res. | Res. | G_SEC_OPTIONREG[5:0] | Res. | Res. | Res. | Res. | G_NONSEC_OPTIONREG[5:0] | ||||||||||
| Reset value | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0xFCC | LPDMA_HWCFG10 | Res. | Res. | G_ADDRESSING15 [1:0] | Res. | Res. | G_ADDRESSING14 [1:0] | Res. | Res. | G_ADDRESSING13 [1:0] | Res. | Res. | G_ADDRESSING12 [1:0] | Res. | Res. | G_ADDRESSING11 [1:0] | Res. | Res. | G_ADDRESSING10 [1:0] | Res. | Res. | G_ADDRESSING9 [1:0] | Res. | Res. | G_ADDRESSING8 [1:0] | ||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0xFD0 | LPDMA_HWCFG9 | Res. | Res. | G_ADDRESSING7 [1:0] | Res. | Res. | G_ADDRESSING6 [1:0] | Res. | Res. | G_ADDRESSING5 [1:0] | Res. | Res. | G_ADDRESSING4 [1:0] | Res. | Res. | G_ADDRESSING3 [1:0] | Res. | Res. | G_ADDRESSING2 [1:0] | Res. | Res. | G_ADDRESSING1 [1:0] | Res. | Res. | G_ADDRESSING0 [1:0] | ||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0xFD4 | LPDMA_HWCFG8 | Res. | Res. | Res. | G_LINKED_LIST15 | Res. | Res. | Res. | G_LINKED_LIST14 | Res. | Res. | Res. | G_LINKED_LIST13 | Res. | Res. | Res. | G_LINKED_LIST12 | Res. | Res. | Res. | G_LINKED_LIST11 | Res. | Res. | Res. | G_LINKED_LIST10 | Res. | Res. | Res. | G_LINKED_LIST9 | Res. | Res. | Res. | G_LINKED_LIST8 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
Table 226. LPDMA register map and reset values (continued)
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0xFD8 | LPDMA_HWCFGR7 | Res. | Res. | Res. | G_LINKED_LIST7 | Res. | Res. | Res. | G_LINKED_LIST6 | Res. | Res. | Res. | G_LINKED_LIST5 | Res. | Res. | Res. | G_LINKED_LIST4 | Res. | Res. | Res. | G_LINKED_LIST3 | Res. | Res. | Res. | G_LINKED_LIST2 | Res. | Res. | Res. | G_LINKED_LIST1 | Res. | Res. | Res. | G_LINKED_LIST0 |
| Reset value | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||
| 0xFDC | LPDMA_HWCFGR6 | Res. | Res. | Res. | G_TRANSFERS15 | Res. | Res. | Res. | G_TRANSFERS14 | Res. | Res. | Res. | G_TRANSFERS13 | Res. | Res. | Res. | G_TRANSFERS12 | Res. | Res. | Res. | G_TRANSFERS11 | Res. | Res. | Res. | G_TRANSFERS10 | Res. | Res. | Res. | G_TRANSFERS9 | Res. | Res. | Res. | G_TRANSFERS8 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0xFE0 | LPDMA_HWCFGR5 | Res. | Res. | Res. | G_TRANSFERS7 | Res. | Res. | Res. | G_TRANSFERS6 | Res. | Res. | Res. | G_TRANSFERS5 | Res. | Res. | Res. | G_TRANSFERS4 | Res. | Res. | Res. | G_TRANSFERS3 | Res. | Res. | Res. | G_TRANSFERS2 | Res. | Res. | Res. | G_TRANSFERS1 | Res. | Res. | Res. | G_TRANSFERS0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0xFE4 | LPDMA_HWCFGR4 | G_FIFO_SIZE15 [2:0] | G_FIFO_SIZE14 [2:0] | G_FIFO_SIZE13 [2:0] | G_FIFO_SIZE12 [2:0] | G_FIFO_SIZE11 [2:0] | G_FIFO_SIZE10 [2:0] | G_FIFO_SIZE9 [2:0] | G_FIFO_SIZE8 [2:0] | ||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||
| 0xFE8 | LPDMA_HWCFGR3 | G_FIFO_SIZE7 [2:0] | G_FIFO_SIZE6 [2:0] | G_FIFO_SIZE5 [2:0] | G_FIFO_SIZE4 [2:0] | G_FIFO_SIZE3 [2:0] | G_FIFO_SIZE2 [2:0] | G_FIFO_SIZE1 [2:0] | G_FIFO_SIZE0 [2:0] | ||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||
| 0xFEC | LPDMA_HWCFGR2 | G_MAX_TRIG_ID [6:0] | G_MAX_REQ_ID [7:0] | ||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | ||||||||||||||||||
| 0xFF0 | LPDMA_HWCFGR1 | G_M1_DATA_WIDTH_ENC[1:0] | G_M0_DATA_WIDTH_ENC[1:0] | G_MAX_CID[3:0] | G_TRUSTZONE | G_NUM_CHANNELS [4:0] | G_PRIVILEGE | G_MASTER_PORTS [2:0] | |||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | ||||||||||||||
| 0xFF4 | LPDMA_VERR | MAJREV [3:0] | MINREV [3:0] | ||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | |||||||||||||||||||||||||
| 0xFF8 | LPDMA_IPIDR | ID[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | |
| 0xFFC | LPDMA_SIDR | SID[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | |