Skip to main content
Associate III
March 19, 2025
Question

bug in FMC configuration of SDRAM in CubeMX 6.14

  • March 19, 2025
  • 2 replies
  • 526 views

16bit SDRAM with 4 banks, 9bit column address, 13bit row should show as 32MB memory area,
but it is shown as 16MB.
You have to change column address bits to 10bit and back to 9 bits to set the value correctly (32MB).
It is dangerous beacause code generated with wrong 16MB area generate exception, if more memory have been used.

2 replies

Technical Moderator
March 19, 2025

Hello @trzeci ,

 

First let me thank you for posting.

For more investigation, I suggest that you provide your Ioc.File.

 

Thanks.

Mahmoud

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.
trzeciAuthor
Associate III
March 19, 2025

This is the .ioc file.
Correction: it seems that this bug is only a visual problem.
Code generated works with properly set memory size.

Technical Moderator
March 19, 2025

Hello @trzeci ,

 

Further to your comment, I suggest please that you provide screenshots of the visual problem.

 

Thanks.

Mahmoud

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.
Explorer
July 26, 2025

I've got the same issue on STM32H7A3.

SDRAM configured with 12 address bits, 4 banks => should get 16 MB. After selecting 12 address bits in the FMC configuration, the Memory Management code gets generated correctly. In the window Tools->Memory Management, as well, "External RAM (FMC)" shows correct 16 MB size.

After closing and re-opening STM32CubeMX, the entry in the Tools->Memory Management shows only 8 MB and a red cross marker at "Tools" is displayed.

This bug is reproducable. I've attached my .ioc file as well.