mirror of
				https://github.com/thelsing/knx.git
				synced 2025-10-26 10:26:25 +01:00 
			
		
		
		
	RP2040 EEPROM/Flash compiler flag fix (#216)
* RP2040 EEPROM/Flash compiler flag fix only check flash size if Flash is used, not EEPROM * 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) * Update rp2040_arduino_platform.h
This commit is contained in:
		
							parent
							
								
									5b48f21f53
								
							
						
					
					
						commit
						a0134e6cfb
					
				@ -35,6 +35,7 @@ A RAM-buffered Flash can be use by defining USE_RP2040_LARGE_EEPROM_EMULATION
 | 
			
		||||
 | 
			
		||||
#define FLASHPTR ((uint8_t*)XIP_BASE + KNX_FLASH_OFFSET)
 | 
			
		||||
 | 
			
		||||
#ifndef USE_RP2040_EEPROM_EMULATION
 | 
			
		||||
#if KNX_FLASH_SIZE%4096
 | 
			
		||||
#error "KNX_FLASH_SIZE must be multiple of 4096"
 | 
			
		||||
#endif
 | 
			
		||||
@ -42,6 +43,7 @@ A RAM-buffered Flash can be use by defining USE_RP2040_LARGE_EEPROM_EMULATION
 | 
			
		||||
#if KNX_FLASH_OFFSET%4096
 | 
			
		||||
#error "KNX_FLASH_OFFSET must be multiple of 4096"
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef KNX_SERIAL
 | 
			
		||||
#define KNX_SERIAL Serial1
 | 
			
		||||
 | 
			
		||||
@ -4,10 +4,12 @@
 | 
			
		||||
 | 
			
		||||
#ifdef ARDUINO_ARCH_RP2040
 | 
			
		||||
 | 
			
		||||
#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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user