2024-11-28 11:20 PM - last edited on 2024-11-28 11:58 PM by SofLit
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?
BRs,
-Engin
Solved! Go to Solution.
2024-12-11 02:40 AM
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:
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
2024-11-28 11:35 PM
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.
2024-11-28 11:38 PM
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.
2024-11-28 11:44 PM
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.
2024-11-28 11:47 PM
2024-11-29 12:41 AM
Hello @Engin Lee
It works fine on my side:
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.
2024-12-01 07:21 PM
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?
2024-12-11 02:40 AM
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:
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