2023-09-25 05:13 AM - edited 2023-09-26 11:18 PM
Hi,
We have a question about a system design we would like to implement for our product.
We are working with the STMF32F723 MCU and are developing our own HW. We need 216MByte of RAM for our application and would like to implement it with the functionality of DMA and FMC.
Here is a figure which shows the system architecture with the help of the graphic from application note AN4667.
From the reference manual RM0431, we found following FMC memory bank map:
Now the question are:
Best regards,
Corsin
2023-09-25 08:58 AM
Hello @CObri.1
Unfortunately, the architecture proposed is not possible. As referenced in RM0431, Bank 4 and 5 used to address SDRAM devices (1 device per bank).
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-09-26 11:07 PM - edited 2023-09-26 11:14 PM
Hello @FBL;,
Thanks for your answer, but it's still not clear for me. What I see is that only two SDRAM device are possible (Bank 4 one and Bank 5 one).
But with the PSRAM it should be not? In RM0431, on page 274 it is written following:
I interpret this to imply that we can attach 4 external 64MByte PSRAM to the FMC bus.
What do I misunderstand?
Best Regards,
Corsin
2023-09-26 11:28 PM
Hello @F.Belaid;,
Thanks for your answer, but it's still not clear for me. What I see is that only two SDRAM device are possible (Bank 4 one and Bank 5 one).
But with the PSRAM it should be not? In RM0431, on page 274 it is written following:
I interpret this to imply that we can attach 4 external 64MByte PSRAM to the FMC bus.
What do I misunderstand?
Best Regards,
Corsin
2023-09-28 02:37 AM
Hello again @CObri.1
So, SDRAM bank1 and bank2 can be mapped at 0x6000 0000 and 0x7000 0000, but respectively NOR/PSRAM bank is mapped at 0xC000 0000 necessarily.
I hope this helps!
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-10-09 01:24 AM
Hi,
Few comments about PSRAM
- APS512XXN is an Octal / Hexa RAM and is not supported on F7 / FMC memory controller, but would be most effective solution on SMT32H7,U5, H5, L5, L4+... for example. Key advantage of QSPI/OPI/HPI PSRAM versus legacy SDRAM are pin count, power, simplicity of design, space saving and especially for Hexa PSRAM versus SDRAMx32 competitiveness. Some illustrations at following links: https://www.st.com/en/partner-products-and-services/iot-ram-opi-psram.html and https://www.st.com/en/partner-products-and-services/iot-ram-hpi-opi-psram.html
- You can see some comparison of SDRAM/ADMUX PSRAM (FMC Memory controller) and OPI/QSPI PSRAM (Octal memory controller)
Alex
2023-10-17 03:08 AM - edited 2023-10-17 07:47 AM
Dear @Alex - APMemory & @FBL
Thank you immensely for your assistance. Due to your help, we've been able to modify our requirements to a maximum RAM of 72 MBytes.
The revised architecture is as follows:
As a controller we still stick to the STMF32F723 controller
We plan to use the IS42/45S86400F, which has an internal design featuring 16M x 8 x 4 banks. Unfortunately, my search for SDRAM chips did not yield any options with 128MByte or 256MByte capacities. Are any of you aware of SDRAM chips that offer these higher memory sizes? Utilizing a single chip with a higher capacity would significantly simplify both hardware and firmware development.
Best regards, Corsin Obrist
2023-10-17 04:17 AM
I can't see from your pic if you still stick to the F7. Be careful with that one concerning QSPI memory - it works, but not in memory mapped mode.
2023-10-17 07:46 AM
Hi @LCE ,
Yes we still use the STMF32F723 controller.
So the two RAM Chips can be accessed (written/readout) over the FMC bus?
Best regards
Corsin
2023-10-17 07:49 AM
Sorry, I have never used FMC.
I just had the (bad) experience that memory mapped read & write was not possible with a F767 and a QSPI RAM.