Skip to content

Commit

Permalink
🐛 Fix Flash EEPROM for STM32G0B1CB (MarlinFirmware#25469)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextrical authored and thinkyhead committed Apr 7, 2023
1 parent aae1102 commit 504f09f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/pins/stm32g0/pins_BTT_EBB42_V1_1.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#define FLASH_EEPROM_EMULATION
#endif
#define EEPROM_PAGE_SIZE (0x800UL) // 2K
#define EEPROM_START_ADDRESS (0x0801F800UL)
#define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 1UL)
#define MARLIN_EEPROM_SIZE EEPROM_PAGE_SIZE
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@
#define SERIAL_UART_INSTANCE 4
#endif

#define FLASH_BANK_NUMBER FLASH_BANK_1

// Default pin used for generic 'Serial' instance
// Mandatory for Firmata
#ifndef PIN_SERIAL_RX
Expand Down

0 comments on commit 504f09f

Please sign in to comment.