soc: select CONFIG_CPU_CORTEX_M_HAS_VTOR for SAMD2x.

SAMD2x series have available the Optional Vector Table Offset Register
(VTOR). If this option is not selected, SCB->VTOR is not configured
properly and the application hangs if it's located in an offset
different than 0.

Removed select CPU_CORTEX_M from SAMD20, as it's already selected by
select CPU_CORTEX_M0PLUS

Signed-off-by: Miguel A. Borrego <jimjim17@gmail.com>
This commit is contained in:
Miguel A. Borrego 2019-01-11 23:09:11 +01:00 committed by Kumar Gala
commit aea3645817
2 changed files with 2 additions and 1 deletions

View file

@ -5,11 +5,11 @@
config SOC_SERIES_SAMD20
bool "Atmel SAMD20 MCU"
select CPU_CORTEX_M
select CPU_CORTEX_M0PLUS
select SOC_FAMILY_SAM0
select SYS_POWER_LOW_POWER_STATE_SUPPORTED
select CPU_HAS_SYSTICK
select CPU_CORTEX_M_HAS_VTOR
select ASF
help
Enable support for Atmel SAMD20 Cortex-M0+ microcontrollers.

View file

@ -9,6 +9,7 @@ config SOC_SERIES_SAMD21
select SOC_FAMILY_SAM0
select SYS_POWER_LOW_POWER_STATE_SUPPORTED
select CPU_HAS_SYSTICK
select CPU_CORTEX_M_HAS_VTOR
select ASF
help
Enable support for Atmel SAMD21 Cortex-M0+ microcontrollers.