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
Request for mbed DMA driver for STM32 #3647
Comments
Hi, |
DMA would also be useful against STM32 DAC / AnalogOut (audio/waveform playback etc.) |
I don't think there existing examples to use for now. |
Yes I used to work with ADC through DMA before. All the HAL I configured manually. I notice we can implement the configuration manually in analogIn_api to enable the DMA. However I have one question regarding interrupt. How to implement it on mbed?
I used to run my interrupt function as above. However, how can I translate it into mbed. I know the process will be long but can you @LMESTM give me some guideline or hints on how interrupt can be used in my case. Cheers |
Just for information, which board do you plan to use ? In any case, the above code should work fine inside MBED, because DMA2_Stream0_IRQHandler is the name of the default IRQ as defined in the vector table, for instance here Note: Sometimes in MBED a default IRQ handler might be replaced at runtime by another MBED handler,which can be done by a call to NVIC_SetVector like here: But for DMA, this is not the case, so the default handler is valid. |
@LMESTM I am planning to use NUCLEO F302R8 Board for this application. Is there any issues regarding the DMA IRQ for this board? |
You just need to use the proper IRQ name for you board, as defined in the vector table (or to set your own one with NVIC_SetVector). For NUCLEO_F302R8, the default DMA IRQ handlers are defined here Note that we are planning to add some DMA support in MBED for STM32, but this will take some more time. |
Thanks a lot for your support @LMESTM. |
GitHib issue review: Closed due to inactivity. Please re-file if critical issues found. |
hi,
Is there any mbed library that provides DMA library for STM32. I am try to run ADC through DMA. How can I implement it? Should I just straight away use the STM32 Hal? I think this way is so not practical
.If I want to create my own library can anyone briefly told me the architecture layer of mbed or provide the guideline or code example.
Thanks
Regards
Fwndz
The text was updated successfully, but these errors were encountered: