2024-08-06 04:10 AM
Hello.
I'm working on the stm32h753vit6 MCU trying to integrate the X-CUBE-AI software package into my project and I noticed a couple of issues.
1) After installing the package, I go into the IOC and as soon as I enable the X-CUBE-AI, the RCC_OSC_OUT pin reverts to the reset_state for some reason.
2) Also as soon as I enable the X-CUBE-AI, Changes start happening in my clock tree.
If I set back the clock tree to the configuration it was before enabling the X-CUBE-AI, My code crashes at the SystemClock_Config method (The method is autogenerated and I don't make any changes to it).
Has anyone come across a similar issue?
Thank you in advance, Yonatan.
Solved! Go to Solution.
2024-08-07 04:22 AM
Hello,
These values are from the IOC itself. My message was not clear enough.
Indeed, X-CUBE-AI is applying settings that might have side-effects on your side.
We will open a bug for that if we think it is relevant.
However, if you want to enable X-CUBE-AI without RCC modifications today, you can execute the following:
- Open boardExternalMem.xml file in C:\Users\USERNAME\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\x.y.z\db\boardExternalMem.xml
- Look for the object with die id="450", which is the die id for STM32H753xxxx
2024-08-07 12:36 AM
Hello,
X-CUBE-AI changes the clock tree in order to provide you best performance by maximizing the MCU clock speed. However, changes are loaded after you receive this prompt:
If you don't want X-CUBE-AI to apply these clock settings, please click on "No" when receiving this pop-up.
If you still see changes in your clock tree after that, it is probably a bug and we will track it.
Best regards,
Yanis
2024-08-07 12:50 AM
Thank you for the reply.
The changes happen in my case without any prompting (I'm using the stm32CubeIDE version 1.14.0)
Also, my MCU was running at 480MHz before adding the X-CUBE-AI and it dropped significantly after the addition.
2024-08-07 01:10 AM
Hello,
Could you confirm the unexpected changes are one of this list:
2024-08-07 03:46 AM
The changes I'm talking about occur straight away in the IOC as I'm working on it, before even going into the code.
This is the RCC definition in the IOC before adding the AI feature:
And the clock tree:
And these are the clock tree and RCC definitions after adding the AI feature:
These changes happen automatically as soon as I press the X-CUBE-AI feature in the middelware section of the IOC.
2024-08-07 04:22 AM
Hello,
These values are from the IOC itself. My message was not clear enough.
Indeed, X-CUBE-AI is applying settings that might have side-effects on your side.
We will open a bug for that if we think it is relevant.
However, if you want to enable X-CUBE-AI without RCC modifications today, you can execute the following:
- Open boardExternalMem.xml file in C:\Users\USERNAME\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\x.y.z\db\boardExternalMem.xml
- Look for the object with die id="450", which is the die id for STM32H753xxxx
2024-08-07 05:03 AM
Thank you very much!
That did the trick.