Skip to content

Commit 1a6f5d2

Browse files
plskeggsmbolivar-nordic
authored andcommitted
samples: nrf9160: gnss: integrate with P-GPS partition
Enable using dedicated P-GPS partition instead of requiring reuse of the MCUboot secondary partition, by relying on a new P-GPS library default. If the P-GPS partition in flash is enabled, there is no need to pass the PM_MCUBOOT_SECONDARY_ADDRESS or _SIZE to the init function. Signed-off-by: Pete Skeggs <[email protected]>
1 parent 0cdddff commit 1a6f5d2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

samples/nrf9160/gnss/overlay-pgps.conf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,5 @@ CONFIG_MPU_ALLOW_FLASH_WRITE=y
2929
# P-GPS needs more heap
3030
CONFIG_HEAP_MEM_POOL_SIZE=8192
3131

32-
# MCUBOOT - for partition containing PM_MCUBOOT_SECONDARY_ADDRESS
33-
CONFIG_BOOTLOADER_MCUBOOT=y
34-
CONFIG_IMG_MANAGER=y
35-
CONFIG_MCUBOOT_IMG_MANAGER=y
36-
3732
# Download client library stack size needs to be increased with P-GPS
3833
CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=1280

samples/nrf9160/gnss/src/assistance.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <net/nrf_cloud_agps.h>
1515
#endif /* CONFIG_NRF_CLOUD_AGPS */
1616
#if defined(CONFIG_NRF_CLOUD_PGPS)
17-
#include <pm_config.h>
1817
#include <net/nrf_cloud_pgps.h>
1918
#endif /* CONFIG_NRF_CLOUD_PGPS */
2019

@@ -214,8 +213,9 @@ int assistance_init(struct k_work_q *assistance_work_q)
214213

215214
struct nrf_cloud_pgps_init_param pgps_param = {
216215
.event_handler = pgps_event_handler,
217-
.storage_base = PM_MCUBOOT_SECONDARY_ADDRESS,
218-
.storage_size = PM_MCUBOOT_SECONDARY_SIZE
216+
/* storage is defined by CONFIG_NRF_CLOUD_PGPS_STORAGE */
217+
.storage_base = 0u,
218+
.storage_size = 0u
219219
};
220220

221221
if (nrf_cloud_pgps_init(&pgps_param) != 0) {

0 commit comments

Comments
 (0)