Skip to content

Commit e75fd3a

Browse files
committed
minimal/main: Make Cortex-M vector table constant.
1 parent 57b5ee2 commit e75fd3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

minimal/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void Default_Handler(void) {
125125
}
126126
}
127127

128-
uint32_t isr_vector[] __attribute__((section(".isr_vector"))) = {
128+
const uint32_t isr_vector[] __attribute__((section(".isr_vector"))) = {
129129
(uint32_t)&_estack,
130130
(uint32_t)&Reset_Handler,
131131
(uint32_t)&Default_Handler, // NMI_Handler

0 commit comments

Comments
 (0)