[NANO130] Fix optimization error with NVIC_SetVector/NVIC_GetVector on ARMC6
On ARMC6 with optimization level "-Os", the two functions NVIC_SetVector/NVIC_GetVector
will be translated to illegal instruction for trapping due to NVIC_FLASH_VECTOR_ADDRESS
defined as direct 0. Fixed by defining NVIC_FLASH_VECTOR_ADDRESS as a symbol instead to
avoid such optimization error.
ls
1 parent b21c278 commit fcab48235790da40019c10237805537fc1392e4e
@ccli8 ccli8 authored on 5 May 2019
Showing 2 changed files
View
targets/TARGET_NUVOTON/TARGET_NANO100/device/TOOLCHAIN_IAR/NANO130.icf
View
targets/TARGET_NUVOTON/TARGET_NANO100/device/cmsis_nvic.h