Skip to content
Permalink
Browse files

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>
  • Loading branch information...
nvlsianpu authored and carlescufi committed Apr 3, 2019
1 parent 2d24ce8 commit d422d566336ae978fab6fe71c26af5b836a2d636
Showing with 8 additions and 3 deletions.
  1. +1 −1 samples/drivers/soc_flash_nrf/sample.yaml
  2. +7 −2 samples/drivers/soc_flash_nrf/src/main.c
@@ -2,5 +2,5 @@ sample:
name: SoC Flash on NRF52
tests:
sample.driver.soc_flash_nrf:
platform_whitelist: nrf52_pca10040
platform_whitelist: nrf52_pca10040 nrf9160_pca10090 nrf9160_pca10090ns
tags: flash nrf52
@@ -10,8 +10,13 @@
#include <device.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 TEST_DATA_WORD_0 0x1122
#define TEST_DATA_WORD_1 0xaabb

0 comments on commit d422d56

Please sign in to comment.
You can’t perform that action at this time.