diff options
author | ishtob <ishtob@gmail.com> | 2018-08-31 16:37:13 +0200 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-08-31 16:37:13 +0200 |
commit | 94f92cedef54403b2d6df9ce7a2715d3c4732378 (patch) | |
tree | 03b1fb1972a64fc904912d8d7f3b45ec362f1384 | |
parent | be94e5e59138e5357632b84734476a574e9f0d1a (diff) | |
download | qmk_firmware-94f92cedef54403b2d6df9ce7a2715d3c4732378.tar.gz qmk_firmware-94f92cedef54403b2d6df9ce7a2715d3c4732378.tar.xz |
Fix emulated EEPROM start address on STM32F303 (#3819)
MCU has 254 flash, changed 250 to 254. tested working on a planck rev6
-rwxr-xr-x | tmk_core/common/chibios/eeprom_stm32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/common/chibios/eeprom_stm32.h b/tmk_core/common/chibios/eeprom_stm32.h index d06d30266..68aa14f6d 100755 --- a/tmk_core/common/chibios/eeprom_stm32.h +++ b/tmk_core/common/chibios/eeprom_stm32.h @@ -48,7 +48,7 @@ #elif defined (MCU_STM32F103RD) #define EEPROM_START_ADDRESS ((uint32_t)(0x8000000 + 384 * 1024 - 2 * EEPROM_PAGE_SIZE)) #elif defined (MCU_STM32F303CC) - #define EEPROM_START_ADDRESS ((uint32_t)(0x8000000 + 250 * 1024 - 2 * EEPROM_PAGE_SIZE)) + #define EEPROM_START_ADDRESS ((uint32_t)(0x8000000 + 256 * 1024 - 2 * EEPROM_PAGE_SIZE)) #else #error "No MCU type specified. Add something like -DMCU_STM32F103RB to your compiler arguments (probably in a Makefile)." #endif |