NVIC causes a hardware fault
https://github.com/szczys/stm32f0-discovery-basic-template/blob/master/Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/TrueSTUDIO/startup_stm32f0xx.s” rel=”external”> https://github.com/szczys/stm32f0-discovery-basic-template/blob/master/Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/TrueSTUDIO/startup_stm32f0xx.s
Found the problem. The startup_stm32.s file was missing vectors and interupt handlers. I compared the AC6 version with ST version and there were quite a few discrepancies. A working example can be found at