Hello,
I'm trying to use the zephyr settings module to save bluetooth settings on the nRF9160 DK. I'm using the NCS downstream version of Zephyr. Unfortunately in the most recent version I cannot compile my code anymore and get the error "PM_MCUBOOT_STORAGE_ID" undefined.
To reproduce, simply add the following settings to the latest "ble_lte_gateway" sample:
Fullscreen
1
2
3
4
5
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FCB=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_FCB=y
Compiling it then leads to the following error:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[abc@8adab83ea02f lte_ble_gateway]$ rm -rf build/ && west build -b nrf9160_pca10090ns
source directory: /home/abc/nrf-zephyr/nrf/samples/nrf9160/lte_ble_gateway
build directory: /home/abc/nrf-zephyr/nrf/samples/nrf9160/lte_ble_gateway/build (created)
BOARD: nrf9160_pca10090ns (origin: command line)
-- Using application from '/home/abc/nrf-zephyr/nrf/samples/nrf9160/lte_ble_gateway'
Zephyr version: 1.14.99
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.8", minimum required is "3.4")
-- Selected BOARD nrf9160_pca10090ns
-- Found west: /usr/local/bin/west (found suitable version "0.5.8", minimum required is "0.5.6")
-- Cache files will be written to: /home/abc/.cache/zephyr
-- Loading /home/abc/nrf-zephyr/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
-- Overlaying /home/abc/nrf-zephyr/zephyr/dts/common/common.dts
-- Overlaying /home/abc/nrf-zephyr/nrf/samples/nrf9160/lte_ble_gateway/nrf9160_pca10090ns.overlay
nrf9160_pca10090ns.dts.pre.tmp:125.18-131.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/uart@a000: duplicate unit-address (also used in node /soc/peripheral@40000000/i2c@a000)
also defined at nrf9160_pca10090ns.dts.pre.tmp:518.8-525.3
nrf9160_pca10090ns.dts.pre.tmp:269.19-275.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000)
Parsing Kconfig tree in /home/abc/nrf-zephyr/nrf/samples/nrf9160/lte_ble_gateway/Kconfig
Loaded configuration '/home/abc/nrf-zephyr/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns_defconfig'
Merged configuration '/home/abc/nrf-zephyr/nrf/samples/nrf9160/lte_ble_gateway/prj.conf'
Configuration saved to '/home/abc/nrf-zephyr/nrf/samples/nrf9160/lte_ble_gateway/build/zephyr/.config'
-- The C compiler identification is GNU 7.3.1
This is the same problem that I have in my code base. This is not surprising to me since, searching through the source tree, I am unable to find where "PM_MCUBOOT_STORAGE_ID" should be defined.
Please tell me what I am missing or how to fix this.
I am working with the following versions:
Fullscreen
1
2
3
4
5
6
zephyr a8933a2ead01db56a3d3828d81887535be8b5bda
nrf f88b4bd4ed84b52ea69f9c231f705af993486a4b
nrfxlib 9e46730fdfbcdb59ce116b460a48ddcc1acac6b3
mcuboot 951bb3644c85c7e30c3a93fc4408c69a06978711
gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (GNU Tools for Arm Embedded Processors 7-2018-q2-update)