summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornspsck <teng.jiang94@gmail.com>2023-09-26 19:44:14 +0200
committerDamien George <damien@micropython.org>2024-08-22 12:35:12 +1000
commit6c3dc0c0b09701b83a957368220d9c8bfe40af0a (patch)
tree74bbf7e49039bf2834045953c1b78d477b0d958c
parent20a95b249a439b4dc57da0c2beccac35ec45db76 (diff)
stm32/boards/STM32H7B3I_DK: Fix octo-spi pin configuration.
The original OSPIFLASH settings in the `mpconfigboard.h` contained some mistakes that prevented the firmware from compiling. These are now corrected and the firmware can be built with support for OSPI flash. Note: external storage in OSPI flash is not yet configured on this board. Signed-off-by: nspsck <teng.jiang94@gmail.com>
-rw-r--r--ports/stm32/boards/STM32H7B3I_DK/mpconfigboard.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ports/stm32/boards/STM32H7B3I_DK/mpconfigboard.h b/ports/stm32/boards/STM32H7B3I_DK/mpconfigboard.h
index f742241f7..88786e66d 100644
--- a/ports/stm32/boards/STM32H7B3I_DK/mpconfigboard.h
+++ b/ports/stm32/boards/STM32H7B3I_DK/mpconfigboard.h
@@ -39,20 +39,20 @@
// SMPS configuration
#define MICROPY_HW_PWR_SMPS_CONFIG (PWR_DIRECT_SMPS_SUPPLY)
-#if 0
+#if !MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE
// 512MBit external OSPI flash, used for either the filesystem or XIP memory mapped
#define MICROPY_HW_OSPIFLASH_SIZE_BITS_LOG2 (29)
#define MICROPY_HW_OSPIFLASH_CS (pin_G6)
-#define MICROPY_HW_OSPIFLASH_CLK (pin_B2)
+#define MICROPY_HW_OSPIFLASH_SCK (pin_B2)
#define MICROPY_HW_OSPIFLASH_DQS (pin_C5)
-#define MICROPY_HW_OSPIFLASH_IO0 (pin_P8)
+#define MICROPY_HW_OSPIFLASH_IO0 (pin_D11)
#define MICROPY_HW_OSPIFLASH_IO1 (pin_F9)
#define MICROPY_HW_OSPIFLASH_IO2 (pin_F7)
#define MICROPY_HW_OSPIFLASH_IO3 (pin_F6)
#define MICROPY_HW_OSPIFLASH_IO4 (pin_C1)
#define MICROPY_HW_OSPIFLASH_IO5 (pin_H3)
-#define MICROPY_HW_OSPIFLASH_IO6 (pin_D6)
-#define MICROPY_HW_OSPIFLASH_IO7 (pin_G14)
+#define MICROPY_HW_OSPIFLASH_IO6 (pin_G9)
+#define MICROPY_HW_OSPIFLASH_IO7 (pin_D7)
#endif
// UART buses