Issue with AI Model Validation on STM32H747I-DISCO
Hi everyone,
I'm trying to perform a validation test on an STM32H747I-DISCO, but I haven't been able to get it working.
Here's what I'm doing:
- On the ST Edge AI Developer Cloud, I select the model "CNN2D_ST_HandPosture_8classes_hand_posture_ST_VL53L5CX_handposture_dataset.h5", then proceed to quantize and optimize it.
- I run a benchmark and then download the project for STM32CubeMX 6.14.
- I open the project and, in the Software Packs, I select "Device Application" for the M7 core and enable the "Validation" option under STMicroelectronics.X-CUBE-AI. I then save the project.
- Next, I open the generated project in STM32CubeIDE 1.18, compile the code for the M7 and M4 cores in Release mode, and program the STM board. So far, everything works fine. When I press the reset button I can see
#
# AI Validation 7.1
#
Compiled with GCC 13.3.1
STM32 device configuration...
Device : DevID:0x0450 (STM32H743/53/50xx and STM32H745/55/47/57xx) RevID:0x2003
Core Arch. : M7 - FPU used
HAL version : 0x010b0500
SYSCLK clock : 400 MHz
HCLK clock : 200 MHz
FLASH conf. : ACR=0x00000032 - latency=2
CACHE conf. : $I/$D=(True,True)
Timestamp : SysTick + DWT (delay(1)=1.002 ms)
ST.AI RT
--------------------------------------------------
tools version : v2.0.0
network rt lib : v10.0.0-fd22b7f9
compiled with : GCC 11.3.1
Discovering the network(s)...
Found network "network"
Creating the network "network"..
Initializing the network
Network informations...
model name : network
model signature : 0x8f1b6d2aab7b9895e6460ef525012bb0
model datetime : 2025-03-23T17:34:47+0100
compile datetime : Mar 23 2025 17:35:55
tools version : 2.0.0
complexity : 8200 MACC
c-nodes : 4
map_activations : 1
[0] @0x20000000/1152
map_weights : 1
[0] @0x8010860/2896
n_inputs/n_outputs : 1/1
I[0] (1,8,8,2)128/i8 1:(0.003921,-128), @0x20000400/128
O[0] (1,1,1,8)8/i8 1:(0.003906,-128), @0x200003E8/8
-------------------------------------------
| READY to receive a CMD from the HOST... |
-------------------------------------------
# Note: At this point, default ASCII-base terminal should be closed
# and a serial COM interface should be used
# (i.e. Python ai_runner module). Protocol version = 3.1
- Now, I open from the IDE the .ico file, navigate to Pinout & Configuration -> Middleware and Software Packs -> X-CUBE-AI, and try to perform a validation. However, I get the error: LOAD ERROR: STM32 - read timeout 50007.9ms/50000ms
I tried to send random data (in the shape expected from the network) using python Serial and then reading them through picocom. In that case I can see unknow characters as the bytes are converted in ASCII. So, I suppose that the network gives some output...
Any suggestions on how to fix it?
Thanks in advance!
