We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d29a549 commit 150e38eCopy full SHA for 150e38e
cores/arduino/stm32/stm32_eeprom.c
@@ -72,8 +72,10 @@
72
#if defined (STM32F0xx) || defined (STM32F1xx) || defined(STM32L1xx)
73
#ifdef FLASH_BANK2_END
74
#define FLASH_BASE_ADDRESS ((uint32_t)((FLASH_BANK2_END + 1) - FLASH_PAGE_SIZE))
75
-#else
+#elif defined(FLASH_BANK1_END)
76
#define FLASH_BASE_ADDRESS ((uint32_t)((FLASH_BANK1_END + 1) - FLASH_PAGE_SIZE))
77
+#else
78
+#define FLASH_BASE_ADDRESS ((uint32_t)((FLASH_END + 1) - FLASH_PAGE_SIZE))
79
#endif // FLASH_BANK2_END
80
#elif defined (STM32F2xx) || defined (STM32F4xx) || defined (STM32F7xx)
81
#define FLASH_BASE_ADDRESS ((uint32_t)(FLASH_END + 1) - FLASH_PAGE_SIZE)
0 commit comments