cancel
Showing results for 
Search instead for 
Did you mean: 

Algobuilder GUI sensortilebox

Frabbit
Associate III

Good morning everyone, I am trying to follow the example for machine learning given for the SensorTile Box

https://github.com/STMicroelectronics/STMems_Machine_Learning_Core/tree/master/configuration_examples/example_2_sensortilebox_algobuilder_unico

with Algobuilder.

I have followed all the steps with the configuration that did not give problems but when I go to compile the project it gives me this sequence of errors and I cannot flash the SensorTile Box.

Frabbit_0-1716986655732.pngFrabbit_1-1716986682155.png

Firmware Directory Initialization:

Firmware Directories Successfully Initialized!

Code generation finished successfully.

Build Process Started ...

Create.

Opening 'SensorTile.box-Project'.

11:51:40 **** Build of configuration SensorTile.box-Project for project SensorTile.box-Project ****

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/ST/STM32_USB_Device_Library/Class/MSC/Src/usbd_msc.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/ST/STM32_USB_Device_Library/Class/MSC/Src/usbd_msc_bot.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/ST/STM32_USB_Device_Library/Class/MSC/Src/usbd_msc_data.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/ST/STM32_USB_Device_Library/Class/MSC/Src/usbd_msc_scsi.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/ST/STM32_USB_Device_Library/Class/CDC_MSC/Src/usbd_cdc_msc.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/Third_Party/FatFs/src/option/syscall.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/Third_Party/FatFs/src/option/unicode.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/Third_Party/FatFs/src/diskio.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/Third_Party/FatFs/src/ff.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Middlewares/Third_Party/FatFs/src/ff_gen_drv.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/algo_builder.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/cube_hal_l4.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/demo_serial.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/fatfs.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/main.c

Error: C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/main.c: In function 'EnterDFU':

Error: C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/main.c:1080:33: warning: array subscript 0 is outside array bounds of 'uint32_t[0]' {aka 'long unsigned int[]'} [-Warray-bounds]

Error: 1080 | JumpToDFU = (void (*)(void)) (*((uint32_t *)(0x00000000 + 4)));

Error: | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/sd_diskio_SensorTile.box.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/sensor_commands.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/serial_protocol.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/stm32l4xx_hal_msp.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/stm32l4xx_it.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/usbd_cdc_interface.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/usbd_conf.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/usbd_desc.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/usbd_storage_if.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/vcom.c

Example/SW4STM32/startup_stm32l4r9xx.o

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/CubeIDE/STM32L4R9ZI-SensorTile.box/syscalls.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/ab_buffers.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/ab_display.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/ab_fft.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/ab_sensor_hub.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/ab_sequential_logic.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/ab_signal.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/ab_user_input.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_adc.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_adc_ex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_cortex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c_ex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pcd.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pcd_ex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr_ex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc_ex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rtc.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rtc_ex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_sd.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_sd_ex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_spi.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim_ex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_sdmmc.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_usb.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Project/Src/system_stm32l4xx.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/SensorTile.box/SensorTile.box.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/SensorTile.box/SensorTile.box_bus.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/SensorTile.box/SensorTile.box_env_sensors.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/SensorTile.box/SensorTile.box_env_sensors_ex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/SensorTile.box/SensorTile.box_motion_sensors.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/SensorTile.box/SensorTile.box_motion_sensors_ex.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/SensorTile.box/SensorTile.box_sd.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/hts221/hts221.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/hts221/hts221_reg.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/lis2mdl/lis2mdl.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/lis2mdl/lis2mdl_reg.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/lps22hh/lps22hh.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/lps22hh/lps22hh_reg.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/lsm6dsox/lsm6dsox.c

C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/lsm6dsox/lsm6dsox_reg.c

Error: In function 'bytecpy',

Error: inlined from 'lsm6dsox_mode_set' at C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/lsm6dsox/lsm6dsox_reg.c:13376:5:

Error: C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/lsm6dsox/lsm6dsox_reg.c:96:13: warning: '*(uint8_t *)(&spi2_ctrl2_ois + offsetof(lsm6dsox_spi2_ctrl2_ois_t, hp_en_ois))' may be used uninitialized [-Wmaybe-uninitialized]

Error: 96 | *target = *source;

Error: | ~~~~~~~~^~~~~~~~~

Error: C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/lsm6dsox/lsm6dsox_reg.c: In function 'lsm6dsox_mode_set':

Error: C:/Users/fr.silvano/STMicroelectronics/AlgoBuilder/FirmwareTemplate/Drivers/BSP/Components/lsm6dsox/lsm6dsox_reg.c:12866:29: note: '*(uint8_t *)(&spi2_ctrl2_ois + offsetof(lsm6dsox_spi2_ctrl2_ois_t, hp_en_ois))' was declared here

Error: 12866 | lsm6dsox_spi2_ctrl2_ois_t spi2_ctrl2_ois;

Error: | ^~~~~~~~~~~~~~

SensorTile.box-Project.elf

Error: C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: SensorTile.box-Project.elf has a LOAD segment with RWX permissions

 

arm-none-eabi-size SensorTile.box-Project.elf

text data bss dec hex filename

105648 2920 45048 153616 25810 SensorTile.box-Project.elf

 

 

 

11:54:15 Build Finished. 0 errors, 3 warnings. (took 2m:35s.373ms)

Build Process Finished

Exit Code: 0

Frabbit_2-1716986782075.png

What can I do to resolve this issue?

 

1 REPLY 1
Miroslav BATEK
ST Employee

Hello @Frabbit 

these are not errors but only warnings due to more strict gcc compiler. The binary file is generated and you can program the Sensortile.box.