cancel
Showing results for 
Search instead for 
Did you mean: 

My project stop running after migration to STM32CubeIDE v1.17.0

Engin Lee
Associate II

Hi,

My project use STM32H750IBK6 MCU and it works well with STM32CubeIDE v1.16.1.

But it stop running after migration to STM32CubeIDE v1.17.0 with FW H7 V1.12.0.

Any suggestions?
m.png

BRs,

-Engin

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @STTwo-32 ,

Today I have a chance to dig this issue again, and finally I find the problem.

In the H7 SDK V1.12.0, something changed in HAL_RNG_Init(), like this difference:

RNG.png

It seems to be a longer time to wait for a random number generated.

And I am using LSI clock source for RNG in my product, if I modify RNG_TIMEOUT_VALUE from 2 to 200 like this:

#define RNG_TIMEOUT_VALUE 200U //before: 2U

Then the program can continue run without blocking.

So could you review about RNG_TIMEOUT_VALUE to a reasonable value for different clock sources?

Thanks,

-Engin

View solution in original post

7 REPLIES 7
STTwo-32
ST Employee

Hello @Engin Lee 

Have you selected the option Migrate or Continue on the pop-up you have added to your post. 

Best Regards.

STTwo-32

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.

Yes, it goes without any problem if I select "continue" button..

But it stop running if I select "migrate" button, compile program and then flash.

Please share your .ioc file.

Best Regards.

STTwo-32

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.

File attached.

Hello @Engin Lee 

It works fine on my side: 

STTwo32_0-1732869629452.png

Could you please uninstall and reinstall both CubeMX (V6.13.0) and CubeIDE (V1.17.0) and retry.

Best Regards.

STTwo-32

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.

Sorry, I mean the compiled code stop working on the machine, not stop compiling.

I tried uninstall and reinstall CubeIDE (V1.17.0) and H7 SDK (V1.12.0), but nothing changed.

I tried disable ARM core D-cache and FreeRTOS tickless option, but without luck.

I didn't find any significant changes in HAL and LL driver which make the system down, could it be possible that I am running code in RAM (0x24000000) where is loaded by bootloader?

Hi @STTwo-32 ,

Today I have a chance to dig this issue again, and finally I find the problem.

In the H7 SDK V1.12.0, something changed in HAL_RNG_Init(), like this difference:

RNG.png

It seems to be a longer time to wait for a random number generated.

And I am using LSI clock source for RNG in my product, if I modify RNG_TIMEOUT_VALUE from 2 to 200 like this:

#define RNG_TIMEOUT_VALUE 200U //before: 2U

Then the program can continue run without blocking.

So could you review about RNG_TIMEOUT_VALUE to a reasonable value for different clock sources?

Thanks,

-Engin