This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A HardFault handler to make life easier when debugging | |
// See http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0553a/Cihcfefj.html | |
// The smol version | |
void HardFault_Handler(void) { | |
SCB_Type* scb = SCB; | |
(void*)scb; | |
__asm("BKPT #0"); | |
while(1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# A microcode assembler | |
import os | |
import os.path | |
import re | |
import collections | |
import IPython.Shell |