firmware cannot build after on-chip-debug setup

Post here to get support
Post Reply
traffens
Beginner
Posts: 21
Joined: Sun Sep 26, 2021 9:01 pm

firmware cannot build after on-chip-debug setup

Post by traffens »

While trying to set up eclipse for on-board chip debugging, I suddenly cannot make the firmware successfully anymore. I poked around the internet then got stuck here. Any ideas as to why I'm getting this issue? I assume it's a version mismatch somewhere.





Code: Select all

traffens@ubuntu:~/Desktop/projects/crazyflie-firmware$ make
  CLEAN_VERSION
  CC    list.o
  CC    tasks.o
  CC    queue.o
  CC    timers.o
  CC    heap_4.o
  CC    port.o
  CC    stm32f4xx_adc.o
  CC    stm32f4xx_dbgmcu.o
  CC    stm32f4xx_dma.o
  CC    stm32f4xx_exti.o
  CC    stm32f4xx_flash.o
  CC    stm32f4xx_gpio.o
  CC    stm32f4xx_i2c.o
  CC    stm32f4xx_iwdg.o
  CC    stm32f4xx_rcc.o
  CC    stm32f4xx_spi.o
  CC    stm32f4xx_tim.o
  CC    stm32f4xx_usart.o
  CC    stm32f4xx_misc.o
  CC    stm32f4xx_syscfg.o
  CC    usb_core.o
  CC    usb_dcd_int.o
  CC    usb_dcd.o
  CC    usbd_ioreq.o
  CC    usbd_req.o
  CC    usbd_core.o
  CC    sensors_mpu9250_lps25h.o
  CC    sensors_bmi088_bmp388.o
.//src/hal/src/sensors_bmi088_bmp388.c: In function ‘sensorsDeviceInit’:
.//src/hal/src/sensors_bmi088_bmp388.c:465:18: error: assignment to ‘bmp3_com_fptr_t’ {aka ‘signed char (*)(unsigned char,  unsigned char,  unsigned char *, short unsigned int)’} from incompatible pointer type ‘bstdr_ret_t (*)(uint8_t,  uint8_t,  uint8_t *, uint16_t)’ {aka ‘enum <anonymous> (*)(unsigned char,  unsigned char,  unsigned char *, short unsigned int)’} [-Werror=incompatible-pointer-types]
  465 |   bmp388Dev.read = bmi088_burst_read;
      |                  ^
.//src/hal/src/sensors_bmi088_bmp388.c:466:19: error: assignment to ‘bmp3_com_fptr_t’ {aka ‘signed char (*)(unsigned char,  unsigned char,  unsigned char *, short unsigned int)’} from incompatible pointer type ‘bstdr_ret_t (*)(uint8_t,  uint8_t,  uint8_t *, uint16_t)’ {aka ‘enum <anonymous> (*)(unsigned char,  unsigned char,  unsigned char *, short unsigned int)’} [-Werror=incompatible-pointer-types]
  466 |   bmp388Dev.write = bmi088_burst_write;
      |                   ^
cc1: all warnings being treated as errors
make[1]: *** [tools/make/targets.mk:27: sensors_bmi088_bmp388.o] Error 1
make: *** [Makefile:403: build] Error 2
traffens@ubuntu:~/Desktop/projects/crazyflie-firmware$ 
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: firmware cannot build after on-chip-debug setup

Post by kimberly »

Hi!

Have you tried to first do a[ code] make clean[/code] and a

Code: Select all

make mrproper
first before making the firmware? And do you have a config.mk with any defines in them?
Post Reply