cancel
Showing results for 
Search instead for 
Did you mean: 

When running the model, I get error type 17 and error code 16

KSOdin2
Associate III

I am currently trying to run an ML model on the STM32H7A3. The model is uploaded correctly and successfully analysed.

The first issue is that when generating the code, the middleware folder which contains ST>ai (which contains ai_platform) is deleted by CubeIDE. I've had to overcome this by copying the middleware folder from an older project, as there is no way to generate it. Hopefully, ST knows about this.

Anyway, when I run the model, the correct input and outputs are present. This means I can fill in the input buffer. I do not enable the use activation buffer for input buffer as shown in the screen show:


_legacyfs_online_stmicro_images_0693W00000bVhqoQAC.png 

When I run the model batch is returned as 1, and the error type is 17 and code 16, which means:

 AI_ERROR_INVALID_VALUE        = 0x17,

 AI_ERROR_CODE_ARRAY        = 0x0016

I can't find any documentation on the error codes. I also can't seem to fix the problem as everything else works OK.

Is this a known issue with CubeAI at the moment? or is it because the middleware is not being generated anymore? I've seen other posts where ST has answered, saying that there will be an update in mid-June to Fix CubeAI with update 8.1.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
fauvarque.daniel
ST Employee

For the middleware folder beeing removed, the fix will be in 8.1. in the mean time just use the project generation option not to remove the files not generated.

For the input/output issue, this is probably due to the way you pass the data to the model, you can look at this thread for an example https://community.st.com/s/question/0D73W000000bAqBSAU/detail

Regards

Daniel


In order 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.

View solution in original post

1 REPLY 1
fauvarque.daniel
ST Employee

For the middleware folder beeing removed, the fix will be in 8.1. in the mean time just use the project generation option not to remove the files not generated.

For the input/output issue, this is probably due to the way you pass the data to the model, you can look at this thread for an example https://community.st.com/s/question/0D73W000000bAqBSAU/detail

Regards

Daniel


In order 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.