Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Unable to build sample BHI20AB virtual drivers from the SDK Quick Start Guide

    Unable to build sample BHI20AB virtual drivers from the SDK Quick Start Guide

    I followed the instructions in section 5 of the BHI260AB SDK Quick Start Guide in order to use the VirtBSXLeanDeviceOrientation and VirtBSXCustomAccelDataSource custom virtual drivers, and I got the following errors:

     

    Spoiler
    FAILED: user/user-ram-1ae8a3fe9ff124f08042e312aa3078a6 user/user-ram-1ae8a3fe9ff124f08042e312aa3078a6.lib.inc
    cmd.exe /C "cmd.exe /C "cd /D C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -E remove C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-1ae8a3fe9ff124f08042e312aa3078a6.usage.csv && cd /D C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -P C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/cmake/force_include.cmake 1 C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-1ae8a3fe9ff124f08042e312aa3078a6.lib.inc C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-1ae8a3fe9ff124f08042e312aa3078a6.data/libs C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-1ae8a3fe9ff124f08042e312aa3078a6.data/sections && cd C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\build" && C:\arc_gnu\bin\arc-elf32-gcc.exe -mno-sdata -Os -include "C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/common/includes/hw_versions.h" -Werror -Wno-error=deprecated-declarations -g -DROM_NAME=bosch_rom -DROM_VERSION=ROM_7189_DI02 -DUSE_RTOS=1 -DRAM_BANKS_OPTIONAL_MAX=7 -DUSE_FLASH_BOOTLOADER=0 -DENCRYPT_USER_PAYLOAD=0 -DMAX_FLASH_FW_SIZE_SECTORS=2046 -DBHI260_OTP_SENSOR_CALIBRATION -DBHI260_ACCEL_RANGE_OFFSET -DBHI260_GYRO_SENSITIVITY_CORRECTION -DBHI260_GYRO_TIMOSC_PLL -nostartfiles -fno-stack-check -mlong-calls -DBHY2_KLIO_PAGE=9 -D__T7189__ -DDEVICE=0x7189 @"C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/common/7189/gcc.arg" -DVERSION=6 -DVERSION_BUGFIX=6 -DVERSION_MAJOR=3 -DVERSION_MINOR=0 -DBUILD_DATE="" -DBUILD_TIME="" -DI2C_QUEUE_SIZE=40 -DCONFIG_HAS_FLOAT_MATRIX=0 -DCONFIG_HAS_BOSCH_EXT_DATA=1 -DLARGE_DECIMATION -DPLACEHOLDER_SENSOR_API -DVIRTUAL_MODE_CHANGE -UVIRTUAL_CURRENT_CONSUMPTION -DVIRTUAL_EXPANSION_DATA -DHAS_ACTUAL_RATE -DINTF_STREAMING -e_start -Wl,--start-group -lm -Wl,--end-group -u gEM7189Config -Wl,-T"C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/kernel/kernel-linker.cmd" -u gFwHeader -u gUserEntries -u header_copy_offset -Bdefine:_BUILD_YEAR=2021 -Bdefine:_BUILD_MONTH=4 -Bdefine:_BUILD_DAY=16 -Bdefine:_BUILD_HOUR=13 -Bdefine:_BUILD_MINUTE=26 -Bdefine:_BUILD_SECOND=27 -Bdefine:USER_VERSION=6 -ffunction-sections -fdata-sections -u gFwHeader_copy -Wl,-e -Wl,user_init @"C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-1ae8a3fe9ff124f08042e312aa3078a6.lib.inc" @CMakeFiles\user-ram-1ae8a3fe9ff124f08042e312aa3078a6.rsp -o user\user-ram-1ae8a3fe9ff124f08042e312aa3078a6 -Wl,--start-group -Xlinker -Map=user\user-ram-1ae8a3fe9ff124f08042e312aa3078a6.map -Wl,--end-group && cmd.exe /C "cd /D C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\win64\bin\initdat -q user-ram-1ae8a3fe9ff124f08042e312aa3078a6 user-ram-1ae8a3fe9ff124f08042e312aa3078a6 !data !lit !bss ~.ram_keys ~.fw_header ~.fw_header_offset ~.em7189_descriptor .phys_sensor_descriptors .virt_sensor_descriptors .timer_sensor_descriptors ~.reclaim ~.vectors ~.fw_header_copy && cd /D C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -P C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/cmake/allocations.cmake C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-1ae8a3fe9ff124f08042e312aa3078a6.usage.csv C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-1ae8a3fe9ff124f08042e312aa3078a6.data/libs""
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: ../libs/MetawarePrintf/libMetawarePrintf.a(_doecvtd.c.obj): in function `_doecvtd':
    _doecvtd.c:(.text._doecvtd+0x7a): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x7a): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x90): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x90): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0xce): undefined reference to `_mwdrdiv_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0xce): undefined reference to `_mwdrdiv_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0xf4): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0xf4): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x11e): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x11e): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x132): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x132): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x140): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x140): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x15a): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x15a): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x16e): undefined reference to `_mwddiv_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x16e): undefined reference to `_mwddiv_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x180): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x180): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x196): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x196): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x1fc): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x1fc): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x204): undefined reference to `_mwdtruncu_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x204): undefined reference to `_mwdtruncu_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x20a): undefined reference to `_mwdfltu_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x20a): undefined reference to `_mwdfltu_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x212): undefined reference to `_mwdrsub_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x212): undefined reference to `_mwdrsub_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: ../libs/MetawarePrintf/libMetawarePrintf.a(_pow10d.c.obj): in function `_pow10d':
    _pow10d.c:(.text._pow10d+0x22): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _pow10d.c:(.text._pow10d+0x22): undefined reference to `_mwdmul_'
    collect2.exe: error: ld returned 1 exit status
    [211/246] Linking C executable user\user-flash-c3900fa0ad1864fd0adb9da62d9ca1b0
    [212/246] Linking C executable user\user-flash-d66927bc6b7229a80953ef99e811472a
    [213/246] Linking C executable user\user-ram-d66927bc6b7229a80953ef99e811472a
    [214/246] Linking C executable user\user-ram-97df84ec8122a0de8d6cf3413a289112
    [215/246] Linking C executable user\user-flash-418c4b99eb6f671a9001c6c1d2106937
    [216/246] Linking C executable user\user-flash-97df84ec8122a0de8d6cf3413a289112
    [217/246] Linking C executable user\user-flash-b493b6d7e3aa1f3db1c2d38f9a7e6e59
    [218/246] Linking C executable user\user-ram-b493b6d7e3aa1f3db1c2d38f9a7e6e59
    [219/246] Linking C executable user\user-flash-a9d622d876c13cb67a65e15c2cf77d14
    [220/246] Linking C executable user\user-ram-86bdf125440f2c720d9795b58dc7306f
    [221/246] Linking C executable user\user-flash-1ae8a3fe9ff124f08042e312aa3078a6
    FAILED: user/user-flash-1ae8a3fe9ff124f08042e312aa3078a6 user/user-flash-1ae8a3fe9ff124f08042e312aa3078a6.lib.inc
    cmd.exe /C "cmd.exe /C "cd /D C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -E remove C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-1ae8a3fe9ff124f08042e312aa3078a6.usage.csv && cd /D C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -P C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/cmake/force_include.cmake 1 C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-1ae8a3fe9ff124f08042e312aa3078a6.lib.inc C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-1ae8a3fe9ff124f08042e312aa3078a6.data/libs C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-1ae8a3fe9ff124f08042e312aa3078a6.data/sections && cd C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\build" && C:\arc_gnu\bin\arc-elf32-gcc.exe -mno-sdata -Os -include "C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/common/includes/hw_versions.h" -Werror -Wno-error=deprecated-declarations -g -DROM_NAME=bosch_rom -DROM_VERSION=ROM_7189_DI02 -DUSE_RTOS=1 -DRAM_BANKS_OPTIONAL_MAX=7 -DUSE_FLASH_BOOTLOADER=0 -DENCRYPT_USER_PAYLOAD=0 -DMAX_FLASH_FW_SIZE_SECTORS=2046 -DBHI260_OTP_SENSOR_CALIBRATION -DBHI260_ACCEL_RANGE_OFFSET -DBHI260_GYRO_SENSITIVITY_CORRECTION -DBHI260_GYRO_TIMOSC_PLL -nostartfiles -fno-stack-check -mlong-calls -DBHY2_KLIO_PAGE=9 -D__T7189__ -DDEVICE=0x7189 @"C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/common/7189/gcc.arg" -DVERSION=6 -DVERSION_BUGFIX=6 -DVERSION_MAJOR=3 -DVERSION_MINOR=0 -DBUILD_DATE="" -DBUILD_TIME="" -DI2C_QUEUE_SIZE=40 -DCONFIG_HAS_FLOAT_MATRIX=0 -DCONFIG_HAS_BOSCH_EXT_DATA=1 -DLARGE_DECIMATION -DPLACEHOLDER_SENSOR_API -DVIRTUAL_MODE_CHANGE -UVIRTUAL_CURRENT_CONSUMPTION -DVIRTUAL_EXPANSION_DATA -DHAS_ACTUAL_RATE -DINTF_STREAMING -e_start -Wl,--start-group -lm -Wl,--end-group -u gEM7189Config -Wl,-T"C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/kernel/kernel-flash-linker.cmd" -u gFwHeader -u gUserEntries -u header_copy_offset -Bdefine:_BUILD_YEAR=2021 -Bdefine:_BUILD_MONTH=4 -Bdefine:_BUILD_DAY=16 -Bdefine:_BUILD_HOUR=13 -Bdefine:_BUILD_MINUTE=26 -Bdefine:_BUILD_SECOND=27 -Bdefine:USER_VERSION=6 -ffunction-sections -fdata-sections -u gFwHeader_copy -Wl,-e -Wl,user_init @"C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-1ae8a3fe9ff124f08042e312aa3078a6.lib.inc" @CMakeFiles\user-flash-1ae8a3fe9ff124f08042e312aa3078a6.rsp -o user\user-flash-1ae8a3fe9ff124f08042e312aa3078a6 -Wl,--start-group -Xlinker -Map=user\user-flash-1ae8a3fe9ff124f08042e312aa3078a6.map -Wl,--end-group && cmd.exe /C "cd /D C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\win64\bin\initdat -q -Xnocompress user-flash-1ae8a3fe9ff124f08042e312aa3078a6 user-flash-1ae8a3fe9ff124f08042e312aa3078a6 !data !lit !bss .reclaim_data ~.flash_fw_header ~.flash_fw_header_offset ~.vectors ~.flash_fw_header_copy && cd /D C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\Noah\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -P C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/cmake/allocations.cmake C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-1ae8a3fe9ff124f08042e312aa3078a6.usage.csv C:/Users/Noah/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-1ae8a3fe9ff124f08042e312aa3078a6.data/libs""
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: ../libs/MetawarePrintf/libMetawarePrintf.a(_doecvtd.c.obj): in function `_doecvtd':
    _doecvtd.c:(.text._doecvtd+0x7a): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x7a): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x90): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x90): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0xce): undefined reference to `_mwdrdiv_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0xce): undefined reference to `_mwdrdiv_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0xf4): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0xf4): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x11e): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x11e): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x132): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x132): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x140): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x140): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x15a): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x15a): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x16e): undefined reference to `_mwddiv_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x16e): undefined reference to `_mwddiv_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x180): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x180): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x196): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x196): undefined reference to `__dcmpIEEE'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x1fc): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x1fc): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x204): undefined reference to `_mwdtruncu_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x204): undefined reference to `_mwdtruncu_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x20a): undefined reference to `_mwdfltu_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x20a): undefined reference to `_mwdfltu_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x212): undefined reference to `_mwdrsub_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _doecvtd.c:(.text._doecvtd+0x212): undefined reference to `_mwdrsub_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: ../libs/MetawarePrintf/libMetawarePrintf.a(_pow10d.c.obj): in function `_pow10d':
    _pow10d.c:(.text._pow10d+0x22): undefined reference to `_mwdmul_'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/10.2.0/../../../../arc-snps-elf/bin/ld.exe: _pow10d.c:(.text._pow10d+0x22): undefined reference to `_mwdmul_'
    collect2.exe: error: ld returned 1 exit status

    The specific changes I made were to add the following lines to the end of the board config file:

     

    Spoiler
    131, 800.000000 # VirtBSXCustomAccelDataSource
    132, 800.000000 # VirtBSXLeanDeviceOrientation

    and to add the following lines to ENABLED_DRIVERS in config.7189_di03_rtos_bhi260.cmake:

    Spoiler
    VirtBSXLeanDeviceOrientation
    VirtBSXCustomAccelDataSource

    I'm using BHI260AB SDK version 1.1.6.

     

    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    Hello NoahAndrews-REV,

    Could you share your SW code for review?

    I narrowed down the issue, it occurs when you call printf() with a parameter, like so:

     

    printf("ldo %d %d\n", g_output.orientation[0], g_output.orientation[1]);

     

     

    Note that I'm using the GCC compiler, not the MetaWare compiler.

    Hello Noah, 

     

    We are talking in perosn, so I will close this issue. 

    Simply saying that it's required to create custom virutal driver if you want custom virtual driver. 

    Thanks, 

    Hello Minhwan,

     

    I am facing simillar issue, but whíle using external library and unable to link. I am using SDK 1.1.6 version and BHI260AB. Could you share the soultion here?

    Error Log:

    [61/65] Building C object user/CMakeFiles/user-flash-793988c50c03f635ad347bd7d2b7eb35.dir/config_strings_Bosch_SHUTTLE_BHI260Custom.c.obj
    [62/65] Linking C executable user\user-ram-793988c50c03f635ad347bd7d2b7eb35
    FAILED: user/user-ram-793988c50c03f635ad347bd7d2b7eb35 user/user-ram-793988c50c03f635ad347bd7d2b7eb35.lib.inc
    cmd.exe /C "cmd.exe /C "cd /D C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -E remove C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-793988c50c03f635ad347bd7d2b7eb35.usage.csv && cd /D C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -P C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/cmake/force_include.cmake 1 C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-793988c50c03f635ad347bd7d2b7eb35.lib.inc C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-793988c50c03f635ad347bd7d2b7eb35.data/libs C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-793988c50c03f635ad347bd7d2b7eb35.data/sections && cd C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\build" && C:\arc_gnu\bin\arc-elf32-gcc.exe -mno-sdata -Os -include "C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/common/includes/hw_versions.h" -Werror -Wno-error=deprecated-declarations -g -DROM_NAME=bosch_rom -DROM_VERSION=ROM_7189_DI02 -DUSE_RTOS=1 -DRAM_BANKS_OPTIONAL_MAX=7 -DUSE_FLASH_BOOTLOADER=0 -DENCRYPT_USER_PAYLOAD=0 -DMAX_FLASH_FW_SIZE_SECTORS=2046 -DBHI260_OTP_SENSOR_CALIBRATION -DBHI260_ACCEL_RANGE_OFFSET -DBHI260_GYRO_SENSITIVITY_CORRECTION -DBHI260_GYRO_TIMOSC_PLL -nostartfiles -fno-stack-check -mlong-calls -DBHY2_KLIO_PAGE=9 -D__T7189__ -DDEVICE=0x7189 @"C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/common/7189/gcc.arg" -DVERSION=5991 -DVERSION_BUGFIX=5991 -DVERSION_MAJOR=3 -DVERSION_MINOR=0 -DBUILD_DATE="" -DBUILD_TIME="" -DI2C_QUEUE_SIZE=40 -DCONFIG_HAS_FLOAT_MATRIX=0 -DCONFIG_HAS_BOSCH_EXT_DATA=1 -DLARGE_DECIMATION -DPLACEHOLDER_SENSOR_API -DVIRTUAL_MODE_CHANGE -UVIRTUAL_CURRENT_CONSUMPTION -DVIRTUAL_EXPANSION_DATA -DHAS_ACTUAL_RATE -DINTF_STREAMING -e_start -Wl,--start-group -lm -u gEM7189Config -Wl,-T"C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/kernel/kernel-linker.cmd" -u gFwHeader -u gUserEntries -u header_copy_offset -Bdefine:_BUILD_YEAR=2021 -Bdefine:_BUILD_MONTH=4 -Bdefine:_BUILD_DAY=16 -Bdefine:_BUILD_HOUR=13 -Bdefine:_BUILD_MINUTE=26 -Bdefine:_BUILD_SECOND=27 -Bdefine:USER_VERSION=5991 -ffunction-sections -fdata-sections -u gFwHeader_copy -Wl,-e -Wl,user_init @"C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-793988c50c03f635ad347bd7d2b7eb35.lib.inc" user/CMakeFiles/user.dir/main.c.obj user/CMakeFiles/user.dir/stack_check.c.obj user/CMakeFiles/user.dir/hooks.c.obj user/CMakeFiles/user-ram-793988c50c03f635ad347bd7d2b7eb35.dir/config_strings_Bosch_SHUTTLE_BHI260Custom.c.obj -o user\user-ram-793988c50c03f635ad347bd7d2b7eb35 ../kernel/liblibkernel.a libusercrt.a ../drivers/BHI260Accel/libBHI260Accel.a ../drivers/BHI260Gyro/libBHI260Gyro.a ../drivers/BHI260Accel/libBHI260Accel.a ../drivers/BHI260Gyro/libBHI260Gyro.a drivers_custom/VirtBSXAccOcean/libVirtBSXAccOcean.a drivers_custom/VirtBSXGyroOcean/libVirtBSXGyroOcean.a drivers_custom/VirtBSXSensor/libVirtBSXSensor.a ../drivers/VirtBSX/libVirtBSX.a drivers/VirtBSXAccel/libVirtBSXAccel.a drivers/VirtBSXWakeupLinearAccel/libVirtBSXWakeupLinearAccel.a user/RamPatches/libRamPatches.a ../libs/MetawareDouble/libMetawareDouble.a ../libs/MetawarePrintf/libMetawarePrintf.a libs/ocean12_FurtherReduced/libocean12_FurtherReduced.a -Xlinker -Map=user\user-ram-793988c50c03f635ad347bd7d2b7eb35.map -Wl,--end-group && cmd.exe /C "cd /D C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\win64\bin\initdat -q user-ram-793988c50c03f635ad347bd7d2b7eb35 user-ram-793988c50c03f635ad347bd7d2b7eb35 !data !lit !bss ~.ram_keys ~.fw_header ~.fw_header_offset ~.em7189_descriptor .phys_sensor_descriptors .virt_sensor_descriptors .timer_sensor_descriptors ~.reclaim ~.vectors ~.fw_header_copy && cd /D C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -P C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/cmake/allocations.cmake C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-793988c50c03f635ad347bd7d2b7eb35.usage.csv C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-ram-793988c50c03f635ad347bd7d2b7eb35.data/libs""
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/12.2.1/../../../../arc-snps-elf/bin/ld.exe: c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/12.2.1/../../../../arc-snps-elf/lib/em4_fpus\libnosys.a(sbrk.o): in function `_sbrk':
    sbrk.c:(.text._sbrk+0x10): undefined reference to `end'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/12.2.1/../../../../arc-snps-elf/bin/ld.exe: sbrk.c:(.text._sbrk+0x10): undefined reference to `end'
    collect2.exe: error: ld returned 1 exit status
    [63/65] Linking C executable user\user-flash-793988c50c03f635ad347bd7d2b7eb35
    FAILED: user/user-flash-793988c50c03f635ad347bd7d2b7eb35 user/user-flash-793988c50c03f635ad347bd7d2b7eb35.lib.inc
    cmd.exe /C "cmd.exe /C "cd /D C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -E remove C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-793988c50c03f635ad347bd7d2b7eb35.usage.csv && cd /D C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -P C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/cmake/force_include.cmake 1 C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-793988c50c03f635ad347bd7d2b7eb35.lib.inc C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-793988c50c03f635ad347bd7d2b7eb35.data/libs C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-793988c50c03f635ad347bd7d2b7eb35.data/sections && cd C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\build" && C:\arc_gnu\bin\arc-elf32-gcc.exe -mno-sdata -Os -include "C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/common/includes/hw_versions.h" -Werror -Wno-error=deprecated-declarations -g -DROM_NAME=bosch_rom -DROM_VERSION=ROM_7189_DI02 -DUSE_RTOS=1 -DRAM_BANKS_OPTIONAL_MAX=7 -DUSE_FLASH_BOOTLOADER=0 -DENCRYPT_USER_PAYLOAD=0 -DMAX_FLASH_FW_SIZE_SECTORS=2046 -DBHI260_OTP_SENSOR_CALIBRATION -DBHI260_ACCEL_RANGE_OFFSET -DBHI260_GYRO_SENSITIVITY_CORRECTION -DBHI260_GYRO_TIMOSC_PLL -nostartfiles -fno-stack-check -mlong-calls -DBHY2_KLIO_PAGE=9 -D__T7189__ -DDEVICE=0x7189 @"C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/common/7189/gcc.arg" -DVERSION=5991 -DVERSION_BUGFIX=5991 -DVERSION_MAJOR=3 -DVERSION_MINOR=0 -DBUILD_DATE="" -DBUILD_TIME="" -DI2C_QUEUE_SIZE=40 -DCONFIG_HAS_FLOAT_MATRIX=0 -DCONFIG_HAS_BOSCH_EXT_DATA=1 -DLARGE_DECIMATION -DPLACEHOLDER_SENSOR_API -DVIRTUAL_MODE_CHANGE -UVIRTUAL_CURRENT_CONSUMPTION -DVIRTUAL_EXPANSION_DATA -DHAS_ACTUAL_RATE -DINTF_STREAMING -e_start -Wl,--start-group -lm -u gEM7189Config -Wl,-T"C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/kernel/kernel-flash-linker.cmd" -u gFwHeader -u gUserEntries -u header_copy_offset -Bdefine:_BUILD_YEAR=2021 -Bdefine:_BUILD_MONTH=4 -Bdefine:_BUILD_DAY=16 -Bdefine:_BUILD_HOUR=13 -Bdefine:_BUILD_MINUTE=26 -Bdefine:_BUILD_SECOND=27 -Bdefine:USER_VERSION=5991 -ffunction-sections -fdata-sections -u gFwHeader_copy -Wl,-e -Wl,user_init @"C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-793988c50c03f635ad347bd7d2b7eb35.lib.inc" user/CMakeFiles/user.dir/main.c.obj user/CMakeFiles/user.dir/stack_check.c.obj user/CMakeFiles/user.dir/hooks.c.obj user/CMakeFiles/user-flash-793988c50c03f635ad347bd7d2b7eb35.dir/config_strings_Bosch_SHUTTLE_BHI260Custom.c.obj -o user\user-flash-793988c50c03f635ad347bd7d2b7eb35 ../kernel/liblibkernel-flash.a libusercrt-flash.a ../drivers/BHI260Accel/libBHI260Accel.a ../drivers/BHI260Gyro/libBHI260Gyro.a ../drivers/BHI260Accel/libBHI260Accel.a ../drivers/BHI260Gyro/libBHI260Gyro.a drivers_custom/VirtBSXAccOcean/libVirtBSXAccOcean.a drivers_custom/VirtBSXGyroOcean/libVirtBSXGyroOcean.a drivers_custom/VirtBSXSensor/libVirtBSXSensor.a ../drivers/VirtBSX/libVirtBSX.a drivers/VirtBSXAccel/libVirtBSXAccel.a drivers/VirtBSXWakeupLinearAccel/libVirtBSXWakeupLinearAccel.a user/RamPatches/libRamPatches-flash.a ../libs/MetawareDouble/libMetawareDouble.a ../libs/MetawarePrintf/libMetawarePrintf.a libs/ocean12_FurtherReduced/libocean12_FurtherReduced.a -Xlinker -Map=user\user-flash-793988c50c03f635ad347bd7d2b7eb35.map -Wl,--end-group && cmd.exe /C "cd /D C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\win64\bin\initdat -q -Xnocompress user-flash-793988c50c03f635ad347bd7d2b7eb35 user-flash-793988c50c03f635ad347bd7d2b7eb35 !data !lit !bss .reclaim_data ~.flash_fw_header ~.flash_fw_header_offset ~.vectors ~.flash_fw_header_copy && cd /D C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\build\user && C:\Users\KAG1ST\Documents\BHI260AB_SDK_1.1.6\win64\cmake\bin\cmake.exe -P C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/cmake/allocations.cmake C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-793988c50c03f635ad347bd7d2b7eb35.usage.csv C:/Users/KAG1ST/Documents/BHI260AB_SDK_1.1.6/build/user/user-flash-793988c50c03f635ad347bd7d2b7eb35.data/libs""
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/12.2.1/../../../../arc-snps-elf/bin/ld.exe: c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/12.2.1/../../../../arc-snps-elf/lib/em4_fpus\libnosys.a(sbrk.o): in function `_sbrk':
    sbrk.c:(.text._sbrk+0x10): undefined reference to `end'
    c:/arc_gnu/bin/../lib/gcc/arc-snps-elf/12.2.1/../../../../arc-snps-elf/bin/ld.exe: sbrk.c:(.text._sbrk+0x10): undefined reference to `end'
    collect2.exe: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    Error running cmake build
    "build.bat" terminated with exit code 1. Build might be incomplete.

    14:47:02 Build Failed. 4 errors, 0 warnings. (took 8s.457ms)

    Thank you.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist