summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/system.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/system.c b/firmware/system.c
index f02bbb821d..c9d1c6e153 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -323,12 +323,19 @@ void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */
323 323
324 asm volatile ("sts\tpr,%0" : "=r"(n)); 324 asm volatile ("sts\tpr,%0" : "=r"(n));
325 325
326 /* clear screen */
327 lcd_clear_display ();
328 /* output exception */
326 n = (n - (unsigned)UIE0 - 4)>>2; // get exception or interrupt number 329 n = (n - (unsigned)UIE0 - 4)>>2; // get exception or interrupt number
327 snprintf(str,sizeof(str),"I%02x:%s",n,irqname[n]); 330 snprintf(str,sizeof(str),"I%02x:%s",n,irqname[n]);
328 lcd_puts(0,0,str); 331 lcd_puts(0,0,str);
329 snprintf(str,sizeof(str),"at %08x",pc); 332 snprintf(str,sizeof(str),"at %08x",pc);
330 lcd_puts(0,1,str); 333 lcd_puts(0,1,str);
331 334
335#ifdef HAVE_LCD_BITMAP
336 lcd_update ();
337#endif
338
332 while (1) 339 while (1)
333 { 340 {
334 volatile int i; 341 volatile int i;