8000 mimxrt/bootloader: Integrates MIMXRT1015. · micropython/micropython@b18898e · GitHub
[go: up one dir, main page]

Skip to content

Commit b18898e

Browse files
committed
mimxrt/bootloader: Integrates MIMXRT1015.
Integrates MIMXRT1015 and handles changes introduced on mainline.
1 parent 09b2f00 commit b18898e

File tree

4 files changed

+20
-25
lines changed

4 files changed

+20
-25
lines changed

ports/mimxrt/boards/MIMXRT1015.ld

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
/* Memory configuration */
2-
#if defined MICROPY_HW_FLASH_RESERVED
2+
#if MICROPY_HW_FLASH_RESERVED
33
reserved_size = MICROPY_HW_FLASH_RESERVED;
44
#endif
55

66
#if MICROPY_HW_FLASH_TYPE == qspi_nor
7-
flash_start = 0x60000000;
7+
flash_start = 0x60000000;
8+
flash_size = MICROPY_HW_FLASH_SIZE;
89
#else
9-
#error Unknown MICROPY_HW_FLASH_TYPE
10+
#error Unknown MICROPY_HW_FLASH_TYPE
1011
#endif
11-
flash_size = MICROPY_HW_FLASH_SIZE;
12-
flash_end = DEFINED(reserved_size) ? ((flash_start) + (flash_size - reserved_size)) : ((flash_start) + (flash_size));
13-
flash_config_start = flash_start;
14-
flash_config_size = 0x00001000;
15-
ivt_start = flash_start + 0x00001000;
16-
ivt_size = 0x00001000;
17-
interrupts_start = flash_start + 0x00002000;
18-
interrupts_size = 0x00000400;
19-
text_start = flash_start + 0x00002400;
20-
vfs_start = flash_start + 0x00100000;
21-
text_size = ((vfs_start) - (text_start));
22-
vfs_size = ((flash_end) - (vfs_start));
12+
2313
itcm_start = 0x00000000;
2414
itcm_size = 0x00008000;
2515
dtcm_start = 0x20000000;
@@ -29,10 +19,3 @@ ocrm_size = 0x00010000;
2919

3020
/* 24kiB stack. */
3121
__stack_size__ = 0x5000;
32-
_estack = __StackTop;
33-
_sstack = __StackLimit;
34-
35-
/* Use second OCRAM bank for GC heap. */
36-
/* Use all OCRAM for the GC heap. */
37-
_gc_heap_start = ORIGIN(m_ocrm);
38-
_gc_heap_end = ORIGIN(m_ocrm) + LENGTH(m_ocrm);

ports/mimxrt/mboot.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ SRC_HAL_IMX_C_BL += \
2727
$(MCU_DIR)/drivers/fsl_flexram.c \
2828
$(MCU_DIR)/drivers/fsl_flexspi.c \
2929
$(MCU_DIR)/drivers/fsl_gpt.c \
30-
$(MCU_DIR)/drivers/fsl_ocotp.c \
3130
$(MCU_DIR)/project_template/clock_config.c \
3231
$(MCU_DIR)/system_$(MCU_SERIES).c \
3332

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* Memory configuration */
2+
#if MICROPY_HW_FLASH_TYPE == qspi_nor
3+
flash_start = 0x60000000;
4+
flash_size = MICROPY_HW_FLASH_SIZE;
5+
#else
6+
#error Unknown MICROPY_HW_FLASH_TYPE
7+
#endif
8+
9+
itcm_start = 0x00000000;
10+
itcm_size = 0x00008000; /* 32KB */
11+
dtcm_start = 0x20000000;
12+
dtcm_size = 0x00008000; /* 32KB */
13+
ocrm_start = 0x20200000;
14+
ocrm_size = 0x00010000; /* 64KB */
15+
ocrm_end = (ocrm_start + ocrm_size);

ports/mimxrt/mboot/mboot_utils.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@
2525
*/
2626

2727
#include "mboot_utils.h"
28-
#include "fsl_ocotp.h"
2928

3029
void mboot_utils_uid(uint8_t uid[]) {
31-
OCOTP_Init(OCOTP, CLOCK_GetFreq(kCLOCK_IpgClk));
3230
*(uint32_t *)&uid[0] = OCOTP->CFG0;
3331
*(uint32_t *)&uid[4] = OCOTP->CFG1;
3432
}

0 commit comments

Comments
 (0)
0