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
01dd997d554.
ls
1 parent ac4533a commit 88a38c27501a20e9b70c23647c523fc85a14684d
@Lingkai Dong Lingkai Dong authored on 3 Feb 2021
Showing 1 changed file
View
targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/cmsis.h