samples/drivers/soc_flash_nrf: enable nrf9160_pca10090 targets

The patch provides flash offsets appropriate for running
this sample on nrf9160_pac10090 targets.
As that sample is small one, it is done with assumption that image_1
flash partition is empty.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
Andrzej Puzdrowski 2019-04-03 14:57:22 +02:00 committed by Carles Cufí
commit d422d56633
2 changed files with 8 additions and 3 deletions

View file

@ -2,5 +2,5 @@ sample:
name: SoC Flash on NRF52 name: SoC Flash on NRF52
tests: tests:
sample.driver.soc_flash_nrf: sample.driver.soc_flash_nrf:
platform_whitelist: nrf52_pca10040 platform_whitelist: nrf52_pca10040 nrf9160_pca10090 nrf9160_pca10090ns
tags: flash nrf52 tags: flash nrf52

View file

@ -10,8 +10,13 @@
#include <device.h> #include <device.h>
#include <stdio.h> #include <stdio.h>
/* Offset between pages */
#define FLASH_TEST_OFFSET 0x40000 #ifdef CONFIG_TRUSTED_EXECUTION_NONSECURE
#define FLASH_TEST_OFFSET DT_FLASH_AREA_IMAGE_1_NONSECURE_OFFSET
#else
#define FLASH_TEST_OFFSET DT_FLASH_AREA_IMAGE_1_OFFSET
#endif
#define FLASH_PAGE_SIZE 4096 #define FLASH_PAGE_SIZE 4096
#define TEST_DATA_WORD_0 0x1122 #define TEST_DATA_WORD_0 0x1122
#define TEST_DATA_WORD_1 0xaabb #define TEST_DATA_WORD_1 0xaabb