STM32F4 external triggered DMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-30 8:03 AM
We are evaluating the STM32F4 products.
For our current hardware an FPGA will generate measurement values. These values have to be transfered to an external RAM. Both are connected to the STM32 over the bus interface FMC. The idea was, that the STM32 handles this by using DMA, to copy the measurement values from the FPGA to the RAM by using an DMA Request. As I understood now, the STM32 only can perform DMA requests for internal hardware, or triggered from the software. Is there no possibility to solve this issue? We can not generate an interrupt each time measurement values have to be copied, because ist are only a few bytes, but this in a very frequent way. So generating an interrupt would be to much overhead. I am looking forward for your suggestions... #dma-external-trigger- Labels:
-
DMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-30 8:21 AM
Use the external signal to trigger an event in some of the internal peripherals, which in turn can trigger a DMA transfer. For example, timer capture is a straighforward choice.
Get a cheap 'F4 Discovery kit and play with it a bit to get the feeling. JW- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-30 9:15 AM
We visited DMA to/from GPIO ports triggered by external signals a while back.
Suggest you search the forum, or Google, for additional threadsUp vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-30 9:18 AM
You're using an FPGA, so feed it a clock signal generated by the STM32, and have that trigger the transfer.
The DCMI is a clocked parallel interface.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-30 1:03 PM
Thank you for your helpful hints so far.
Can you explain me a little more detailed what you mean with the clock feed to the FPGA or using the DCMI?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-30 1:45 PM
Yeah, I'm not sufficiently familiar with your FPGA, or the protocol here, I merely suggested you consider your interface choices. Please review the manual for DCMI interface capabilities.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-11-07 4:55 AM
ok. We checked the DCMI, and it really seems to be a possibility.
But back on the topic, to trigger a DMA request by an external pin. If I would trigger the DMA request by a timer which can do this, are there limitations between the Input-Frequency? In our system we will have to generate DMA request with a rate of 1MHz. Would this be possible?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-11-07 5:47 AM
I would expect 1 MHz to be viable, you will need to do your own experimentation/testing.
Up vote any posts that you find helpful, it shows what's working..
