target: Include missing `cmsis_nvic.h`

The header `cmsis_nvic.h` defines vector start address in RAM
`NVIC_RAM_VECTOR_ADDRESS` which is used in
`mbed_boot.c:mbed_cpy_nvic()`. But `mbed_boot.c` only includes
`cmsis.h`. Due to this `mbed_cpy_nvic` becomes an empty function and the
vectors don't get relocated to RAM. This causes BusFault error when Mbed
OS tries to update any of the IRQ handlers.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
pull/12955/head
Devaraj Ranganna 2020-05-21 19:31:10 +01:00 committed by Jaeden Amero
parent db67302850
commit 01dd997d55
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2019 Arm Limited
* Copyright (c) 2017-2020 Arm Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -81,4 +81,8 @@
#warning Not supported compiler type
#endif
#if defined(TARGET_MUSCA_B1)
#include "cmsis_nvic.h"
#endif
#endif /*__MUSCA_B1_CMSIS_H__ */