Browse Source

Fix emulated EEPROM start address on STM32F303 (#3819)

MCU has 254 flash, changed 250 to 254. tested working on a planck rev6
pull/3823/head
ishtob 5 years ago
committed by Drashna Jaelre
parent
commit
94f92cedef
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tmk_core/common/chibios/eeprom_stm32.h

+ 1
- 1
tmk_core/common/chibios/eeprom_stm32.h View File

@ -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


Loading…
Cancel
Save