Important changes to forums

We’re making some changes to the Mbed forums. From 10th December 2019 all new discussions will take place on our new forum site. You can continue to reply to existing threads for the next two weeks. After that we will archive this forum so you can return to useful posts in the future.

The MultiConnect® mDot™ offers significantly longer range and improved radio performance compared to traditional wireless solutions—resulting in greater transmission range and reduced capital expense.

Multiple definition Link error with mbed-cli

25 Oct 2017

I am trying to compile offline with mbed-cli using the following commands:

Commands

mbed import http://mbed.org/teams/MultiTech/code/Dot-Examples/ cd Dot-Examples mbed config -G GCC_ARM_PATH "C:\Program Files (x86)\GNU Tools ARM Embedded\6 2017-q2-update\bin" mbed config target mts_mdot_f411re mbed toolchain GCC_ARM mbed add http://mbed.org/teams/MultiTech/code/libxDot-mbed5/ mbed compile -t GCC_ARM -m mts_mdot_f411re profile mbed-os/tools/profiles/debug.json

This produces many linker errors. Has anybody successfuly compiled Dot-Examples using mbed-cli? How?

Link errors

Link: Dot-Examples ./libxDot-mbed5\libxDot-GCC_ARM.a(stm32l1xx_hal_flash_ex.o): In function `HAL_FLASHEx_OBProgram': stm32l1xx_hal_flash_ex.c:(.text.HAL_FLASHEx_OBProgram+0x0): multiple definition of `HAL_FLASHEx_OBProgram' ./BUILD/mts_mdot_f411re/GCC_ARM/mbed-os/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_flash_ex.o:F:\Dev\stm32\dot-examples\Dot-Examples/.\mbed-os\targets\TARGET_STM\TARGET_STM32F4\device/stm32f4xx_hal_flash_ex.c:303: first defined here ./libxDot-mbed5\libxDot-GCC_ARM.a(stm32l1xx_hal_flash_ex.o): In function `HAL_FLASHEx_OBGetConfig': stm32l1xx_hal_flash_ex.c:(.text.HAL_FLASHEx_OBGetConfig+0x0): multiple definition of `HAL_FLASHEx_OBGetConfig'

....

19 Nov 2018

Import the libmDot-mbed5 instead of libxDot-mbed5

https://os.mbed.com/teams/MultiTech/

You need to log in to post a reply