Is it possible to use a DMA on SWO ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-10-02 12:46 PM
Posted on October 02, 2012 at 21:46
Hello,
Everything is in the title, is it possible to use a DMA to transmit data on SWO ? Or at least to send data (multiple bytes) without blocking execution ? Thomas. #itm-dma-jtag
Labels:
- Labels:
-
DEBUG
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-10-03 7:00 AM
Posted on October 03, 2012 at 16:00
You can always do a memory to memory DMA, but you would have to come up with some way to ensure the ITM queue has space for the DMA transfer. Given the relatively high data rate of ITM (I get 2Mbit/sec with an STM32F205 at 120MHz using J-Link SWO Viewer) it might be safe to use a timer to trigger a DMA transfer.
Jack PeacockOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-10-03 7:09 AM
Posted on October 03, 2012 at 16:09
It would depend if the core registers have in-bound access via the AHB, somehow I imagine they'd be like TCM/CCM and be unavailable to DMA.
As Jack suggest pace it with a timer, it'll either work or not, but I wouldn't spend a lot of time fighting with it.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
