|
30 | 30 |
|
31 | 31 | /* ROM sizes */ |
32 | 32 |
|
33 | | -#if defined(THINGY91) |
34 | 33 |
|
35 | | -#define DAPLINK_ROM_BL_START 0x00000000 |
36 | | -#define DAPLINK_ROM_BL_SIZE 0x00013000 |
37 | | - |
38 | | -#define DAPLINK_ROM_IF_START 0x00013000 |
39 | | -#define DAPLINK_ROM_IF_SIZE 0x0002D000 |
40 | | - |
41 | | -#define DAPLINK_ROM_CONFIG_USER_START 0x000FE000 |
42 | | -#define DAPLINK_ROM_CONFIG_USER_SIZE 0x00002000 |
43 | | - |
44 | | -#elif defined(NRF52840DONGLE) |
45 | 34 |
|
46 | 35 | #define DAPLINK_ROM_BL_START 0x00000000 |
47 | | -#define DAPLINK_ROM_BL_SIZE 0x00001000 |
48 | 36 |
|
| 37 | +#if !defined(NRF_SECURE_BOOTLOADER) |
| 38 | + |
| 39 | +#if !defined(NRF_OPEN_BOOTLOADER) |
| 40 | +#define DAPLINK_ROM_BL_SIZE 0x00010000 // 64 KiB DAPLink bootloader |
| 41 | +#define DAPLINK_ROM_IF_START 0x00010000 |
| 42 | +#define DAPLINK_ROM_IF_SIZE 0x0002F000 |
| 43 | +#else // NRF_OPEN_BOOTLOADER |
| 44 | +#define DAPLINK_ROM_BL_SIZE 0x00001000 // 4 KiB MBR |
49 | 45 | #define DAPLINK_ROM_IF_START 0x00001000 |
50 | 46 | #define DAPLINK_ROM_IF_SIZE 0x0003E000 |
| 47 | +#endif |
51 | 48 |
|
52 | 49 | #define DAPLINK_ROM_CONFIG_USER_START 0x0003F000 |
53 | 50 | #define DAPLINK_ROM_CONFIG_USER_SIZE 0x00001000 |
54 | 51 |
|
55 | | -#else |
| 52 | +#else // NRF_SECURE_BOOTLOADER |
56 | 53 |
|
57 | | -#define DAPLINK_ROM_BL_START 0x00000000 |
58 | | -#define DAPLINK_ROM_BL_SIZE 0x00010000 // 64 KiB bootloader |
59 | | - |
60 | | -#define DAPLINK_ROM_IF_START 0x00010000 |
61 | | -#define DAPLINK_ROM_IF_SIZE 0x0002F000 |
| 54 | +#define DAPLINK_ROM_BL_SIZE 0x00013000 // 76 KiB MCUBOOT |
| 55 | +#define DAPLINK_ROM_IF_START 0x00013000 |
| 56 | +#define DAPLINK_ROM_IF_SIZE 0x0002C000 |
62 | 57 |
|
63 | | -#define DAPLINK_ROM_CONFIG_USER_START 0x0003F000 |
| 58 | +#define NON_CONTIGUOUS_USER_CONFIG |
| 59 | +#define DAPLINK_ROM_CONFIG_USER_START 0x000F7000 |
64 | 60 | #define DAPLINK_ROM_CONFIG_USER_SIZE 0x00001000 |
65 | 61 |
|
66 | 62 | #endif |
67 | 63 |
|
| 64 | + |
68 | 65 | /* RAM sizes */ |
69 | 66 |
|
70 | 67 | #define DAPLINK_RAM_APP_START 0x20000000 |
|
82 | 79 |
|
83 | 80 | #if defined(DAPLINK_BL) |
84 | 81 |
|
| 82 | +#if defined(NRF_SECURE_BOOTLOADER) || defined(NRF_OPEN_BOOTLOADER) |
| 83 | +#error "" |
| 84 | +#endif |
| 85 | + |
85 | 86 | #define DAPLINK_ROM_APP_START DAPLINK_ROM_BL_START |
86 | 87 | #define DAPLINK_ROM_APP_SIZE DAPLINK_ROM_BL_SIZE |
87 | 88 | #define DAPLINK_ROM_UPDATE_START DAPLINK_ROM_IF_START |
|
92 | 93 | #define DAPLINK_ROM_APP_START DAPLINK_ROM_IF_START |
93 | 94 | #define DAPLINK_ROM_APP_SIZE DAPLINK_ROM_IF_SIZE |
94 | 95 | #define DAPLINK_ROM_UPDATE_START DAPLINK_ROM_BL_START |
| 96 | +#if !defined(NRF_SECURE_BOOTLOADER) && !defined(NRF_OPEN_BOOTLOADER) |
95 | 97 | #define DAPLINK_ROM_UPDATE_SIZE DAPLINK_ROM_BL_SIZE |
| 98 | +#else |
| 99 | +#define DAPLINK_ROM_UPDATE_SIZE 0 // Disable update |
| 100 | +#endif |
96 | 101 |
|
97 | 102 | #else |
98 | 103 |
|
|
0 commit comments