File tree Expand file tree Collapse file tree 23 files changed +27
-53
lines changed
TOOLCHAIN_GCC_ARM/TARGET_MAX32625NEXPAQ Expand file tree Collapse file tree 23 files changed +27
-53
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ LR_IROM1 0x00000000 0x40000 { ; load region size_region
19
19
.ANY (+RO)
20
20
}
21
21
22
- ; [RAM] Vector table dynamic copy: 79 vectors * 4 bytes = (0x140) - alignment
23
- RW_IRAM1 (0x20000000+0x140) (0x8000-0x140-Stack_Size) { ; RW data
22
+ RW_IRAM1 (0x20000000) (0x8000-Stack_Size) { ; RW data
24
23
.ANY (+RW +ZI)
25
24
}
26
25
ARM_LIB_STACK (0x20000000+0x8000) EMPTY -Stack_Size { ; stack
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ define symbol __intvec_start__ = 0x0;
3
3
define symbol __region_ROM_start__ = 0x0;
4
4
define symbol __region_ROM_end__ = 0x0003FFFF;
5
5
6
- /* [RAM] Vector table dynamic copy: 79 vectors * 4 bytes = 316 bytes (0x13C) */
7
- define symbol __NVIC_start__ = 0x00000000;
8
- define symbol __NVIC_end__ = 0x00000140; /* to be aligned on 8 bytes */
6
+ /* [RAM] */
9
7
define symbol __region_RAM_start__ = 0x20000000;
10
8
define symbol __region_RAM_end__ = 0x20007FFF;
11
9
Original file line number Diff line number Diff line change 37
37
extern void (* ramVectorTable [MXC_IRQ_COUNT ])(void );
38
38
39
39
#define NVIC_NUM_VECTORS (MXC_IRQ_COUNT)
40
- #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable) // Vectors positioned at start of RAM
40
+ #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable)
41
41
42
42
#endif /* MBED_CMSIS_NVIC_H */
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ LR_IROM1 0x00000000 0x40000 { ; load region size_region
19
19
.ANY (+RO)
20
20
}
21
21
22
- ; [RAM] Vector table dynamic copy: 79 vectors * 4 bytes = (0x140) - alignment
23
- RW_IRAM1 (0x20000000+0x140) (0x8000-0x140-Stack_Size) { ; RW data
22
+ RW_IRAM1 (0x20000000) (0x8000-Stack_Size) { ; RW data
24
23
.ANY (+RW +ZI)
25
24
}
26
25
ARM_LIB_STACK (0x20000000+0x8000) EMPTY -Stack_Size { ; stack
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ define symbol __intvec_start__ = 0x0;
3
3
define symbol __region_ROM_start__ = 0x0;
4
4
define symbol __region_ROM_end__ = 0x0003FFFF;
5
5
6
- /* [RAM] Vector table dynamic copy: 79 vectors * 4 bytes = 316 bytes (0x13C) */
7
- define symbol __NVIC_start__ = 0x00000000;
8
- define symbol __NVIC_end__ = 0x00000140; /* to be aligned on 8 bytes */
6
+ /* [RAM] */
9
7
define symbol __region_RAM_start__ = 0x20000000;
10
8
define symbol __region_RAM_end__ = 0x20007FFF;
11
9
Original file line number Diff line number Diff line change 37
37
extern void (* ramVectorTable [MXC_IRQ_COUNT ])(void );
38
38
39
39
#define NVIC_NUM_VECTORS (MXC_IRQ_COUNT)
40
- #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable) // Vectors positioned at start of RAM
40
+ #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable)
41
41
42
42
#endif /* MBED_CMSIS_NVIC_H */
Original file line number Diff line number Diff line change @@ -20,9 +20,7 @@ LR_IROM1 0x00000000 0x200000 { ; load region size_region
20
20
.ANY (+RO)
21
21
}
22
22
23
- ; [RAM] Vector table dynamic copy: 65 vectors * 4 bytes = 260 (0x104) + 4
24
- ; for 8 byte alignment
25
- RW_IRAM1 (0x20000000+0x108) (0x40000-0x108-Stack_Size) { ; RW data
23
+ RW_IRAM1 (0x20000000) (0x40000-Stack_Size) { ; RW data
26
24
.ANY (+RW +ZI)
27
25
}
28
26
ARM_LIB_STACK (0x20000000+0x40000) EMPTY -Stack_Size { ; stack
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ define symbol __intvec_start__ = 0x0;
3
3
define symbol __region_ROM_start__ = 0x0;
4
4
define symbol __region_ROM_end__ = 0x001FFFFF;
5
5
6
- /* [RAM] Vector table dynamic copy: 65 vectors * 4 bytes = 260 (0x104) bytes + 4 for 8 byte align */
7
- define symbol __NVIC_start__ = 0x00000000;
8
- define symbol __NVIC_end__ = 0x00000108; /* to be aligned on 8 bytes */
6
+ /* [RAM] */
9
7
define symbol __region_RAM_start__ = 0x20000000;
10
8
define symbol __region_RAM_end__ = 0x2003FFFF;
11
9
Original file line number Diff line number Diff line change 37
37
extern void (* ramVectorTable [MXC_IRQ_COUNT ])(void );
38
38
39
39
#define NVIC_NUM_VECTORS (MXC_IRQ_COUNT)
40
- #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable) // Vectors positioned at start of RAM
40
+ #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable)
41
41
42
42
#endif /* MBED_CMSIS_NVIC_H */
Original file line number Diff line number Diff line change @@ -20,9 +20,7 @@ LR_IROM1 0x00000000 0x200000 { ; load region size_region
20
20
.ANY (+RO)
21
21
}
22
22
23
- ; [RAM] Vector table dynamic copy: 65 vectors * 4 bytes = 260 (0x104) + 4
24
- ; for 8 byte alignment
25
- RW_IRAM1 (0x20000000+0x108) (0x40000-0x108-Stack_Size) { ; RW data
23
+ RW_IRAM1 (0x20000000) (0x40000-Stack_Size) { ; RW data
26
24
.ANY (+RW +ZI)
27
25
}
28
26
ARM_LIB_STACK (0x20000000+0x40000) EMPTY -Stack_Size { ; stack
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ define symbol __intvec_start__ = 0x0;
3
3
define symbol __region_ROM_start__ = 0x0;
4
4
define symbol __region_ROM_end__ = 0x001FFFFF;
5
5
6
- /* [RAM] Vector table dynamic copy: 65 vectors * 4 bytes = 260 (0x104) bytes + 4 for 8 byte align */
7
- define symbol __NVIC_start__ = 0x00000000;
8
- define symbol __NVIC_end__ = 0x00000108; /* to be aligned on 8 bytes */
6
+ /* [RAM] */
9
7
define symbol __region_RAM_start__ = 0x20000000;
10
8
define symbol __region_RAM_end__ = 0x2003FFFF;
11
9
Original file line number Diff line number Diff line change 46
46
extern void (* ramVectorTable [MXC_IRQ_COUNT ])(void );
47
47
48
48
#define NVIC_NUM_VECTORS (MXC_IRQ_COUNT)
49
- #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable) // Vectors positioned at start of RAM
49
+ #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable)
50
50
51
51
#endif /* _NVIC_TABLE_H */
Original file line number Diff line number Diff line change 1
1
#! armcc -E
2
2
; MAX32625
3
- ; 512KB FLASH (0x70000) @ 0x000010000
4
- ; 160KB RAM (0x24F00 ) @ 0x20003100
3
+ ; 448KB FLASH (0x70000) @ 0x00010000
4
+ ; 147.5KB RAM (0x24E00 ) @ 0x20003200
5
5
6
6
#if !defined(MBED_BOOT_STACK_SIZE)
7
7
#define MBED_BOOT_STACK_SIZE 0x800
@@ -16,10 +16,9 @@ LR_IROM1 0x000010000 0x70000 { ; load region size_region
16
16
.ANY (+RO)
17
17
}
18
18
19
- ; [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110)
20
- RW_IRAM1 (0x20003100+0x110) (0x24F00-0x110-Stack_Size) { ; RW data
19
+ RW_IRAM1 (0x20003200) (0x24E00-Stack_Size) { ; RW data
21
20
.ANY (+RW +ZI)
22
21
}
23
- ARM_LIB_STACK (0x20003100+0x24F00 ) EMPTY -Stack_Size { ; stack
22
+ ARM_LIB_STACK (0x20003200+0x24E00 ) EMPTY -Stack_Size { ; stack
24
23
}
25
24
}
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
24
24
.ANY (+RO)
25
25
}
26
26
27
- ; [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110)
28
- RW_IRAM1 (0x20000000+0x110) (0x28000-0x110-Stack_Size) { ; RW data
27
+ RW_IRAM1 (0x20000000) (0x28000-Stack_Size) { ; RW data
29
28
.ANY (+RW +ZI)
30
29
}
31
30
ARM_LIB_STACK (0x20000000+0x28000) EMPTY -Stack_Size { ; stack
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ LR_IROM1 0x000000000 0x80000 { ; load region size_region
16
16
.ANY (+RO)
17
17
}
18
18
19
- ; [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110)
20
- RW_IRAM1 (0x20000000+0x110) (0x28000-0x110-Stack_Size) { ; RW data
19
+ RW_IRAM1 (0x20000000) (0x28000-Stack_Size) { ; RW data
21
20
.ANY (+RW +ZI)
22
21
}
23
22
ARM_LIB_STACK (0x20000000+0x28000) EMPTY -Stack_Size { ; stack
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ STACK_SIZE = MBED_BOOT_STACK_SIZE;
40
40
MEMORY
41
41
{
42
42
FLASH (rx) : ORIGIN = 0x00010000, LENGTH = 0x00070000
43
- RAM (rwx) : ORIGIN = 0x20003100 , LENGTH = 0x00024F00
43
+ RAM (rwx) : ORIGIN = 0x20003200 , LENGTH = 0x00024E00
44
44
}
45
45
46
46
/* Linker script to place sections and symbol values. Should be used together
Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ define symbol __intvec_start__ = 0x00010000;
3
3
define symbol __region_ROM_start__ = 0x00010000;
4
4
define symbol __region_ROM_end__ = 0x0007FFFF;
5
5
6
- /* [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110) bytes */
7
- define symbol __NVIC_start__ = 0x00010000;
8
- define symbol __NVIC_end__ = 0x00010110; /* to be aligned on 8 bytes */
9
- define symbol __region_RAM_start__ = 0x20003100;
6
+ /* [RAM] */
7
+ define symbol __region_RAM_start__ = 0x20003200;
10
8
define symbol __region_RAM_end__ = 0x20027FFF;
11
9
12
10
/* Memory regions */
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ define symbol __intvec_start__ = MBED_APP_START;
10
10
define symbol __region_ROM_start__ = MBED_APP_START;
11
11
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
12
12
13
- /* [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110) bytes */
14
- define symbol __NVIC_start__ = 0x00010000;
15
- define symbol __NVIC_end__ = 0x00010110; /* to be aligned on 8 bytes */
13
+ /* [RAM] */
16
14
define symbol __region_RAM_start__ = 0x20000000;
17
15
define symbol __region_RAM_end__ = 0x20027FFF;
18
16
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ define symbol __intvec_start__ = 0x00000000;
3
3
define symbol __region_ROM_start__ = 0x00000000;
4
4
define symbol __region_ROM_end__ = 0x0007FFFF;
5
5
6
- /* [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110) bytes */
7
- define symbol __NVIC_start__ = 0x00000000;
8
- define symbol __NVIC_end__ = 0x00000110; /* to be aligned on 8 bytes */
6
+ /* [RAM] */
9
7
define symbol __region_RAM_start__ = 0x20000000;
10
8
define symbol __region_RAM_end__ = 0x20027FFF;
11
9
Original file line number Diff line number Diff line change 37
37
extern void (* ramVectorTable [MXC_IRQ_COUNT ])(void );
38
38
39
39
#define NVIC_NUM_VECTORS (MXC_IRQ_COUNT)
40
- #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable) // Vectors positioned at start of RAM
40
+ #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable)
41
41
42
42
#endif /* MBED_CMSIS_NVIC_H */
43
43
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ LR_IROM1 0x000000000 0x200000 { ; load region size_region
16
16
.ANY (+RO)
17
17
}
18
18
19
- ; [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110)
20
- RW_IRAM1 (0x20000000+0x110) (0x80000-0x110-Stack_Size) { ; RW data
19
+ RW_IRAM1 (0x20000000) (0x80000-Stack_Size) { ; RW data
21
20
.ANY (+RW +ZI)
22
21
}
23
22
ARM_LIB_STACK (0x20000000+0x80000) EMPTY -Stack_Size { ; stack
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ define symbol __intvec_start__ = 0x00000000;
3
3
define symbol __region_ROM_start__ = 0x00000000;
4
4
define symbol __region_ROM_end__ = 0x001FFFFF;
5
5
6
- /* [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110) bytes */
7
- define symbol __NVIC_start__ = 0x00000000;
8
- define symbol __NVIC_end__ = 0x00000110; /* to be aligned on 8 bytes */
6
+ /* [RAM] */
9
7
define symbol __region_RAM_start__ = 0x20000000;
10
8
define symbol __region_RAM_end__ = 0x2007FFFF;
11
9
Original file line number Diff line number Diff line change 46
46
extern void (* ramVectorTable [MXC_IRQ_COUNT ])(void );
47
47
48
48
#define NVIC_NUM_VECTORS (MXC_IRQ_COUNT)
49
- #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable) // Vectors positioned at start of RAM
49
+ #define NVIC_RAM_VECTOR_ADDRESS (ramVectorTable)
50
50
51
51
#endif /* _NVIC_TABLE_H */
You can’t perform that action at this time.
0 commit comments