|
36 | 36 |
|
37 | 37 | // Max RAM used by SoftDevice. Can be changed when SoftDevice parameters are changed.
|
38 | 38 | // See common.template.ld.
|
| 39 | +#ifndef SOFTDEVICE_RAM_SIZE |
39 | 40 | #define SOFTDEVICE_RAM_SIZE (64*1024)
|
| 41 | +#endif |
40 | 42 |
|
41 | 43 | #ifdef NRF52840
|
42 | 44 | #define MICROPY_PY_SYS_PLATFORM "nRF52840"
|
|
53 | 55 | #define RAM_SIZE (0x20000) // 128 KiB
|
54 | 56 | // Special RAM area for SPIM3 transmit buffer, to work around hardware bug.
|
55 | 57 | // See common.template.ld.
|
| 58 | +#ifndef SPIM3_BUFFER_SIZE |
56 | 59 | #define SPIM3_BUFFER_SIZE (8192)
|
57 | 60 | #endif
|
| 61 | +#endif |
58 | 62 |
|
59 | 63 | #define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1)
|
60 | 64 | #define MICROPY_PY_FUNCTION_ATTRS (1)
|
|
124 | 128 | // Bootloader values from https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/master/src/linker/s140_v6.ld
|
125 | 129 | #define BOOTLOADER_START_ADDR (FLASH_SIZE - BOOTLOADER_SIZE - BOOTLOADER_SETTINGS_SIZE - BOOTLOADER_MBR_SIZE)
|
126 | 130 | #define BOOTLOADER_MBR_SIZE (0x1000) // 4kib
|
| 131 | +#ifndef BOOTLOADER_SIZE |
127 | 132 | #define BOOTLOADER_SIZE (0xA000) // 40kiB
|
| 133 | +#endif |
128 | 134 | #define BOOTLOADER_SETTINGS_START_ADDR (FLASH_SIZE - BOOTLOADER_SETTINGS_SIZE)
|
129 | 135 | #define BOOTLOADER_SETTINGS_SIZE (0x1000) // 4kiB
|
130 | 136 |
|
|
137 | 143 | #define CIRCUITPY_INTERNAL_NVM_START_ADDR (CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_START_ADDR - CIRCUITPY_INTERNAL_NVM_SIZE)
|
138 | 144 |
|
139 | 145 | // 32kiB for bonding, etc.
|
| 146 | +#ifndef CIRCUITPY_BLE_CONFIG_SIZE |
140 | 147 | #define CIRCUITPY_BLE_CONFIG_SIZE (32*1024)
|
| 148 | +#endif |
141 | 149 | #define CIRCUITPY_BLE_CONFIG_START_ADDR (CIRCUITPY_INTERNAL_NVM_START_ADDR - CIRCUITPY_BLE_CONFIG_SIZE)
|
142 | 150 |
|
143 | 151 | // The firmware space is the space left over between the fixed lower and upper regions.
|
|
0 commit comments