Skip to content

Commit 7008762

Browse files
updated as per hathach comments
1 parent de1d6b4 commit 7008762

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/boards/bluemicro_nrf52833/pinconfig.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const uint32_t bootloaderConfig[] =
88
CFG_MAGIC0, CFG_MAGIC1, // magic
99
5, 100, // used entries, total entries
1010

11-
204, 0x80000, // FLASH_BYTES = 0x100000/2=0x80000
12-
205, 0x20000, // RAM_BYTES = 0x40000/2=0x20000
11+
204, 0x80000, // FLASH_BYTES
12+
205, 0x20000, // RAM_BYTES
1313
208, (USB_DESC_VID << 16) | USB_DESC_UF2_PID, // BOOTLOADER_BOARD_ID = USB VID+PID, used for verification when updating bootloader via uf2
1414
209, 0xada52840, // UF2_FAMILY = 0xada52840
1515
210, 0x20, // PINS_PORT_SIZE = PA_32

src/usb/uf2/uf2cfg.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222

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

3127
// Bootloader start address
3228
#define BOOTLOADER_ADDR_START BOOTLOADER_REGION_START

0 commit comments

Comments
 (0)