Skip to content

Commit

Permalink
Store Images on external flash on HW3
Browse files Browse the repository at this point in the history
It also changes the configuration flag to be more
feature dependant instead of HW version.
  • Loading branch information
ldab authored and jakkra committed Aug 5, 2024
1 parent 3ccb8aa commit f7347e1
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -256,4 +256,8 @@ menu "ZSWatch"
rsource "src/applications/trivia/Kconfig"
rsource "src/applications/ppt_remote/Kconfig"
endmenu

menu "UI"
rsource "src/ui/utils/Kconfig"
endmenu
endmenu
2 changes: 2 additions & 0 deletions app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ CONFIG_WATCHFACE_ANALOG=n
CONFIG_WATCHFACE_MINIMAL=n
CONFIG_APPLICATIONS_USE_2048=n
CONFIG_APPLICATIONS_USE_COMPASS=n

CONFIG_STORE_IMAGES_EXTERNAL_FLASH=y
2 changes: 2 additions & 0 deletions app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_4.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y
CONFIG_PM_PARTITION_SIZE_LITTLEFS=0x200000

CONFIG_DEBUG_COREDUMP_BACKEND_OTHER=y

CONFIG_STORE_IMAGES_EXTERNAL_FLASH=y
4 changes: 3 additions & 1 deletion app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_5.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ CONFIG_MISC_ENABLE_SYSTEM_RESET=n # Implemented in nPM, hence not needed in FW

# Save som flash temporary
CONFIG_APPLICATIONS_USE_QR_CODE=n
CONFIG_APPLICATIONS_USE_X_RAY=n
CONFIG_APPLICATIONS_USE_X_RAY=n

CONFIG_STORE_IMAGES_EXTERNAL_FLASH=y
2 changes: 2 additions & 0 deletions app/boards/nrf5340dk_nrf5340_cpuapp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE=0x100000
# how external flash shall be utilized. nRF5340dk has QSPI flash, hence
# similar to rev 4.
CONFIG_ZSWATCH_PCB_REV=4

CONFIG_STORE_IMAGES_EXTERNAL_FLASH=y
2 changes: 2 additions & 0 deletions app/src/ui/utils/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config STORE_IMAGES_EXTERNAL_FLASH
bool "Store UI Images into the External Flash"
2 changes: 1 addition & 1 deletion app/src/ui/utils/zsw_ui_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define CONCATINATE_(a, b) a##b
#define CONCATINATE(a, b) CONCATINATE_(a, b)

#if CONFIG_ZSWATCH_PCB_REV > 3
#if CONFIG_STORE_IMAGES_EXTERNAL_FLASH
#define ZSW_LV_IMG_DECLARE(var_name)
#define ZSW_LV_IMG_USE(var_name) "S:"#var_name".bin"
#else
Expand Down

0 comments on commit f7347e1

Please sign in to comment.