Skip to content

Commit 01dd997

Browse files
urutvaPatater
authored andcommitted
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 <[email protected]>
1 parent db67302 commit 01dd997

File tree

1 file changed

+5
-1
lines changed
  • targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/device

1 file changed

+5
-1
lines changed

targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/device/cmsis.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017-2019 Arm Limited
2+
* Copyright (c) 2017-2020 Arm Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -81,4 +81,8 @@
8181
#warning Not supported compiler type
8282
#endif
8383

84+
#if defined(TARGET_MUSCA_B1)
85+
#include "cmsis_nvic.h"
86+
#endif
87+
8488
#endif /*__MUSCA_B1_CMSIS_H__ */

0 commit comments

Comments
 (0)