Skip to content

Commit

Permalink
Fix emulated EEPROM start address on STM32F303 (qmk#3819)
Browse files Browse the repository at this point in the history
MCU has 254 flash, changed 250 to 254. tested working on a planck rev6
  • Loading branch information
ishtob authored and drashna committed Aug 31, 2018
1 parent be94e5e commit 94f92ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmk_core/common/chibios/eeprom_stm32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94f92ce

Please sign in to comment.