Skip to main content
Luiz Pereira
Associate III
April 11, 2025
Solved

STM32CubeMX v 6.14 hangs on code generation for stm32h7r7x devices

  • April 11, 2025
  • 2 replies
  • 771 views

Hi

I developed a project (for Keil-MDK) using stm32cubemx v 6.13 and a h7r7l8h6 device. Everything Ok! When cubeMX was updated for the newest version (6.14) I no longer be able to generate any initialization code as the cubeMX hangs during code generation with the information "Search needed files for the project..."

LuizPereira_0-1744400715366.png

There is no way past this point! Apparently this behavior is related to h7r7x devices, because with others (e.g. h747x, f767x and some g series devices) everything seems to work.

Has anyone had this weird problem? If so, is there any solution? Currently my only possible solution to keep working with h7r7x devices was to downgrade cubeMX to version 6.13!!!

Thanks

Regards

Best answer by Luiz Pereira

Hi @STTwo-32 

Problem solved with the just realized cubeMX v6.14.1

Thank you for your efforts and attention

Best Regards

Luiz

2 replies

STTwo-32
Technical Moderator
April 11, 2025

Hello @Luiz Pereira 

I suggest you uninstall the STM32CubeMX V6.13.0 and install the STM32CubeMX V6.14.0 (not to update directly from the previous version). That should work well.

Best Regards.

STTwo-32

Luiz Pereira
Associate III
April 12, 2025

Hi @STTwo-32 

Thanks for the suggestion. However, it not solve the problem. I didn't have much time to check all things but the "bug" seems to be related with SDMMC peripheral (!). I deselected peripheral by peripheral and all things work as expected (I can generate the initialization code) if no SDMMC peripheral as selected (no mater - apparently - other options including middleware's).

I will try to check in more deep this strange thing! For now, I (again!) got back to cubeMX v6.13...

Best Regards

Luiz

STTwo-32
Technical Moderator
April 14, 2025

Sorry but even with SDMMC enabled, it works fine for me. It will be better if you can send a .ioc file generated by the STM32CubeMX V6.14.0 that reproduce the issue.

Best Regards.

STTwo-32

Luiz Pereira
Associate III
April 14, 2025

Hi @STTwo-32 

I didn't have time to look at the situation in more detail but I'm sending the .ioc file. No problem with cubeMX 6.13 and the initialized code works perfectly; hangs in version 6.14, but if I disable the SDMMC1 peripheral, it works. When hangs, the last lines of STM32CubeMX.log are the follows:

--------------------

[INFO] ApiDbMcu:508 - Load IP Config File for ADC1
[INFO] ApiDbMcu:508 - Load IP Config File for CORDIC
[INFO] ApiDbMcu:508 - Load IP Config File for CRC
[INFO] ApiDbMcu:508 - Load IP Config File for FMC
[INFO] ApiDbMcu:508 - Load IP Config File for GPDMA1
[INFO] ApiDbMcu:508 - Load IP Config File for HASH
[INFO] ApiDbMcu:508 - Load IP Config File for I2C2
[INFO] ApiDbMcu:508 - Load IP Config File for RTC
[INFO] ApiDbMcu:508 - Load IP Config File for SDMMC1
[INFO] ApiDbMcu:508 - Load IP Config File for SPI5
[INFO] ApiDbMcu:508 - Load IP Config File for SPI6
[INFO] ApiDbMcu:508 - Load IP Config File for TAMP
[INFO] ApiDbMcu:508 - Load IP Config File for TIM4
[INFO] ApiDbMcu:508 - Load IP Config File for TIM7
[INFO] ApiDbMcu:508 - Load IP Config File for USART1
[INFO] ApiDbMcu:508 - Load IP Config File for XSPI1
[INFO] ApiDbMcu:508 - Load IP Config File for XSPI2
[INFO] ApiDbMcu:508 - Load IP Config File for RCC
[INFO] CodeEngine:263 - oldGeneratedFile, D:\OptoLab_dev\__test\h7r7l8\______\Appli\Inc\main.h_save
[INFO] CodeEngine:287 - Generated code: D:\OptoLab_dev\__test\h7r7l8\______\Appli\Inc\main.h
[INFO] CodeEngine:263 - oldGeneratedFile, D:\OptoLab_dev\__test\h7r7l8\______\Appli\Src\main.c_save
[INFO] CodeEngine:287 - Generated code: D:\OptoLab_dev\__test\h7r7l8\______\Appli\Src\main.c
[INFO] CodeGenerator:1697 - *******************Project context ExtMemLoader Not selected
[ERROR] GenerateProjectThread:93 - java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 22

--------------------

In any case, in the next few days I will try to understand the situation.

 

Thanks

Best Regards

Luiz