From 6c3dc0c0b09701b83a957368220d9c8bfe40af0a Mon Sep 17 00:00:00 2001 From: nspsck Date: Tue, 26 Sep 2023 19:44:14 +0200 Subject: [PATCH] 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 --- ports/stm32/boards/STM32H7B3I_DK/mpconfigboard.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ports/stm32/boards/STM32H7B3I_DK/mpconfigboard.h b/ports/stm32/boards/STM32H7B3I_DK/mpconfigboard.h index f742241f7f86..88786e66d8d1 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