Skip to content

Commit 17545c1

Browse files
tomi-fontnashif
authored andcommitted
dts: arm: st: h7: fix flash on M4 board targets
The flash controller is nowadays supported on the M4 core. Add the bank2-flash-size property to the board definitions as required by the STM32 H7 flash driver. Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
1 parent 3a4f868 commit 17545c1

File tree

7 files changed

+3
-34
lines changed

7 files changed

+3
-34
lines changed

dts/arm/st/h7/stm32h745Xi_m4.dtsi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
/delete-node/ &flash0;
1111

1212
/ {
13-
chosen {
14-
/* Flash controller support is not yet supported on M4 core */
15-
/delete-property/ zephyr,flash-controller;
16-
};
17-
1813
cpus {
1914
/delete-node/ cpu@0;
2015
};
@@ -23,6 +18,7 @@
2318
flash-controller@52002000 {
2419
flash1: flash@8100000 {
2520
reg = <0x08100000 DT_SIZE_K(1024)>;
21+
bank2-flash-size = <1024>;
2622
};
2723
};
2824

dts/arm/st/h7/stm32h747Xi_m4.dtsi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
/delete-node/ &flash0;
1111

1212
/ {
13-
chosen {
14-
/* Flash controller support is not yet supported on M4 core */
15-
/delete-property/ zephyr,flash-controller;
16-
};
17-
1813
cpus {
1914
/delete-node/ cpu@0;
2015
};
@@ -23,6 +18,7 @@
2318
flash-controller@52002000 {
2419
flash1: flash@8100000 {
2520
reg = <0x08100000 DT_SIZE_K(1024)>;
21+
bank2-flash-size = <1024>;
2622
};
2723
};
2824

dts/arm/st/h7/stm32h755Xi_m4.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
flash-controller@52002000 {
1919
flash1: flash@8100000 {
2020
reg = <0x08100000 DT_SIZE_K(1024)>;
21+
bank2-flash-size = <1024>;
2122
};
2223
};
2324

samples/drivers/flash_shell/boards/stm32h745i_disco_stm32h745xx_m4.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

samples/drivers/flash_shell/boards/stm32h747i_disco_stm32h747xx_m4.overlay

Lines changed: 0 additions & 3 deletions
This file was deleted.

samples/drivers/flash_shell/sample.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@ tests:
88
- shell
99
filter: CONFIG_FLASH_HAS_DRIVER_ENABLED
1010
platform_exclude:
11-
- nucleo_h745zi_q/stm32h745xx/m4
1211
- stm32h7s78_dk
1312
- gd32f350r_eval
14-
- arduino_portenta_h7/stm32h747xx/m4
15-
- arduino_nicla_vision/stm32h747xx/m4
16-
- arduino_giga_r1/stm32h747xx/m4
17-
- nucleo_h755zi_q/stm32h755xx/m4
1813
harness: keyboard
1914
min_ram: 12
2015
integration_platforms:

tests/subsys/mgmt/mcumgr/fs_mgmt_hash_supported/testcase.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,12 @@ common:
1111
integration_platforms:
1212
- native_sim
1313
platform_exclude:
14-
- arduino_giga_r1/stm32h747xx/m4
15-
- arduino_nicla_vision/stm32h747xx/m4
16-
- arduino_portenta_h7/stm32h747xx/m4
1714
- lpcxpresso51u68
18-
- nucleo_h745zi_q/stm32h745xx/m4
19-
- nucleo_h755zi_q/stm32h755xx/m4
20-
- stm32h747i_disco/stm32h747xx/m4
2115
- lpcxpresso55s69/lpc55s69/cpu1
2216
- mpfs_icicle/polarfire/u54
2317
- mpfs_icicle/polarfire/u54/smp
2418
- mpfs_icicle/polarfire/e51
2519
- apollo4p_evb
26-
- stm32h745i_disco/stm32h745xx/m4
2720
- cyw920829m2evk_02
2821
tests:
2922
mgmt.mcumgr.fs.mgmt.hash.supported.crc32:

0 commit comments

Comments
 (0)