Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 'class MicroBitBLEManager' has no member named 'advertiseEddystoneUrl' #15

Open
kenken64 opened this issue Aug 13, 2017 · 7 comments

Comments

@kenken64
Copy link

D:\Projects\microbit-samples>yt build
info: generate for target: bbc-microbit-classic-gcc 0.2.3 at D:\Projects\microbit-samples\yotta_targets\bbc-microbit-classic-gcc
GCC version is: 5.4.1
-- The ASM compiler identification is GNU
-- Found assembler: d:/Program Files (x86)/GNU Tools ARM Embedded/5.4 2016q3/bin/arm-none-eabi-gcc.exe
suppressing warnings from ble-nrf51822
suppressing warnings from nrf51-sdk
suppressing ALL warnings from mbed-classic, ble, ble-nrf51822 & nrf51-sdk
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Projects/microbit-samples/build/bbc-microbit-classic-gcc
[163/164] Building CXX object source/...ts/microbit-samples/source/main.cpp.o
FAILED: "d:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\arm-none-eabi-g++.exe" -DYOTTA_MODULE_NAME=microbit-samples -Dmicrobit_samples_EXPORTS -fno-exceptions -fno-unwind-tables -ffunction-sections -fdata-sections -Wall -Wextra -fno-rtti -fno-threadsafe-statics -mcpu=cortex-m0 -mthumb -D__thumb2__ -std=c++11 -fwrapv -Os -g -gdwarf-3 -DNDEBUG -Igenerated/include -ID:/Projects/microbit-samples -ID:/Projects/microbit-samples/yotta_modules/microbit -ID:/Projects/microbit-samples/yotta_modules/microbit-dal -ID:/Projects/microbit-samples/yotta_modules/mbed-classic -ID:/Projects/microbit-samples/yotta_modules/ble -ID:/Projects/microbit-samples/yotta_modules/ble-nrf51822 -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk -ID:/Projects/microbit-samples/yotta_modules/microbit/inc -ID:/Projects/microbit-samples/yotta_modules/microbit-dal/inc/core -ID:/Projects/microbit-samples/yotta_modules/microbit-dal/inc/types -ID:/Projects/microbit-samples/yotta_modules/microbit-dal/inc/drivers -ID:/Projects/microbit-samples/yotta_modules/microbit-dal/inc/bluetooth -ID:/Projects/microbit-samples/yotta_modules/microbit-dal/inc/platform -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/api -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/hal -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/cmsis -ID:/Projects/microbit-samples/yotta_modules/ble-nrf51822/source/btle -ID:/Projects/microbit-samples/yotta_modules/ble-nrf51822/source/btle/custom -ID:/Projects/microbit-samples/yotta_modules/ble-nrf51822/source/common -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_services/ble_dfu -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/common -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager/config -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/peer_manager -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/device -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/ble_flash -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/delay -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/hal -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage/config -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu/hci_transport -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/crc16 -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/hci -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/scheduler -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/timer -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/util -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fds -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fstorage -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/experimental_section_vars -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/common/softdevice_handler -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/s130/headers -ID:/Projects/microbit-samples/yotta_modules/nrf51-sdk/source/nordic_sdk/components/toolchain -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822 -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110 -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822 -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16 -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0 -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0 -ID:/Projects/microbit-samples/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT -ID:/Projects/microbit-samples/source -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DMBED_OPERATORS -DNRF51 -DTARGET_NORDIC -DTARGET_M0 -D__MBED__=1 -DMCU_NORDIC_16K -DTARGET_NRF51_MICROBIT -DTARGET_MCU_NORDIC_16K -DTARGET_MCU_NRF51_16K_S110 -DTARGET_NRF_LFCLK_RC -DTARGET_MCU_NORDIC_16K -D__CORTEX_M0 -DARM_MATH_CM0 -include "D:/Projects/microbit-samples/build/bbc-microbit-classic-gcc/yotta_config.h" -MMD -MT source/CMakeFiles/microbit-samples.dir/D_/Projects/microbit-samples/source/main.cpp.o -MF source/CMakeFiles/microbit-samples.dir/D_/Projects/microbit-samples/source/main.cpp.o.d -o source/CMakeFiles/microbit-samples.dir/D_/Projects/microbit-samples/source/main.cpp.o -c D:/Projects/microbit-samples/source/main.cpp
D:/Projects/microbit-samples/source/main.cpp: In function 'void startAdvertising()':
D:/Projects/microbit-samples/source/main.cpp:12:21: error: 'class MicroBitBLEManager' has no member named 'advertiseEddystoneUrl'
uBit.bleManager.advertiseEddystoneUrl(URL, CALIBRATED_POWERS[tx_power_level-1], false);
^
ninja: build stopped: subcommand failed.
error: command ['ninja'] failed

@jamesadevine
Copy link
Contributor

Did you enable the eddystone config option?

@pradeeka7
Copy link

I'm getting the same error with YOTTA.

@jamesadevine
Copy link
Contributor

@pradeeka7 Did you perform the above step...?

@pradeeka7
Copy link

Yes, I copied config.json to the root (microbit-samples-master)

@pradeeka7
Copy link

After several attempts, I'm getting,
'srec_cat' is not recognized as an internal or external command,
operable program or batch file.

@pradeeka7
Copy link

Solved by including SRecord (https://sourceforge.net/projects/srecord/?source=typ_redirect).
Copied srec_cat, srec_cmp, and srec_info to yotta\gcc\bin

@jamesadevine
Copy link
Contributor

@pradeeka7 Cool, the installation process is described here, which includes the installation of srec cat https://lancaster-university.github.io/microbit-docs/offline-toolchains/#install-yotta-and-dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants