Skip to content

Commit ba4724e

Browse files
bringing changes from braingram
1 parent 05fcc9f commit ba4724e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/usb/uf2/uf2cfg.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,19 @@
1414
#define CFG_UF2_FAMILY_BOOT_ID 0xd663823c
1515

1616
#define CFG_UF2_NUM_BLOCKS 0x10109 // just under 32MB
17-
#define CFG_UF2_FLASH_SIZE (1024*1024) // 1 MB
17+
#if defined(NRF52833_XXAA)
18+
#define CFG_UF2_FLASH_SIZE 0x80000 // 512 kB
19+
#else
20+
#define CFG_UF2_FLASH_SIZE (1024*1024) // 1 MB
21+
#endif
1822

1923
// Application Address Space
2024
#define USER_FLASH_START MBR_SIZE // skip MBR included in SD hex
21-
#define USER_FLASH_END (BOOTLOADER_REGION_START - DFU_APP_DATA_RESERVED)
25+
#if defined(NRF52833_XXAA)
26+
#define USER_FLASH_END 0x2D000
27+
#else
28+
#define USER_FLASH_END 0xAD000
29+
#endif
2230

2331
// Bootloader start address
2432
#define BOOTLOADER_ADDR_START BOOTLOADER_REGION_START

0 commit comments

Comments
 (0)