jaredwolff
demo/ble with Vanilla v3.3.0 builds successfully now.
However, when flashed to the particle_xenon board, I don’t see ble Air Quality Wing
device when running nRF Connect
from iPad or iPhone.
Do you check this on your side? Thanks
I don’t even get anything in RTT even tough it is turned enabled in the particle_xenon.conf
.
The demo/ble for NCS v2.3.0
works fine.
* Executing task: west build -b particle_xenon -p
-- west build: generating a build system
-- Build type: debug 🚀
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/quark11/Documents/aqw-test/demo/ble_3.3.0
-- CMake version: 3.22.0
-- Using NCS Toolchain 2.3.0 for building. (/opt/nordic/ncs/toolchains/v2.3.0/cmake)
-- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3 (found suitable exact version "3.9.6") found components: Interpreter
-- Cache files will be written to: /Users/quark11/Library/Caches/zephyr
-- Zephyr version: 3.3.0 (/Users/quark11/Documents/aqw-test/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: particle_xenon
-- Found host-tools: zephyr 0.15.1 (/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found toolchain: zephyr 0.15.1 (/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found Dtc: /opt/nordic/ncs/toolchains/v2.3.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/quark11/Documents/aqw-test/zephyr/boards/arm/particle_xenon/particle_xenon.dts
-- Found devicetree overlay: /Users/quark11/Documents/aqw-test/demo/ble_3.3.0/boards/particle_xenon.overlay
-- Generated zephyr.dts: /Users/quark11/Documents/aqw-test/demo/ble_3.3.0/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/quark11/Documents/aqw-test/demo/ble_3.3.0/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/quark11/Documents/aqw-test/demo/ble_3.3.0/build/zephyr/dts.cmake
Parsing /Users/quark11/Documents/aqw-test/demo/ble_3.3.0/Kconfig
Loaded configuration '/Users/quark11/Documents/aqw-test/zephyr/boards/arm/particle_xenon/particle_xenon_defconfig'
Merged configuration '/Users/quark11/Documents/aqw-test/demo/ble_3.3.0/prj.conf'
Merged configuration '/Users/quark11/Documents/aqw-test/demo/ble_3.3.0/boards/particle_xenon.conf'
Merged configuration '/Users/quark11/Documents/aqw-test/demo/ble_3.3.0/config/ble.conf'
Configuration saved to '/Users/quark11/Documents/aqw-test/demo/ble_3.3.0/build/zephyr/.config'
Kconfig header saved to '/Users/quark11/Documents/aqw-test/demo/ble_3.3.0/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/quark11/Documents/aqw-test/demo/ble_3.3.0/build
-- west build: building application
[1/293] Preparing syscall dependency handling
[2/293] Generating include/generated/version.h
-- Zephyr version: 3.3.0 (/Users/quark11/Documents/aqw-test/zephyr), build: zephyr-v3.3.0
[198/293] Building C object modules/aqw/drivers/hpma115s0/CMakeFiles/..__aqw__drivers__hpma115s0.dir/hpma115s0.c.obj
/Users/quark11/Documents/aqw-test/aqw/drivers/hpma115s0/hpma115s0.c: In function 'uart_cb':
/Users/quark11/Documents/aqw-test/aqw/drivers/hpma115s0/hpma115s0.c:128:36: warning: unused variable 'config' [-Wunused-variable]
128 | const struct hpma115s0_config *config = dev->config;
| ^~~~~~
[283/293] Linking C executable zephyr/zephyr_pre0.elf
[287/293] Linking C executable zephyr/zephyr_pre1.elf
[293/293] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 226980 B 412 KB 53.80%
RAM: 37500 B 256 KB 14.31%
IDT_LIST: 0 GB 2 KB 0.00%
* Terminal will be reused by tasks, press any key to close it.
demo/ethernet_hub_bl
e with Vanilla v3.3.0 fails to build successfully
I didn’t see any code changes in demo/ethernet_hub_ble.
I did try a few things to resolve resolve the /demo/ethernet_hub_ble_3.3.0/prj.conf errors but no progress.
I get the errors below, with region `FLASH’ overflowed by 37060 bytes
* Executing task: west build -b particle_xenon -p
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0
-- CMake version: 3.22.0
-- Using NCS Toolchain 2.3.0 for building. (/opt/nordic/ncs/toolchains/v2.3.0/cmake)
-- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3 (found suitable exact version "3.9.6") found components: Interpreter
-- Cache files will be written to: /Users/quark11/Library/Caches/zephyr
-- Zephyr version: 3.3.0 (/Users/quark11/Documents/aqw-test/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: particle_xenon
-- Found host-tools: zephyr 0.15.1 (/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found toolchain: zephyr 0.15.1 (/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found Dtc: /opt/nordic/ncs/toolchains/v2.3.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/quark11/Documents/aqw-test/zephyr/boards/arm/particle_xenon/particle_xenon.dts
-- Found devicetree overlay: /Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/boards/particle_xenon.overlay
-- Generated zephyr.dts: /Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/build/zephyr/dts.cmake
warning: BT_SETTINGS (defined at subsys/bluetooth/host/Kconfig:183) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: SETTINGS (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_SETTINGS and/or look up BT_SETTINGS in
the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
Parsing /Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/Kconfig
Loaded configuration '/Users/quark11/Documents/aqw-test/zephyr/boards/arm/particle_xenon/particle_xenon_defconfig'
Merged configuration '/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/prj.conf'
Merged configuration '/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/boards/particle_xenon.conf'
Merged configuration '/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/config/ble.conf'
Merged configuration '/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/config/golioth.conf'
Configuration saved to '/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/build/zephyr/.config'
Kconfig header saved to '/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /Users/quark11/Documents/aqw-test/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
CONFIG_USB_DEVICE_VID has default value 0x2FE3.
This value is only for testing and MUST be configured for USB products.
CMake Warning at /Users/quark11/Documents/aqw-test/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
CONFIG_USB_DEVICE_PID has default value 0x100.
This value is only for testing and MUST be configured for USB products.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/build
-- west build: building application
[1/466] Preparing syscall dependency handling
[2/466] Generating include/generated/version.h
-- Zephyr version: 3.3.0 (/Users/quark11/Documents/aqw-test/zephyr), build: zephyr-v3.3.0
[13/466] Building C object CMakeFiles/app.dir/src/main.c.obj
/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/src/main.c:31:33: warning: 'struct date_time_evt' declared inside parameter list will not be visible outside of this definition or declaration
31 | void date_time_evt(const struct date_time_evt *evt)
| ^~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/src/main.c: In function 'main':
/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/src/main.c:88:9: warning: unused variable 'err' [-Wunused-variable]
88 | int err;
| ^~~
[20/466] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/usb/device/class/cdc_acm.c.obj
/Users/quark11/Documents/aqw-test/zephyr/subsys/usb/device/class/cdc_acm.c:63:2: warning: #warning "USB_CDC_ACM_LOG_LEVEL forced to LOG_LEVEL_NONE" [-Wcpp]
63 | #warning "USB_CDC_ACM_LOG_LEVEL forced to LOG_LEVEL_NONE"
| ^~~~~~~
[39/466] Building C object zephyr/CMakeFiles/zephyr.dir/Users/quark11/Documents/aqw-test/modules/lib/golioth/net/golioth/system_client.c.obj
In file included from /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/device.h:13,
from /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/net/net_if.h:22,
from /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/net/net_context.h:28,
from /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/net/dns_resolve.h:17,
from /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/net/socket.h:28,
from /Users/quark11/Documents/aqw-test/modules/lib/golioth/net/golioth/system_client.c:14:
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/init.h:105:33: warning: initialization of 'int (*)(const struct device *)' from incompatible pointer type 'int (*)(void)' [-Wincompatible-pointer-types]
105 | .init = (init_fn), \
| ^
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/init.h:144:9: note: in expansion of macro 'Z_INIT_ENTRY_DEFINE'
144 | Z_INIT_ENTRY_DEFINE(name, init_fn, NULL, level, prio)
| ^~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/init.h:128:9: note: in expansion of macro 'SYS_INIT_NAMED'
128 | SYS_INIT_NAMED(init_fn, init_fn, level, prio)
| ^~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/modules/lib/golioth/net/golioth/system_client.c:297:1: note: in expansion of macro 'SYS_INIT'
297 | SYS_INIT(golioth_system_init, APPLICATION,
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/init.h:105:33: note: (near initialization for '__init_golioth_system_init.init')
105 | .init = (init_fn), \
| ^
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/init.h:144:9: note: in expansion of macro 'Z_INIT_ENTRY_DEFINE'
144 | Z_INIT_ENTRY_DEFINE(name, init_fn, NULL, level, prio)
| ^~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/init.h:128:9: note: in expansion of macro 'SYS_INIT_NAMED'
128 | SYS_INIT_NAMED(init_fn, init_fn, level, prio)
| ^~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/modules/lib/golioth/net/golioth/system_client.c:297:1: note: in expansion of macro 'SYS_INIT'
297 | SYS_INIT(golioth_system_init, APPLICATION,
| ^~~~~~~~
[456/466] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/build/zephyr/zephyr_pre0.map
: && ccache /Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/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 -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/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/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/newlib/liblib__libc__newlib.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/boards/arm/particle_xenon/libboards__arm__particle_xenon.a zephyr/subsys/bluetooth/common/libsubsys__bluetooth__common.a zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a zephyr/subsys/bluetooth/crypto/libsubsys__bluetooth__crypto.a zephyr/subsys/bluetooth/controller/libsubsys__bluetooth__controller.a zephyr/subsys/mgmt/mcumgr/mgmt/libsubsys__mgmt__mcumgr__mgmt.a zephyr/subsys/mgmt/mcumgr/smp/libsubsys__mgmt__mcumgr__smp.a zephyr/subsys/mgmt/mcumgr/util/libsubsys__mgmt__mcumgr__util.a zephyr/subsys/mgmt/mcumgr/grp/img_mgmt/libsubsys__mgmt__mcumgr__grp__img_mgmt.a zephyr/subsys/mgmt/mcumgr/grp/os_mgmt/libsubsys__mgmt__mcumgr__grp__os_mgmt.a zephyr/subsys/mgmt/mcumgr/transport/libsubsys__mgmt__mcumgr__transport.a zephyr/subsys/dfu/boot/libsubsys__dfu__boot.a zephyr/subsys/net/libsubsys__net.a zephyr/subsys/net/l2/ethernet/libsubsys__net__l2__ethernet.a zephyr/subsys/net/ip/libsubsys__net__ip.a zephyr/subsys/net/lib/dns/libsubsys__net__lib__dns.a zephyr/subsys/random/libsubsys__random.a zephyr/drivers/usb/device/libdrivers__usb__device.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/spi/libdrivers__spi.a zephyr/drivers/hwinfo/libdrivers__hwinfo.a zephyr/drivers/flash/libdrivers__flash.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/ethernet/libdrivers__ethernet.a zephyr/drivers/entropy/libdrivers__entropy.a zephyr/drivers/timer/libdrivers__timer.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a modules/aqw/lib/codec/lib..__aqw__lib__codec.a modules/aqw/lib/lib..__aqw__lib.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a modules/mbedtls/libmodules__mbedtls.a modules/mcuboot/libmcuboot_util.a modules/zcbor/libmodules__zcbor.a modules/qcbor/lib..__modules__lib__qcbor__zephyr.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a -L"/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/thumb/v7e-m/nofp" -L/Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -no-pie -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -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 -lm -Wl,-lc -L"/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/arm-zephyr-eabi"/lib/thumb/v7e-m/nofp -Wl,-lgcc -lc && cd /Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/build/zephyr && /Users/quark11/.zephyrtools/cmake/cmake-3.22.0-macos-universal/CMake.app/Contents/bin/cmake -E echo
/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `rodata' will not fit in region `FLASH'
/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 37060 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /Users/quark11/.zephyrtools/cmake/cmake-3.22.0-macos-universal/CMake.app/Contents/bin/cmake --build /Users/quark11/Documents/aqw-test/demo/ethernet_hub_ble_3.3.0/build
* The terminal process "/usr/local/bin/bash '-c', 'west build -b particle_xenon -p'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.