1common:
2  tags: linker
3tests:
4  application_development.vector_table_relocation.arm:
5    arch_allow: arm
6    filter: CONFIG_CPU_CORTEX_M_HAS_VTOR
7    # Exclude mps3/corstone310 because it uses another mechanism to support relocation
8    # of the vector table (CONFIG_ROMSTART_RELOCATION_ROM).
9    platform_exclude:
10      - mps3/corstone310/an555
11      - mps3/corstone310/fvp
12      - mps4/corstone315/fvp
13      - mps4/corstone320/fvp
14
15  application_development.vector_table_relocation.dtcm:
16    arch_allow: arm
17    # Exclude STM32F4 series due to architectural constraints. STM32F4 CCM is only accessible
18    # over the D-bus but exception vectors are fetched over the I-bus.
19    # As such, the vector table can't be relocated to CCM.
20    filter: CONFIG_CPU_CORTEX_M_HAS_VTOR and dt_chosen_enabled("zephyr,dtcm")
21            and not CONFIG_SOC_SERIES_STM32F4X
22    extra_configs:
23      - CONFIG_ARM_VECTOR_TABLE_DTCM=y
24
25  application_development.vector_table_relocation.itcm:
26    arch_allow: arm
27    filter: CONFIG_CPU_CORTEX_M_HAS_VTOR and dt_chosen_enabled("zephyr,itcm")
28    extra_configs:
29      - CONFIG_ARM_VECTOR_TABLE_ITCM=y
30