Skip to content

Commit

Permalink
Merge pull request #251 from jpconstantineau/nrf52833-updates
Browse files Browse the repository at this point in the history
nRF52833 updates to UF2/memory map for nRF52833 boards
  • Loading branch information
hathach authored Dec 21, 2021
2 parents c0666e4 + 9ced2bc commit 7f912dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/boards/bluemicro_nrf52833/pinconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const uint32_t bootloaderConfig[] =
CFG_MAGIC0, CFG_MAGIC1, // magic
5, 100, // used entries, total entries

204, 0x100000, // FLASH_BYTES = 0x100000
205, 0x40000, // RAM_BYTES = 0x40000
204, 0x80000, // FLASH_BYTES
205, 0x20000, // RAM_BYTES
208, (USB_DESC_VID << 16) | USB_DESC_UF2_PID, // BOOTLOADER_BOARD_ID = USB VID+PID, used for verification when updating bootloader via uf2
209, 0xada52840, // UF2_FAMILY = 0xada52840
210, 0x20, // PINS_PORT_SIZE = PA_32
Expand Down
4 changes: 2 additions & 2 deletions src/boards/pca10100/pinconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const uint32_t bootloaderConfig[] =
CFG_MAGIC0, CFG_MAGIC1, // magic
5, 100, // used entries, total entries

204, 0x100000, // FLASH_BYTES = 0x100000
205, 0x40000, // RAM_BYTES = 0x40000
204, 0x80000, // FLASH_BYTES
205, 0x20000, // RAM_BYTES
208, (USB_DESC_VID << 16) | USB_DESC_UF2_PID, // BOOTLOADER_BOARD_ID = USB VID+PID, used for verification when updating bootloader via uf2
209, 0xada52840, // UF2_FAMILY = 0xada52840
210, 0x20, // PINS_PORT_SIZE = PA_32
Expand Down
6 changes: 5 additions & 1 deletion src/usb/uf2/uf2cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
#define CFG_UF2_FAMILY_BOOT_ID 0xd663823c

#define CFG_UF2_NUM_BLOCKS 0x10109 // just under 32MB
#define CFG_UF2_FLASH_SIZE (1024*1024) // 1 MB
#if defined(NRF52833_XXAA)
#define CFG_UF2_FLASH_SIZE 0x80000 // 512 kB
#else
#define CFG_UF2_FLASH_SIZE (1024*1024) // 1 MB
#endif

// Application Address Space
#define USER_FLASH_START MBR_SIZE // skip MBR included in SD hex
Expand Down

0 comments on commit 7f912dd

Please sign in to comment.