|
14 | 14 | * the License.
|
15 | 15 | */
|
16 | 16 |
|
17 |
| -/* This relatively simplified linker script will work with many ARMv7-M cores |
18 |
| - * that have on-board memory-mapped RAM and FLASH. For more complex projects and |
19 |
| - * devices, it's possible this linker script will not be sufficient as-is. |
| 17 | +/* This relatively simplified linker script will work with many ARMv7-M and |
| 18 | + * ARMv8-M cores that have on-board memory-mapped RAM and FLASH. For more |
| 19 | + * complex projects and devices, it's possible this linker script will not be |
| 20 | + * sufficient as-is. |
20 | 21 | *
|
21 | 22 | * This linker script is likely not suitable for a project with a bootloader.
|
22 | 23 | */
|
23 | 24 |
|
24 | 25 | /* Provide useful error messages when required configurations are not set. */
|
25 | 26 | #ifndef PW_BOOT_VECTOR_TABLE_BEGIN
|
26 |
| -#error "PW_BOOT_VECTOR_TABLE_BEGIN is not defined, and is required to use pw_boot_armv7m" |
| 27 | +#error "PW_BOOT_VECTOR_TABLE_BEGIN is not defined, and is required to use pw_boot_cortex_m" |
27 | 28 | #endif // PW_BOOT_VECTOR_TABLE_BEGIN
|
28 | 29 |
|
29 | 30 | #ifndef PW_BOOT_VECTOR_TABLE_SIZE
|
30 |
| -#error "PW_BOOT_VECTOR_TABLE_SIZE is not defined, and is required to use pw_boot_armv7m" |
| 31 | +#error "PW_BOOT_VECTOR_TABLE_SIZE is not defined, and is required to use pw_boot_cortex_m" |
31 | 32 | #endif // PW_BOOT_VECTOR_TABLE_SIZE
|
32 | 33 |
|
33 | 34 | #ifndef PW_BOOT_FLASH_BEGIN
|
34 |
| -#error "PW_BOOT_FLASH_BEGIN is not defined, and is required to use pw_boot_armv7m" |
| 35 | +#error "PW_BOOT_FLASH_BEGIN is not defined, and is required to use pw_boot_cortex_m" |
35 | 36 | #endif // PW_BOOT_FLASH_BEGIN
|
36 | 37 |
|
37 | 38 | #ifndef PW_BOOT_FLASH_SIZE
|
38 |
| -#error "PW_BOOT_FLASH_SIZE is not defined, and is required to use pw_boot_armv7m" |
| 39 | +#error "PW_BOOT_FLASH_SIZE is not defined, and is required to use pw_boot_cortex_m" |
39 | 40 | #endif // PW_BOOT_FLASH_SIZE
|
40 | 41 |
|
41 | 42 | #ifndef PW_BOOT_RAM_BEGIN
|
42 |
| -#error "PW_BOOT_RAM_BEGIN is not defined, and is required to use pw_boot_armv7m" |
| 43 | +#error "PW_BOOT_RAM_BEGIN is not defined, and is required to use pw_boot_cortex_m" |
43 | 44 | #endif // PW_BOOT_RAM_BEGIN
|
44 | 45 |
|
45 | 46 | #ifndef PW_BOOT_RAM_SIZE
|
46 |
| -#error "PW_BOOT_RAM_SIZE is not defined, and is required to use pw_boot_armv7m" |
| 47 | +#error "PW_BOOT_RAM_SIZE is not defined, and is required to use pw_boot_cortex_m" |
47 | 48 | #endif // PW_BOOT_RAM_SIZE
|
48 | 49 |
|
49 | 50 | #ifndef PW_BOOT_HEAP_SIZE
|
50 |
| -#error "PW_BOOT_HEAP_SIZE is not defined, and is required to use pw_boot_armv7m" |
| 51 | +#error "PW_BOOT_HEAP_SIZE is not defined, and is required to use pw_boot_cortex_m" |
51 | 52 | #endif // PW_BOOT_HEAP_SIZE
|
52 | 53 |
|
53 | 54 | #ifndef PW_BOOT_MIN_STACK_SIZE
|
54 |
| -#error "PW_BOOT_MIN_STACK_SIZE is not defined, and is required to use pw_boot_armv7m" |
| 55 | +#error "PW_BOOT_MIN_STACK_SIZE is not defined, and is required to use pw_boot_cortex_m" |
55 | 56 | #endif // PW_BOOT_MIN_STACK_SIZE
|
56 | 57 |
|
57 | 58 |
|
|
0 commit comments