Comments (6)
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.
Closing as not planned, since this API is only intended to be provided by the native Zephyr controller.
from zephyr.
Related Issues (20)
- Bluetooth: host: bt_conn_le_param_update rejects valid parameters HOT 1
- tests/posix/common/ portability.posix.common.static_stack failing to build for riscv HOT 2
- esp32: driver, config: ESP32 UART RX FIFO Threshold Configuration HOT 1
- Bluetooth: Sysbuild broken on nrf5340
- Bluetooth host: bt_conn_tx_processor() does not handle multiple ISO connections being ready correctly HOT 5
- Introduce BLE controller-only firmware to make STEVAL-MKBOXPRO board working
- Attempting to use MQTT with ESP32 fails HOT 6
- Problems with tests/subsys/pm and native_sim HOT 2
- Bluetooth: Non functional on nRF51 with fault HOT 30
- Kconfig tree littered with non applicable options HOT 6
- PWM Clock does not work if SOC clock is changed [NXP S32K1] HOT 5
- CMake warning because of new MSPI support HOT 3
- Improve the ov5640 video driver to provide parallel interface (DVP) support. HOT 7
- tests/drivers/counter/counter_basic_api skips instances that are able to run the tests
- Incorrect number of channels declared for timer NXP S32Z2 RTU.PIT
- net: ptp: maybe unused clock variable in global scope causing issues HOT 3
- Waveshare st7789v2 with 240x280 screen shows a line at the bottom of the display
- ESP32-S3 WiFi Interrupt Registration breaks if Watchdog Enabled HOT 11
- tests: lpcxpresso55s69/lpc55s69/cpu0/ns: drivers.flash.common.tfm_ns: Build failure
- tests: sample.net.sockets.echo_server : frdm_k64f: build failure
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.