How to configure DMA

1. Access the DMA System View Page

  • Launch the CubeMX2 application.

  • Navigate to the “DMA” section from the left panel or the system overview.

  • Click on the “DMA System View” to open the dedicated page for configuring and monitoring DMA settings.

2. Reserve DMA Channels

  • In the DMA system view, locate the list of available DMA channels.

  • Select the channel to reserve.

  • To reserve a channel, click in the “Request” column to display all possible reservation options, then select the desired request to complete the reservation.

  • The channel is marked as reserved and associated with the selected request.

  • Alternatively, manage reservations using the detailed view on the right side of the panel.

3. Activate a Memory-to-Memory Configuration

  • In the DMA system view, select an available DMA channel.

  • Choose the “MemToMem/Lli” request from the list of available requests.

  • The configuration is created. To access its settings, select the cogwheel icon at the end of the line.

  • Alternatively, perform this operation using the detailed view on the right side of the panel

4. View and Resolve Allocation Conflicts

  • There are two levels of issues: warnings and errors. A warning indicates that there are reservations or a memory-to-memory configuration, and at least one reservation exists. An error indicates that two or more configured requests are involved on one channel.

  • Conflicting channels are highlighted, and a status of Error or Warning is shown.

  • To resolve conflicts:
    • Change the channel assignment for one of the conflicting requests, or

    • Release a request by unassigning it from the channel ( only available for memory-to-memory configurations or reserved requests).

Note

There are several ways to resolve DMA conflicts:
  • Go to the configuration panel where the conflict occurs and change the channel or the request

  • In the DMA system view, change the channel or the request

  • In the DMA system view, use the Move or Swap menu.

  • In the DMA detailed view, use the Move or Swap menu.

  • Release one of the conflicting requests (memory-to-memory configuration or reserved request) from the DMA system view.

Once all conflicts are resolved, the error indication disappears and the configuration can be saved.

5. Conclusion

By following these steps, you can efficiently manage DMA configurations in CubeMX2.

Additional articles