[riot-notifications] [RIOT-OS/RIOT] stm32f{2, 4, 7}: Initial flashpage support (#15420)

Francisco notifications at github.com
Fri Jan 29 14:29:44 CET 2021


@fjmolinas commented on this pull request.



> +#else
+#define FLASHPAGE_DUAL_BANK             0
+#endif
+
+/* stm32f7 uses single bank with 32KB to 256KB sectors on 2MB devices */
+#if defined(CPU_FAM_STM32F7) && (STM32_FLASHSIZE == (2048 * 2024))
+#define FLASHPAGE_MIN_SECTOR_SIZE       (32 * 1024)
+#else
+#define FLASHPAGE_MIN_SECTOR_SIZE       (16 * 1024)
+#endif
+
+#if FLASHPAGE_DUAL_BANK
+/* Number of "large" sectors + 4 for the small sectors that together equal a
+ * single large sector. Times two to account for the two banks */
+#define FLASHPAGE_NUMOF                 ((STM32_FLASHSIZE / \
+                                         (8 * FLASHPAGE_MIN_SECTOR_SIZE)) + 8)

I think I'm completely off on this comment. I misread the define.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15420#discussion_r566822047
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210129/9d464acc/attachment.htm>


More information about the notifications mailing list