Make interrupt default handler trigger panic mode.
This commit is contained in:
		@@ -36,6 +36,12 @@ void HardFault_Handler(void)
 | 
				
			|||||||
	while (1);
 | 
						while (1);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* Overwrite default handler. Go to panic mode */
 | 
				
			||||||
 | 
					void __int_default_handler(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						panic_mode();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void panic_mode(void)
 | 
					void panic_mode(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	static struct safety_memory_boot_status IN_SECTION(.ccm.bss) boot_status;
 | 
						static struct safety_memory_boot_status IN_SECTION(.ccm.bss) boot_status;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user