summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPTH <thomas@pth.systems>2021-02-11 15:23:00 +0100
committerDamien George <damien@micropython.org>2021-02-17 10:38:00 +1100
commit6c4a5d185d7e70c22c0f72fb1cd8add251600548 (patch)
tree71bcd9973be2e8f7bf93fd54710283a41f75207b
parent56a36899bdb472d5c2003164079bedeba42fa24d (diff)
zephyr/boards: Add support for the nucleo_h743zi board.
-rw-r--r--ports/zephyr/boards/nucleo_h743zi.conf7
-rw-r--r--ports/zephyr/boards/nucleo_h743zi.overlay23
2 files changed, 30 insertions, 0 deletions
diff --git a/ports/zephyr/boards/nucleo_h743zi.conf b/ports/zephyr/boards/nucleo_h743zi.conf
new file mode 100644
index 000000000..942415b79
--- /dev/null
+++ b/ports/zephyr/boards/nucleo_h743zi.conf
@@ -0,0 +1,7 @@
+# disable console subsys to get REPL working
+CONFIG_CONSOLE_SUBSYS=n
+
+# flash config
+CONFIG_FLASH=y
+CONFIG_FLASH_MAP=y
+CONFIG_FLASH_PAGE_LAYOUT=y
diff --git a/ports/zephyr/boards/nucleo_h743zi.overlay b/ports/zephyr/boards/nucleo_h743zi.overlay
new file mode 100644
index 000000000..f5e6d4f92
--- /dev/null
+++ b/ports/zephyr/boards/nucleo_h743zi.overlay
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2021 Thomas Popp
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+/* delete the already defined storage partition and create a new and bigger one */
+/delete-node/ &storage_partition;
+
+&flash0 {
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+
+ /* storage slot: 1024 KB in Flash Memory Bank 2 */
+ storage_partition: partition@100000 {
+ label = "storage";
+ reg = <0x00100000 0x100000>;
+ };
+ };
+};