Quite a few drivers use this deprecated macro. For example bme280.
It was OK on ncs v1.4 but throwing warning on v1.5
Solution?
Quite a few drivers use this deprecated macro. For example bme280.
It was OK on ncs v1.4 but throwing warning on v1.5
Solution?
I'm not able to reproduce this. I did the following
$ west build -b nrf9160dk_nrf9160ns
-- west build: generating a build system
Including boilerplate (Zephyr base): C:/Users/Simon/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280
-- Using NCS Toolchain 1.5.0 for building. (C:/Users/Simon/ncs/v1.5.0/toolchain/cmake)
-- Zephyr version: 2.4.99 (C:/Users/Simon/ncs/v1.5.0/zephyr)
-- Found Python3: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160ns, Revision: 0.7.0
-- Cache files will be written to: C:/Users/Simon/ncs/v1.5.0/zephyr/.cache
-- Found dtc: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/Simon/ncs/v1.5.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
-- Found devicetree overlay: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/boards/nrf9160dk_nrf9160ns.overlay
-- Generated zephyr.dts: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/zephyr/include/generated/device_extern.h
Parsing C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/Kconfig
Loaded configuration 'C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig'
Merged configuration 'C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_0_7_0.conf'
Merged configuration 'C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/prj.conf'
Configuration saved to 'C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/zephyr/.config'
Kconfig header saved to 'C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
Changed board to secure nrf9160dk_nrf9160 (NOT NS)
=== child image spm - begin ===
Including boilerplate (Zephyr base): C:/Users/Simon/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/Simon/ncs/v1.5.0/nrf/samples/spm
-- Using NCS Toolchain 1.5.0 for building. (C:/Users/Simon/ncs/v1.5.0/toolchain/cmake)
-- Zephyr version: 2.4.99 (C:/Users/Simon/ncs/v1.5.0/zephyr)
-- Found Python3: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160, Revision: 0.7.0
-- Cache files will be written to: C:/Users/Simon/ncs/v1.5.0/zephyr/.cache
-- Found dtc: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/Simon/ncs/v1.5.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
-- Found devicetree overlay: C:/Users/Simon/ncs/v1.5.0/nrf/samples/spm/nrf9160dk_nrf9160.overlay
-- Generated zephyr.dts: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/include/generated/device_extern.h
Parsing C:/Users/Simon/ncs/v1.5.0/zephyr/Kconfig
Loaded configuration 'C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
Merged configuration 'C:/Users/Simon/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_0_7_0.conf'
Merged configuration 'C:/Users/Simon/ncs/v1.5.0/nrf/samples/spm/prj.conf'
Merged configuration 'C:/Users/Simon/ncs/v1.5.0/nrf/samples/spm/boards/nrf9160dk_nrf9160.conf'
Merged configuration 'C:/Users/Simon/ncs/v1.5.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration 'C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/.config'
Kconfig header saved to 'C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Simon/ncs/v1.5.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build/spm
=== child image spm - end ===
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Simon/ncs/v1.5.0/zephyr/samples/sensor/bme280/build
-- west build: building application
[5/165] Performing build step for 'spm_subimage'
[196/201] Linking C executable zephyr\zephyr_prebuilt.elf
Memory region Used Size Region Size %age Used
FLASH: 32 KB 48 KB 66.67%
SRAM: 8648 B 64 KB 13.20%
IDT_LIST: 72 B 2 KB 3.52%
[201/201] Linking C executable zephyr\zephyr.elf
[159/165] Linking C executable zephyr\zephyr_prebuilt.elf
Memory region Used Size Region Size %age Used
FLASH: 30340 B 976 KB 3.04%
SRAM: 6608 B 192 KB 3.36%
IDT_LIST: 104 B 2 KB 5.08%
[165/165] Generating zephyr/merged.hex
Could you tell me how to reproduce it?
Best regards,
Simon
Thx Simon,
Must be something about the board I'm using. I could also build the bme280 example. Needs further investigation.
Regards.