2024-06-06 09:04 AM
Goodmorning,
I have a problem with the validation on target of a CNN network on XcubeAI.
I tried to validate the networks on desktop, and it runs, but, when I try to validate on target it gives me that error, I ask you if someone has a solution or something else to try to fix this problem.
I'm using version 1.15.1 of STMCUBEIDE and v. 9.0.0 of cube AI
the board I try to validate is UFBGA144.
Building project
Generating project
Temporary project loaded
Temporary AI configuration done
Generating temporary project code
Building project
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_cortex.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_cortex.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma_ex.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma_ex.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_exti.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_exti.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash_ex.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash_ex.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash_ramfunc.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash_ramfunc.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c_ex.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c_ex.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr_ex.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr_ex.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc_ex.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc_ex.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim_ex.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim_ex.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart_ex.c -o Debug/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart_ex.o
C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IDrivers/STM32L4xx_HAL_Driver/Inc -IInc -O3 -Wall -fdata-sections -ffunction-sections Src/app_x-cube-ai.c -o Debug/Src/app_x-cube-ai.o
In file included from Src/app_x-cube-ai.c:37:
Inc/app_x-cube-ai.h:28:8: error: unknown type name 'ai_i8'
28 | extern ai_i8* data_ins[];
| ^~~~~
Inc/app_x-cube-ai.h:29:8: error: unknown type name 'ai_i8'
29 | extern ai_i8* data_outs[];
| ^~~~~
Inc/app_x-cube-ai.h:31:8: error: unknown type name 'ai_handle'
31 | extern ai_handle data_activations0[];
| ^~~~~~~~~
make: *** [Makefile:61: Debug/Src/app_x-cube-ai.o] Error 1
Automatic build and run failed