Skip to content

Commit c544f48

Browse files
Define correct size for RAM
This was previously hardcoded to a single value, but is now derived from the STM32 chip-specific header files.
1 parent ef8a828 commit c544f48

File tree

1 file changed

+2
-2
lines changed
  • cores/arduino/avr

1 file changed

+2
-2
lines changed

cores/arduino/avr/io.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
#include "stm32l0xx.h"
2929

30-
#define RAMSTART 0x20000000
31-
#define RAMSIZE (20 * 1024)
30+
#define RAMSTART (SRAM_BASE)
31+
#define RAMSIZE (SRAM_SIZE_MAX)
3232
#define RAMEND (RAMSTART + RAMSIZE - 1)
3333

3434
#if defined(DATA_EEPROM_BASE) && defined(DATA_EEPROM_END)

0 commit comments

Comments
 (0)