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.

     

    Tags (2)
    3 REPLIES 3
    BSTRobin
    Community Moderator

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

    Hello NoahAndrews-REV,

    Could you share your SW code for review?

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

    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.

    Minhwan
    Community Moderator

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

    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, 

    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