Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32S2: dma_mem2mem support #2313

Open
Tracked by #1524
SergioGasquez opened this issue Oct 9, 2024 · 6 comments
Open
Tracked by #1524

ESP32S2: dma_mem2mem support #2313

SergioGasquez opened this issue Oct 9, 2024 · 6 comments
Labels
chip:esp32s2 Issue related to ESP32-S2 chip

Comments

@SergioGasquez
Copy link
Member

SergioGasquez commented Oct 9, 2024

Issue created from #1524

@github-project-automation github-project-automation bot moved this to Todo in esp-rs Oct 9, 2024
@SergioGasquez SergioGasquez changed the title dma_mem2mem: S2 ESP32S2: dma_mem2mem support Oct 9, 2024
@SergioGasquez SergioGasquez added the chip:esp32s2 Issue related to ESP32-S2 chip label Oct 9, 2024
@Dominaezzz Dominaezzz self-assigned this Oct 9, 2024
@Dominaezzz
Copy link
Collaborator

Looks like the PAC is missing the registers for Copy DMA. It's also missing the registers for AES/SHA/ADC DMA.

It's also worth noting that AES/SHA (Crypto DMA), SPI2 and I2S can also be used for memcpy operations.
I was planning to only add support for the dedicated copy DMA channel but it seems it doesn't support accessing external ram, but the non-dedicated ones do support external ram access 😄, so supporting using those channels as well may be handier than I anticipated. (The only complication is it doesn't play nice with DMA channel erasure, maybe this driver can be special, since it kinda is 🙂).

@bugadani
Copy link
Contributor

The only complication is it doesn't play nice with DMA channel erasure, maybe this driver can be special, since it kinda is

Not everything needs to be erased, and I think we can even transform channels into diferent types for m2m if we want to. Don't worry about this part.

There is some investigation going on internally whether ESP32 peripheral DMAs support m2m as they do on the S2. Probably not, but it's not obvious at this point I think.

@Dominaezzz Dominaezzz removed their assignment Oct 11, 2024
@Dominaezzz
Copy link
Collaborator

Unassigned myself, not sure I'm too keen on learning how to update the PACs right now.

@bugadani
Copy link
Contributor

FYI esp-rs/esp-pacs#302

@Dominaezzz
Copy link
Collaborator

esp-rs/esp-pacs#312

@Dominaezzz
Copy link
Collaborator

esp-rs/esp-pacs#318

@Dominaezzz Dominaezzz mentioned this issue Feb 7, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chip:esp32s2 Issue related to ESP32-S2 chip
Projects
Status: Todo
Development

No branches or pull requests

3 participants