2025-07-29 12:00 AM
hi
I have validate on the STM32N6 board by onnx model in STM32MX,but i have two different output ,like this:
m_outputs_1: (10, 3)/float64, min/max=[-282.578064, 481.370483], mean/std=[-2.619613, 298.301398], output m_outputs_2: (10, 1)/float64, min/max=[0.000000, 0.000000], mean/std=[0.000000, 0.000000], node_139 c_outputs_1: (10, 1, 1, 3)/float32, min/max=[-4.547175, 5.813805], mean/std=[0.008044, 4.321293], output c_outputs_2: (10, 1, 1, 1)/float32, min/max=[0.000800, 0.000800], mean/std=[0.000800, 0.000000], node_139
the m_outputs_1 is error, and c_outputs_1 is correct,why? what can lead to this problem?
please help me ,thanks very much!!!
I have upload the report.txt and onnx model in the attach.
2025-08-03 8:17 PM
hi @Julian E.
Thanks for you help very much!
Now i have follow your way ,and when I validate on taget,I don not select the Enabled button.(because I have flash the weight to the external flash on 0x71000000 by STM32cubeProgrammer before)
and get the result like this :
I do not know why the two results are different?
I really want to prove your results which the two results are almost the same ,please help me !
As your result like this:
Thanks!!!
By the way, i put my report in the attach.
2025-08-04 3:00 AM
Hello @cxf,
The validate command is meant to work with the application of the n6_loader.py (that you load if you check the enabled).
In your case, I think that you are comparing the wrong things.
Please check the enable case and validate the results of your model and then do your custom application.
The weights being in external flash is not an issue.
Have a good day,
Julian
2025-08-04 7:58 PM
hi @Julian E.
Thanks for you help very much!
I have check the Enabled button and validate on target ,but i get a error from stm32cubeMx,like this:
but I have check that there is the ST-LINK_gdbserver.exe in
E:\ST\STM32CubeIDE_1.18.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.2.100.202501151542\tools\bin, like this :
and i also put this route into path table of windows system environment variables, like this:
but i have not solve this problem.
Why?how can i solve this problem?
Thanks!!!
2025-08-05 1:09 AM
Hello @cxf,
Can you try to edit the config.json in:
C:\Users\<your_user>\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\10.2.0\scripts\N6_scripts\
or if you manually installed the st edge ai core in:
C:\ST\STEdgeAI\2.2\scripts\N6_scripts
In the config.json, please make sure that the gdb_server_path is correct:
Have a good day,
Julian
2025-08-05 7:47 PM
hi @Julian E.
I found the config.json in ...\X-CUBE-AI\10.2.0\scripts\N6_scripts,and edit it like this :
2025-08-06 5:25 AM - edited 2025-08-06 5:26 AM
Hello @cxf,
It is pretty strange.
CubeMX is automatically using the n6_loader script. I propose you to try to do it manually to locate the source of the issue (the script or cubeMX)
Could you please try to do the validation on target manually?
To do so:
stedgeai generate -m your_model --target stm32n6 --st-neural-art
python n6_loader.py
stedgeai validate -m your_model --target stm32n6 --mode target -d serial:921600
You can use your custom input and output during the validate.
If it does not work, please share the compile.log and n6_loader.log that you will generate.
Have a good day,
Julian
2025-08-07 12:03 AM
hi @Julian E.
Thank you for your help very much!
Now i follow your advice,and can execute to third step,but when I execute the fourth step,it get the same problem like this:
There is no compile.log,i only find n6_loader.log,but it is empty(0KB).like this:
Now i really do not know how to solve this problem,please help me thanks!!!
2025-08-07 12:29 AM - edited 2025-08-07 1:19 AM
Hello
Can you paste the end of the traceback in your screenshot above ? please?
(i.e. the above exception was the direct cause .... up to the end ?)
+ if this does not help (i.e. if the cubeide path mentionned here is the one your are expecting), you can raise the verbosity of scripts by setting .setLevel(logging.DEBUG) in both n6_utils_pkg/config_reader.py (line 14) oand n6_utils_pkg/cubeIDE_toolbox.py (line 15), this will help find the issue.
Possible fix is to remove your "cubeide_path": "E:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE", line from the config file and see if it works better. (though it would be better to understand what's not good about your config here..)
2025-08-10 7:07 PM
Hi @SlothGrill
Thank you for your help very much!
Now, i have follow your advice ,and modify the two py like this:
and the cubeide_path has been set to "",when I run the n6_loader.py, result can be get in the attach.
please help me thanks !
2025-08-11 1:32 AM
hello
Thanks for the log could you further help to find what is going on:
Do you know what shell you are running by default ?
Do you run a clean install of stedgeai or did you tweak it in some way (or eg. migrate from an old version to a new one ?)
Sorry, from the outputs this is not clear what is going on :\
Best regards.