Generic Interrupt Handler

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Posts: 1
Joined: Tue May 14, 2019 8:30 am

Generic Interrupt Handler

Post by peterbill » Tue May 14, 2019 8:33 am

I'm hacking with non blocking dma functionalities through "stm" module and I need to define, from python, an interrupt handler triggering a specific dma interrupt.
How can I do?

User avatar
Posts: 86
Joined: Tue Aug 08, 2017 1:57 am

Re: Generic Interrupt Handler

Post by jimmo » Tue May 14, 2019 9:50 am


Just to make sure I understand the question -- you're poking registers via stm.memX to configure the DMA device, but would like to implement one of the ISR vectors (e.g.) DMAx_StreamN from Python?

If so, sounds like you'd be much better off doing this in C, and then you'd have the benefit of the ST HAL and the code that already supports DMA for SPI/SDCard/etc.

Post Reply