Skip to content

Commit

Permalink
test/subsys/storage/stream_flash: fix build size issue
Browse files Browse the repository at this point in the history
This test uses SoC's flash from offset of 64 KB which might
overlap with executable for a target
(for instance nrf52840dk_nrf52840).
This patch moves this region to 128 KB which solves the issue.

Signed-off-by: Andrzej Puzdrowski <[email protected]>
  • Loading branch information
nvlsianpu authored and carlescufi committed Jan 31, 2022
1 parent e83b074 commit 7adee4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/subsys/storage/stream/stream_flash/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define FLASH_NAME DT_CHOSEN_ZEPHYR_FLASH_CONTROLLER_LABEL

/* so that we don't overwrite the application when running on hw */
#define FLASH_BASE (64*1024)
#define FLASH_BASE (128*1024)
#define FLASH_AVAILABLE (FLASH_SIZE-FLASH_BASE)

static const struct device *fdev;
Expand Down

0 comments on commit 7adee4d

Please sign in to comment.