Skip to content

Commit

Permalink
boards: arm: thingy91: Add option to disable pre-defined layout
Browse files Browse the repository at this point in the history
Allow using none of the pre-defined static partition layouts for
thingy:91. This allows the application to use a dynamic layout or
define a custom static partition layout for the application.

Signed-off-by: Gregers Gram Rygg <gregers.gram.rygg@nordicsemi.no>
  • Loading branch information
gregersrygg authored and rlubos committed Dec 12, 2023
1 parent ad0c748 commit d3365b5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion boards/arm/thingy91_nrf9160/Kconfig.board
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ config BOARD_THINGY91_NRF9160_NS
if BOARD_THINGY91_NRF9160_NS

choice
prompt "Thingy:91 partition layout"
prompt "Pre-defined Thingy:91 partition layout"
default THINGY91_STATIC_PARTITIONS_SECURE_BOOT if SECURE_BOOT
default THINGY91_STATIC_PARTITIONS_LWM2M_CARRIER if LWM2M_CARRIER
default THINGY91_STATIC_PARTITIONS_FACTORY
Expand All @@ -42,6 +42,14 @@ config THINGY91_STATIC_PARTITIONS_LWM2M_CARRIER
help
Use a partition layout including a storage partition needed for the lwm2m carrier library.

config THINGY91_NO_PREDEFINED_LAYOUT
bool "None [EXPERIMENTAL]"
select EXPERIMENTAL
help
Disable pre-defined static partition layout. This allows the application to use a dynamic
layout or define a custom static partition layout for the application. A debugger is
needed to flash Thingy:91 with a different partition layout.

endchoice

endif # BOARD_THINGY91_NRF9160_NS
Expand Down
4 changes: 4 additions & 0 deletions doc/nrf/device_guides/working_with_nrf/nrf91/thingy91.rst
Original file line number Diff line number Diff line change
Expand Up @@ -655,3 +655,7 @@ Configure the partition layout using one of the following configuration options:
A debugger is needed to program Thingy:91 for the first time.
This is an :ref:`experimental <software_maturity>` feature.
* :kconfig:option:`CONFIG_THINGY91_STATIC_PARTITIONS_LWM2M_CARRIER` - This option uses a partition layout, including a storage partition needed for the :ref:`liblwm2m_carrier_readme` library.
* :kconfig:option:`CONFIG_THINGY91_NO_PREDEFINED_LAYOUT` - Enabling this option disables Thingy:91 pre-defined static partitions.
This allows the application to use a dynamic layout or define a custom static partition layout for the application.
A debugger is needed to program Thingy:91 for the first time.
This is an :ref:`experimental <software_maturity>` feature.

0 comments on commit d3365b5

Please sign in to comment.