2026-04-03 3:04 AM - last edited on 2026-04-03 3:13 AM by Andrew Neil
During Run on Target, validation fails with the following error:
Run failed: Error: validate error: E200 (ValidationError): TARGET: Unable to bind the ST.AI runtime with "network" c-model E801 (HwIOError): Invalid firmware - COM8:115200
I have attached the complete validation failure log for reference.
During Step 1 (Code Generation), I consistently receive the following warning from STM32CubeMX:
Warning: Code Generation
Main Config: These peripherals still have some not configured or wrong parameter values:
[Clock]
I proceeded with code generation despite the warning.
Any guidance or suggestions to resolve this issue would be greatly appreciated.
Thank you in advance for your support.
Best regards,
Dinesh
Solved! Go to Solution.
2026-04-16 6:11 AM
Hi @dineshsaravanan,
The issue is caused by MX, it seems that the clock config was wrong for some reason.
Here is a fix that should slove it.
Pease go to: C:\ST\STM32Cube AI Studio\STM32Cube-AI-Studio\resources\stedgeai-desktop-backend\dependencies\
and open to edit: boardExternalMem.xml
Then look for the die id 481, around line 3800 and replace the current config by this:
<die id="481">
<testOptimal>
RCC.HCLKFreq_Value=160000000
</testOptimal>
<optimalParameters>
RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
RCC.PLLM=1
RCC.PLLN=80
RCC.PLL1R=2
RCC.PLL2FRACN=0
RCC.PLL3FRACN=0
RCC.PLLFRACN=0
RCC.PLLSourceVirtual=
RCC.HSE_VALUE=16000000
RCC.MSIClockRange=RCC_MSIRANGE_4
RCC.SYSCLKFreq_VALUE=160000000
RCC.VCOInputFreq_Value=4000000
RCC.VCOInput2Freq_Value=4000000
RCC.VCOInput3Freq_Value=4000000
RCC.USBPHYCLockSelection=RCC_USBPHYCLKSOURCE_HSE
RCC.Mode=HSE-External-Oscillator
</optimalParameters>
</die>
You should have something like this:
This will be fixed in the next release of CubeAI Studio but please edit it manually if you need it before that.
Let me know if this helped.
Have a good day,
Julian
2026-04-08 6:13 AM
Hi @dineshsaravanan,
I confirm the issue. I am looking internally for information
Have a good day,
Julian
2026-04-16 6:11 AM
Hi @dineshsaravanan,
The issue is caused by MX, it seems that the clock config was wrong for some reason.
Here is a fix that should slove it.
Pease go to: C:\ST\STM32Cube AI Studio\STM32Cube-AI-Studio\resources\stedgeai-desktop-backend\dependencies\
and open to edit: boardExternalMem.xml
Then look for the die id 481, around line 3800 and replace the current config by this:
<die id="481">
<testOptimal>
RCC.HCLKFreq_Value=160000000
</testOptimal>
<optimalParameters>
RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
RCC.PLLM=1
RCC.PLLN=80
RCC.PLL1R=2
RCC.PLL2FRACN=0
RCC.PLL3FRACN=0
RCC.PLLFRACN=0
RCC.PLLSourceVirtual=
RCC.HSE_VALUE=16000000
RCC.MSIClockRange=RCC_MSIRANGE_4
RCC.SYSCLKFreq_VALUE=160000000
RCC.VCOInputFreq_Value=4000000
RCC.VCOInput2Freq_Value=4000000
RCC.VCOInput3Freq_Value=4000000
RCC.USBPHYCLockSelection=RCC_USBPHYCLKSOURCE_HSE
RCC.Mode=HSE-External-Oscillator
</optimalParameters>
</die>
You should have something like this:
This will be fixed in the next release of CubeAI Studio but please edit it manually if you need it before that.
Let me know if this helped.
Have a good day,
Julian
2026-04-19 10:46 PM
Thanks for the support.
After applying the suggested steps, I’m now able to see the Inference Report during AED model validation on target. The issue is resolved.
Appreciate the help!