2025-07-09 8:19 PM - last edited on 2025-07-10 1:39 AM by Andrew Neil
hi , i want to use STM32Mx to validate my model(.onnx) on target STM32N6570-DK board ,now STM32MX is 6.15.0 and Toolchain/IDE select STM32CUBEIDE,when i connect board to PC,and click the validate on target,it show me error like this:
File "C:\Users\lenovo\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\10.1.0\scripts\N6_scripts\n6_utils_pkg\config_reader.py", line 100, in sanitize_config
check_path_entry_ok(self.data, k)
File "C:\Users\lenovo\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\10.1.0\scripts\N6_scripts\n6_utils_pkg\config_reader.py", line 74, in check_path_entry_ok
raise ValueError(f"Path for entry {key} does not exist: {rv}")
ValueError: Path for entry objcopy_binary_path does not exist: C:/Users/foobar/TOOLS/gcc-arm-none-eabi/12.2 rel1/bin/arm-none-eabi-objcopy.exe
Build error
please help me to slove this problem ,thanks!
2025-07-10 1:35 AM
Hello @cxf
Could you please add your .ioc file to check the issue?
KR,
Souhaib
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.
2025-07-10 1:42 AM
It's telling you that it can't find arm-none-eabi-objcopy.exe:
ValueError: Path for entry objcopy_binary_path does not exist:
C:/Users/foobar/TOOLS/gcc-arm-none-eabi/12.2 rel1/bin/arm-none-eabi-objcopy.exe
Build error
So does that path actually exist on your PC?
Do you have access rights to it?
2025-07-10 1:43 AM
Would a failure to find arm-none-eabi-objcopy.exe be related to the .ioc file?
Sounds more like an installation/configuration problem with the tools?
2025-07-10 5:17 AM - edited 2025-07-10 5:18 AM
Hello @cxf,
As @Andrew Neil pointed out, this error seems to be because of a bad configuration of X Cube AI.
By default, the path to necessary tools are found automatically, but for some reason, it did not work for you.
Could you go to the X Cube AI repository folder:
C:\Users\lenovo\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\10.1.0\scripts\N6_scripts\
And manually set the paths in config.json.
{
"gdb_server_path": "C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.2.100.202501151542/tools/bin",
"gcc_binary_path": "C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin",
"objcopy_binary_path": "C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/arm-none-eabi-objcopy.exe",
"cubeide_path": "C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE",
"compiler_type": "gcc",
"cubeProgrammerCLI_binary_path": "C:/Program Files/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI.exe",
"iar_binary_path": "C:/Users/foobar/TOOLS/IAR/IAR9.30.1/common/bin/"
}