Comments (5)
Hi @vasimv! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
from zephyr.
Please use our bug template when reporting bugs. You need to edit this issue to include the information requested in https://github.com/zephyrproject-rtos/zephyr/blob/main/.github/ISSUE_TEMPLATE/001_bug_report.md
from zephyr.
Isn't this a native controller API, i.e. it'll only be available on boards that support the native controller? AFAIK EFR32BG22 not such a board.
from zephyr.
Here is output from west build:
`[291/296] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/vasimv/src/zephyr/ibeaconAir/build/zephyr/zephyr_pre0.map
: && ccache /opt/zephyr-sdk-0.16.6/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -fuse-ld=bfd -T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=/home/vasimv/src/zephyr/ibeaconAir/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/libarch__arm__core.a zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a zephyr/arch/arch/arm/core/cortex_m/cmse/libarch__arm__core__cortex_m__cmse.a zephyr/arch/arch/arm/core/mpu/libarch__arm__core__mpu.a zephyr/lib/libc/picolibc/liblib__libc__picolibc.a zephyr/lib/libc/common/liblib__libc__common.a zephyr/subsys/random/libsubsys__random.a zephyr/subsys/bluetooth/common/libsubsys__bluetooth__common.a zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a zephyr/subsys/net/libsubsys__net.a zephyr/drivers/adc/libdrivers__adc.a zephyr/drivers/bluetooth/libdrivers__bluetooth.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/entropy/libdrivers__entropy.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a zephyr/drivers/timer/libdrivers__timer.a zephyr/drivers/watchdog/libdrivers__watchdog.a modules/mbedtls/libmbedTLSBase.a modules/mbedtls/libmbedTLSCrypto.a modules/mbedtls/libmbedTLSX509.a modules/mbedtls/libmodules__mbedtls.a modules/segger/libmodules__segger.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a -L"/opt/zephyr-sdk-0.16.6/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main+fp/hard" -L/home/vasimv/src/zephyr/ibeaconAir/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a modules/mbedtls/libmbedTLSBase.a modules/mbedtls/libmbedTLSCrypto.a modules/mbedtls/libmbedTLSX509.a -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee -mtp=soft -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,-no-pie -DPICOLIBC_DOUBLE_PRINTF_SCANF /home/vasimv/src/zephyr/modules/hal/silabs/gecko/../zephyr/blobs/gecko/protocol/bluetooth/bgstack/ll/lib/libbluetooth_controller_efr32xg22_gcc_release.a /home/vasimv/src/zephyr/modules/hal/silabs/gecko/../zephyr/blobs/gecko/protocol/bluetooth/bgcommon/lib/libbgcommon_efr32xg22_gcc_release.a /home/vasimv/src/zephyr/modules/hal/silabs/gecko/../zephyr/blobs/gecko/platform/radio/rail_lib/autogen/librail_release/librail_efr32xg22_gcc_release.a --specs=picolibc.specs -lc -lgcc && cd /home/vasimv/src/zephyr/ibeaconAir/build/zephyr && /usr/bin/cmake -E true
/opt/zephyr-sdk-0.16.6/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: app/libapp.a(main.c.obj): in function set_MAC_addr': /home/vasimv/src/zephyr/ibeaconAir/src/main.c:343: undefined reference to
bt_ctlr_set_public_addr'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
`
Isn't this a native controller API, i.e. it'll only be available on boards that support the native controller? AFAIK EFR32BG22 not such a board.
The function is listed in documentation ( https://docs.zephyrproject.org/apidoc/latest/group__bt__ctrl.html ) and has prototype in include/zephyr/bluetooth/controller.h, not sure about its nativeness.
I've made crude hack to change MAC address by replacing bt_id_set_adv_private_addr function to call bt_id_set_adv_random_addr with MAC address i needed and switching to private address in advertisements. Works but not really right way.
Isn't this a native controller API, i.e. it'll only be available on boards that support the native controller? AFAIK EFR32BG22 not such a board.
from zephyr.
@vasimv by "the native controller" I mean what's implemented in subsys/bluetooth/controller
. AFAIK controller.h
is an API into that specific subcomponent. The board you're using doesn't support this, rather it has its own controller implementation. The way to interface with other controllers is strictly through HCI, i.e. you'd need normally some vendor HCI command to set the public address (as there's no standard HCI command for it).
from zephyr.
Related Issues (20)
- sample: drivers: spi_flash: sample.drivers.spi.flash - spi_nor - undefined reference to `__device_dts_ord_161'
- drivers: video: software driver to turn a display into a video sink
- stm32H7 cannot XiP from dual quad nor in Memorymapped mode HOT 1
- RFC: sensor authors should take maintainership/ownership
- RFC: sensor decoder associated data HOT 5
- How to find out ((no paths)) and (hidden) section information using rom_report
- IOT Devices disconnects if the Gateway is replaced with new gateway HOT 10
- Unaligned access fault in net_if.c for pi_pico_w. HOT 3
- Governing Board 2024 Dependability Goals
- ci: samples: frdm_k64f build failure HOT 1
- APPLICATION_CONFIG_DIR should follow principle of ROOT settings
- Sysbuild treats relative ROOT settings differently in sysbuild vs. image build
- LLEXT EDK sample generates an EDK that's missing header files on Windows
- samples: subsys: usb: hid-keyboard: Assertion failure on USB cable attach when CONFIG_ASSERT=y HOT 3
- Lack of overlay for adc tests for steval_stwinbx1
- DOC: Generation: Win10: Could not import extension zephyr.kconfig (exception: No module named 'sphinx.util.display') HOT 3
- LE Audio: CAP Initiator cannot handle any unexpected state changes HOT 1
- Zephyr MQTT library -128 error when trying to use unencrypted broker with authentication. HOT 6
- DACx3608 Driver Feature Support HOT 1
- drivers: sensors: nxp: kinetis: temp: wrong length provided to memset()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zephyr.