2022-02-11 10:48 PM
ai_input[0].n_batches = 1;
'ai_buffer' {aka 'struct ai_buffer_'} has no member named 'n_batches'
network.h
AI_DEPRECATED
#define AI_NETWORK_IN \
ai_network_inputs_get(AI_HANDLE_NULL, NULL)
This comes up invalid initializer error.
Any ideas? The initial code compiled ok with the acc data apart from a bug in cubemx where the lsm6dsl.h could not be found.
2022-06-15 12:27 AM
I got the similar error as I were using the reference code from 7.0.0 and found that with upgradation of Software pack from 7.0.0 to 7.1.0. There is a new way of assigning the input and getting the output. You can check that if that's the mistake if you're doing too.
2022-07-09 07:34 AM
Any answer for this question? I'm facing the same issue
2023-02-28 08:35 AM
See my answer below.
2023-02-28 08:35 AM
X-CUBE-AI 7.0 code example doesn't work with later versions. In my case 7.3.0.
Completely disregard example code for 7.0 version and use code from ST example: "How to perform motion sensing on STM32L4 IoTnode".
Section 6: "Create an STM32Cube.AI application using X-CUBE-AI".
2023-03-02 09:25 AM
thanks you