Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 89e08d2

Browse filesBrowse files
authored
EEPROM emulation: wrong flash sector used for some F7 variants (#938)
Default configuration for F76xx and F77xx chip is single bank. But HAL define FLASH_SECTOR_TOTAL doesn't represent the real number of sector, instead, it represents the maximum number of sectors (for single and dual bank). So for variants using F76xx and F77xx chip, we must define FLASH_BASE_ADDRESS and FLASH_DATA_SECTOR in order to use the last sector of the flash corresponding to the default single bank configuration. Variants concerned: NUCLEO_F767ZI and REMRAM Fixes #297
1 parent 489e74a commit 89e08d2
Copy full SHA for 89e08d2

File tree

2 files changed

+10
-0
lines changed
Filter options

2 files changed

+10
-0
lines changed

‎variants/NUCLEO_F767ZI/variant.h

Copy file name to clipboardExpand all lines: variants/NUCLEO_F767ZI/variant.h
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ extern "C" {
147147
#define HAL_DAC_MODULE_ENABLED
148148
#define HAL_ETH_MODULE_ENABLED
149149

150+
// Last Flash sector used for EEPROM emulation, address/sector depends on single/dual bank configuration.
151+
// By default 2MB single bank
152+
#define FLASH_BASE_ADDRESS 0x081C0000
153+
#define FLASH_DATA_SECTOR 11
154+
150155
#ifdef __cplusplus
151156
} // extern "C"
152157
#endif

‎variants/REMRAM_V1/variant.h

Copy file name to clipboardExpand all lines: variants/REMRAM_V1/variant.h
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ extern "C"
172172
/* HAL configuration */
173173
#define HSE_VALUE 24000000U
174174

175+
// Last Flash sector used for EEPROM emulation, address/sector depends on single/dual bank configuration.
176+
// By default 2MB single bank
177+
#define FLASH_BASE_ADDRESS 0x081C0000
178+
#define FLASH_DATA_SECTOR 11
179+
175180
#ifdef __cplusplus
176181
} // extern "C"
177182
#endif

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.