STM32Cube AI Studio 1.4.0: “Validate on target” fails for STM32H563 – ERROR__CUBESCRATCHFILE__IOCFILE_INVALID (generated .ioc gets TrustZone pro
Hello,
“Validate on target” in STM32Cube AI Studio fails every time for an STM32H563VIT6 target, at the step where it generates the STM32CubeIDE project. The model analyze/generate steps succeed.
Environment
- STM32Cube AI Studio 1.4.0 (Windows 11)
- ST Edge AI Core 4.1.0
- STM32CubeMX 6.18.1, the official release downloaded from st.com and reinstalled. At startup it reports itself as
6.18.1-RC2, and the log shows CubeIdeServices9.9.9.0-gerrit582372-p6. - STM32CubeProgrammer 2.23.0, STLINK-V3MINIE
- Target: STM32H563VIT6 (custom board), project type BYOM, context
TrustZoneDisabled / CortexM33 - Model: small ONNX MLP (float32, 92 KB weights)
What happens
- Analyze and generate succeed.
- AI Studio creates a new .ioc in a temp folder (“No .ioc file found ..., creating new STM32CubeMX project”).
- CubeMX reports errors while loading that .ioc:
(OptionalMessage_ERROR) Unable to find key (Mcu.ThirdPartyNb) in loaded IOC file(OptionalMessage_ERROR) Unable to find key (Mcu.PinsNb) in loaded IOC file(OptionalMessage_ERROR) Pin0 (VP_RIF_VS_RIF1) cannot be retrieved for this MCU
- CubeMX then selects
Project Structure = Dual Non Secure / Secure, and several script commands fail:pack context CortexM33 -> KOswitch context CortexM33 UART7 -> [ERROR] Mcu:4718 - Switch allowed between TrueZone Context only
- CubeIDE project generation fails:
Fail to access STM32CubeMX .ioc file '...\Temp\tmpXXXX\Projects\zebra_walk_h5_run_....ioc' from Cube scratch fileERROR__CUBESCRATCHFILE__IOCFILE_INVALID (return code 85024)
AI Studio then reports: “STM32CubeMX did not generate the STM32CubeIDE project files”.
The same error happens on every run, including after reinstalling STM32CubeMX.
The AI Studio run uses TrustZoneDisabled, but the generated project is treated as TrustZone (Dual NS/S). The .ioc template also seems to contain a RIF entry, which does not exist on H5.
Questions
- Is this a known issue with H5 targets in AI Studio, or with STM32CubeMX 6.18.1?
- Is there a way to give AI Studio my own .ioc (TrustZone disabled, already working in STM32CubeIDE) for the validation project?
The full log is attached. Thank you.
