STM32H7: ETH & SAI DMA can access memory-mapped Octo/Quad SPI RAM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-12-19 7:48 AM
Heyho,
I am really a little confused by ST's documentation vs. comments here and elsewhere, so in hope of finding someone with first hand experience:
Which STM32H7 can use external memory-mapped Octo-/Quad-SPI RAM via DMA with the Ethernet and SAIs ?
My "candidates": H723, H725, H733, H735
H743 & friends has no Q/O-SPI SRAM interface, and if possible I want to avoid the 2-core H7s.
I need this data flow:
SAI (RX) -> DMA -> ext. Q/O-SPI-SRAM -> DMA -> ETH
Thanks in advance!
Solved! Go to Solution.
- Labels:
-
DMA
-
Ethernet
-
OctoSPI
-
QSPI
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-01-12 8:29 AM
Hi,
Just general comment about H723, H725, H733, H735. they are supporting OSPI, but have limitation with QSPI SDR (no memory mapped write), QSPI DDR OK. We have confirmed testing APMemory RAM
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-12-19 6:48 PM
H743 does work with QSPI SRAM, for example this.
The board is no longer with me so cannot test the DMA.
ETH likely cannot access it. Consider that ETH has its own master DMA, it does not use the DMA controllers of the STM32. See the bus matrix pictures in the RM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-12-19 11:03 PM
@Pavel A. thanks for your input!
I think the H743 does not support memory-mapped QSPI SRAM.
Just found it in the RM0433, pg. 895:
"Only read operations are allowed to the external Flash memory in this mode."
And I only read "Flash" all the time... ;)
Concerning DMA / memory access:
What about the Dx-to-Dy AHB bridges, these cannot be used by the DMA controllers?
If these are working, are they slowing things down ?
The thing is that the RMs show that access from SAI (DMA2) and ETH DMA is possible, but from users I read differently.
Here's the interconnect matrix for the H723+:
Here for the H743:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-12-19 11:09 PM
As someone said somewhere:
"ST seems to rely more on people using CubeMX instead of correct and detailled documentation."
When the RMs have more than 2000 pages that is not such a bad idea, but sometimes it would be nice to find things a little clearer and more reliable on paper.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-12-20 4:29 AM
So, anybody ever did this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-01-12 8:29 AM
Hi,
Just general comment about H723, H725, H733, H735. they are supporting OSPI, but have limitation with QSPI SDR (no memory mapped write), QSPI DDR OK. We have confirmed testing APMemory RAM
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-01-12 9:41 AM
@Alex - APMemory thanks for your input, perfect timing! :)
I just started working with:
- a H735 Discovery Kit with OctoSPI HyperRAM, and
- some H723 Nucleos + APS6404L which is SDR :(
Within the next few weeks I plan to test these memories with the application mentioned above:
SAI_DMA -> external serial RAM -> ETH_DMA
so I definitely need the memory mapping for writing.
Does AP offer any Quad/Octo SPI DDR RAM ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-01-12 11:28 AM
Hi,
We are supporting OPI in BGA24/WLCSP, QSPI DDR in WLCSP only and QSPI SDR in SOP8/USON8/WLCSP. You can find most of them at Mouser for prototyping, such as for example : 128Mb OPI BGA24 3V APS12808L-3OBM-BA, 16Mb QSPI SDR SOP8 APS1604M-3SQR-SN. (128Mb QSPI DDR WLCSP 350um pitch APS12804O-DQ-WA is under NDA)
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-01-12 10:01 PM
@Alex - APMemory thanks again, although it's bad news again... ;)
So I will probably not even test the APS6404, and for prototyping BGA s***s.
2 more quick questions, please:
- Do you have any of the 3.3V DDR types on breakout.boards for prototyping?
- Is there already a kind of industry standard for tha BGA / WLCSP package and pin layout, so that the user can switch easily between manufacturers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-01-12 11:59 PM
Hi,
We don't have breakout board inhouse. BGA24 is standard among multiple Flash & RAM OPI suppliers. WLCSP is specific to each die.
In case
fyi, probably not for your case, if you use a board with CRUVI connector (Trenz FPGA for example, they have memory CRUVI daughter board supporting full speed memory (with our 256Mb OPI APS256XXN-OBR-BG) (https://shop.trenz-electronic.de/de/CR00045-01-0-CRUVI-AP-Memory-x8/x16-Xccela-PSRAM-Board?c=578)
Regards
Alex
