From fdf09012d09a34fac4ec67b481b262e7f96e9a6d Mon Sep 17 00:00:00 2001 From: Sonnengruesser <36325150+Sonnengruesser@users.noreply.github.com> Date: Sat, 15 Oct 2022 12:28:01 +0200 Subject: [PATCH] RP2040 EEPROM/Flash compiler flag fix use EEPROM emulation as default to allow build of the knx-demo (memory.h defines EEPROM size 1024 which doesn't work with Flashsize 4k) --- src/rp2040_arduino_platform.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rp2040_arduino_platform.h b/src/rp2040_arduino_platform.h index 8a9e7f3..bb4d70a 100644 --- a/src/rp2040_arduino_platform.h +++ b/src/rp2040_arduino_platform.h @@ -4,10 +4,15 @@ #ifdef ARDUINO_ARCH_RP2040 +#define USE_RP2040_EEPROM_EMULATION +#warning "using RP2040 EEPROM emulation" + +#ifndef USE_RP2040_EEPROM_EMULATION #ifndef KNX_FLASH_OFFSET #define KNX_FLASH_OFFSET 0x180000 // 1.5MiB #pragma warning "KNX_FLASH_OFFSET not defined, using 0x180000" #endif +#endif #ifdef USE_RP2040_LARGE_EEPROM_EMULATION #define USE_RP2040_EEPROM_EMULATION