Skip to content

Commit b5f3df0

Browse files
FRASTMcarlescufi
authored andcommitted
samples: canopenmode exclude nvs_sector_size above 64K
This commits is restricting the execution of the samples/modules/canopennode to board configuration where the nvs_sector_size is less than 0x10000. When the CONFIG_CANOPENNODE_STORAGE is selected, the settings_subsys_init do not accept nvs_sector_size > UINT16_MAX. Then all the stm32h723/h743/h745/h750 cannot run the sample.modules.canopennode testcase Signed-off-by: Francois Ramu <[email protected]>
1 parent 6ce4a46 commit b5f3df0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

samples/modules/canopennode/README.rst

+6
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ The sample can be built and executed for the STM32F3 Discovery as follows:
9999
Pressing the button labelled ``USER`` will increment the button press counter
100100
object at index ``0x2102`` in the object dictionary.
101101

102+
Building and Running for other STM32 boards
103+
===========================================
104+
The sample cannot run if the <erase-block-size> of the flash-controller exceeds 0x10000.
105+
Typically nucleo_h743zi with erase-block-size = <DT_SIZE_K(128)>;
106+
107+
102108
Building and Running for boards without storage partition
103109
=========================================================
104110
The sample can be built for boards without a flash storage partition by using a different configuration file:

samples/modules/canopennode/sample.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ tests:
1616
filter: dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions") and
1717
dt_chosen_enabled("zephyr,flash-controller") and
1818
CONFIG_FLASH_HAS_DRIVER_ENABLED
19+
platform_exclude: nucleo_h723zg nucleo_h743zi nucleo_h745zi_q nucleo_h753zi
1920
sample.modules.canopennode.program_download:
2021
build_only: true
2122
platform_exclude: native_posix native_posix_64 rcar_h3ulcb_cr7

0 commit comments

Comments
 (0)