Skip to content

Commit 4bc6909

Browse files
finneyjmicrobit-carlos
authored andcommitted
Add static definitions of TOP_OF_FLASH
1 parent a921f7d commit 4bc6909

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

inc/MicroBitConfig.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@
9292
#endif
9393

9494
#ifndef MICROBIT_TOP_OF_FLASH
95-
#define MICROBIT_TOP_OF_FLASH ( MICROBIT_DEFAULT_SCRATCH_PAGE )
95+
#ifdef SOFTDEVICE_PRESENT
96+
#define MICROBIT_TOP_OF_FLASH ( 0x00073000 )
97+
#else
98+
#define MICROBIT_TOP_OF_FLASH ( 0x0007E000 )
99+
#endif
96100
#endif
97101

98102
#ifndef MICROBIT_APP_REGION_END

0 commit comments

Comments
 (0)