Skip to content

Commit 88a38c2

Browse files
committed
Musca S1: include missing cmsis_nvic.h
The vector table needs to be copied from ROM to RAM, in order for us to set IRQ handlers at run time. The address in RAM is defined by `NVIC_RAM_VECTOR_ADDRESS` in `cmsis_nvic.h`, but its inclusion was missing from Musca S1's `cmsis.h` and consequently the vector table was not copied. On most targets this results in a memory access error when we set vectors. But Musca S1's ROM is in its MRAM (which can be accessed like any RAMs), and this causes the ROM image to be modified with no error/warning. On the next boot, MCUboot fails the image integrity check. This commit adds the missing include, in the same spirit as 01dd997.
1 parent ac4533a commit 88a38c2

File tree

1 file changed

+3
-1
lines changed
  • targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device

1 file changed

+3
-1
lines changed

targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/cmsis.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017-2019 Arm Limited. All rights reserved.
2+
* Copyright (c) 2017-2021 Arm Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -83,4 +83,6 @@
8383
#warning Not supported compiler type
8484
#endif
8585

86+
#include "cmsis_nvic.h"
87+
8688
#endif /*__MUSCA_S1_CMSIS_H__ */

0 commit comments

Comments
 (0)