stmhal: Add debug capability to print out info about a hard fault.
stmhal: Add debug capability to print out info about a hard fault.

Capability is #if'd off by default.

Thanks to Dave Hylands for the patch.

praemdonck/micropython,ericsnowcurrently/micropython,lowRISC/micropython,blazewicz/micropython,tralamazza/micropython,martinribelotta/micropython,chrisdearman/micropython,deshipu/micropython,turbinenreiter/micropython,firstval/micropython,mhoffma/micropython,kerneltask/micropython,AriZuu/micropython,vriera/micropython,selste/micropython,cwyark/micropython,bvernoux/micropython,hiway/micropython,adafruit/circuitpython,EcmaXp/micropython,Peetz0r/micropython-esp32,matthewelse/micropython,utopiaprince/micropython,mhoffma/micropython,deshipu/micropython,infinnovation/micropython,omtinez/micropython,feilongfl/micropython,ahotam/micropython,martinribelotta/micropython,vitiral/micropython,MrSurly/micropython,SHA2017-badge/micropython-esp32,hiway/micropython,emfcamp/micropython,blmorris/micropython,adamkh/micropython,vriera/micropython,dmazzella/micropython,ryannathans/micropython,torwag/micropython,skybird6672/micropython,infinnovation/micropython,adafruit/circuitpython,henriknelson/micropython,ChuckM/micropython,misterdanb/micropython,pozetroninc/micropython,mgyenik/micropython,alex-march/micropython,cnoviello/micropython,kerneltask/micropython,pfalcon/micropython,mpalomer/micropython,dmazzella/micropython,kostyll/micropython,martinribelotta/micropython,toolmacher/micropython,bvernoux/micropython,micropython/micropython-esp32,micropython/micropython-esp32,orionrobots/micropython,supergis/micropython,toolmacher/micropython,SHA2017-badge/micropython-esp32,pozetroninc/micropython,mpalomer/micropython,HenrikSolver/micropython,toolmacher/micropython,tuc-osg/micropython,xyb/micropython,orionrobots/micropython,xyb/micropython,skybird6672/micropython,ahotam/micropython,trezor/micropython,emfcamp/micropython,turbinenreiter/micropython,vitiral/micropython,pozetroninc/micropython,ericsnowcurrently/micropython,Timmenem/micropython,noahwilliamsson/micropython,selste/micropython,Timmenem/micropython,tralamazza/micropython,EcmaXp/micropython,xuxiaoxin/micropython,galenhz/micropython,henriknelson/micropython,puuu/micropython,jmarcelino/pycom-micropython,ernesto-g/micropython,PappaPeppar/micropython,dxxb/micropython,galenhz/micropython,turbinenreiter/micropython,MrSurly/micropython,xhat/micropython,noahchense/micropython,adamkh/micropython,mianos/micropython,lowRISC/micropython,vriera/micropython,heisewangluo/micropython,heisewangluo/micropython,mianos/micropython,rubencabrera/micropython,selste/micropython,chrisdearman/micropython,heisewangluo/micropython,HenrikSolver/micropython,blazewicz/micropython,MrSurly/micropython,jmarcelino/pycom-micropython,lowRISC/micropython,oopy/micropython,swegener/micropython,cwyark/micropython,drrk/micropython,HenrikSolver/micropython,adafruit/micropython,matthewelse/micropython,Timmenem/micropython,turbinenreiter/micropython,ahotam/micropython,danicampora/micropython,dhylands/micropython,galenhz/micropython,Timmenem/micropython,martinribelotta/micropython,xyb/micropython,pfalcon/micropython,rubencabrera/micropython,noahchense/micropython,mgyenik/micropython,rubencabrera/micropython,torwag/micropython,ernesto-g/micropython,ernesto-g/micropython,ChuckM/micropython,AriZuu/micropython,adafruit/micropython,mhoffma/micropython,ryannathans/micropython,henriknelson/micropython,danicampora/micropython,danicampora/micropython,matthewelse/micropython,infinnovation/micropython,mgyenik/micropython,noahwilliamsson/micropython,ryannathans/micropython,chrisdearman/micropython,ruffy91/micropython,Peetz0r/micropython-esp32,feilongfl/micropython,TDAbboud/micropython,redbear/micropython,mpalomer/micropython,trezor/micropython,redbear/micropython,alex-robbins/micropython,misterdanb/micropython,micropython/micropython-esp32,praemdonck/micropython,adafruit/micropython,tobbad/micropython,MrSurly/micropython-esp32,Peetz0r/micropython-esp32,galenhz/micropython,ganshun666/micropython,cloudformdesign/micropython,hosaka/micropython,cnoviello/micropython,drrk/micropython,toolmacher/micropython,alex-robbins/micropython,ruffy91/micropython,alex-robbins/micropython,xyb/micropython,omtinez/micropython,ganshun666/micropython,toolmacher/micropython,dinau/micropython,SHA2017-badge/micropython-esp32,omtinez/micropython,puuu/micropython,oopy/micropython,galenhz/micropython,mpalomer/micropython,mpalomer/micropython,vitiral/micropython,henriknelson/micropython,adamkh/micropython,dxxb/micropython,cloudformdesign/micropython,xuxiaoxin/micropython,noahwilliamsson/micropython,MrSurly/micropython-esp32,micropython/micropython-esp32,puuu/micropython,xhat/micropython,xhat/micropython,xhat/micropython,dmazzella/micropython,firstval/micropython,pfalcon/micropython,oopy/micropython,kostyll/micropython,orionrobots/micropython,kerneltask/micropython,adafruit/circuitpython,jlillest/micropython,dinau/micropython,tuc-osg/micropython,oopy/micropython,tobbad/micropython,bvernoux/micropython,xuxiaoxin/micropython,praemdonck/micropython,torwag/micropython,AriZuu/micropython,rubencabrera/micropython,blmorris/micropython,matthewelse/micropython,ruffy91/micropython,pramasoul/micropython,adamkh/micropython,ahotam/micropython,pramasoul/micropython,ernesto-g/micropython,ryannathans/micropython,selste/micropython,torwag/micropython,chrisdearman/micropython,dhylands/micropython,jmarcelino/pycom-micropython,chrisdearman/micropython,praemdonck/micropython,oopy/micropython,dxxb/micropython,cloudformdesign/micropython,pramasoul/micropython,blazewicz/micropython,alex-robbins/micropython,ceramos/micropython,vriera/micropython,stonegithubs/micropython,AriZuu/micropython,feilongfl/micropython,mgyenik/micropython,puuu/micropython,blazewicz/micropython,heisewangluo/micropython,adafruit/micropython,danicampora/micropython,mhoffma/micropython,orionrobots/micropython,Timmenem/micropython,MrSurly/micropython,xhat/micropython,jlillest/micropython,trezor/micropython,adafruit/circuitpython,feilongfl/micropython,cnoviello/micropython,kostyll/micropython,mianos/micropython,firstval/micropython,SHA2017-badge/micropython-esp32,redbear/micropython,jlillest/micropython,emfcamp/micropython,stonegithubs/micropython,xuxiaoxin/micropython,drrk/micropython,ceramos/micropython,emfcamp/micropython,hosaka/micropython,HenrikSolver/micropython,danicampora/micropython,pozetroninc/micropython,misterdanb/micropython,swegener/micropython,omtinez/micropython,AriZuu/micropython,infinnovation/micropython,MrSurly/micropython-esp32,PappaPeppar/micropython,mianos/micropython,ganshun666/micropython,utopiaprince/micropython,orionrobots/micropython,misterdanb/micropython,tuc-osg/micropython,noahchense/micropython,puuu/micropython,bvernoux/micropython,neilh10/micropython,cloudformdesign/micropython,HenrikSolver/micropython,tobbad/micropython,TDAbboud/micropython,vitiral/micropython,kostyll/micropython,ruffy91/micropython,PappaPeppar/micropython,cwyark/micropython,neilh10/micropython,dxxb/micropython,redbear/micropython,deshipu/micropython,ahotam/micropython,ChuckM/micropython,tuc-osg/micropython,emfcamp/micropython,xyb/micropython,supergis/micropython,alex-march/micropython,noahchense/micropython,skybird6672/micropython,feilongfl/micropython,drrk/micropython,skybird6672/micropython,firstval/micropython,ganshun666/micropython,jlillest/micropython,turbinenreiter/micropython,ceramos/micropython,dmazzella/micropython,ericsnowcurrently/micropython,neilh10/micropython,ceramos/micropython,adafruit/circuitpython,lowRISC/micropython,adamkh/micropython,alex-march/micropython,TDAbboud/micropython,kerneltask/micropython,adafruit/circuitpython,swegener/micropython,PappaPeppar/micropython,utopiaprince/micropython,bvernoux/micropython,noahwilliamsson/micropython,tralamazza/micropython,alex-robbins/micropython,alex-march/micropython,kostyll/micropython,jmarcelino/pycom-micropython,dinau/micropython,MrSurly/micropython,deshipu/micropython,cloudformdesign/micropython,swegener/micropython,dinau/micropython,ericsnowcurrently/micropython,drrk/micropython,torwag/micropython,hosaka/micropython,praemdonck/micropython,pozetroninc/micropython,dinau/micropython,pramasoul/micropython,cnoviello/micropython,dhylands/micropython,firstval/micropython,dhylands/micropython,utopiaprince/micropython,vriera/micropython,blmorris/micropython,TDAbboud/micropython,dhylands/micropython,hiway/micropython,ganshun666/micropython,alex-march/micropython,ryannathans/micropython,blmorris/micropython,matthewelse/micropython,trezor/micropython,dxxb/micropython,cwyark/micropython,pfalcon/micropython,omtinez/micropython,jlillest/micropython,tobbad/micropython,Peetz0r/micropython-esp32,tuc-osg/micropython,EcmaXp/micropython,adafruit/micropython,micropython/micropython-esp32,ericsnowcurrently/micropython,jmarcelino/pycom-micropython,ruffy91/micropython,deshipu/micropython,EcmaXp/micropython,ChuckM/micropython,hosaka/micropython,selste/micropython,supergis/micropython,misterdanb/micropython,tobbad/micropython,pramasoul/micropython,blmorris/micropython,supergis/micropython,SHA2017-badge/micropython-esp32,MrSurly/micropython-esp32,martinribelotta/micropython,stonegithubs/micropython,cnoviello/micropython,ernesto-g/micropython,hiway/micropython,skybird6672/micropython,heisewangluo/micropython,supergis/micropython,rubencabrera/micropython,trezor/micropython,matthewelse/micropython,pfalcon/micropython,infinnovation/micropython,neilh10/micropython,xuxiaoxin/micropython,henriknelson/micropython,ChuckM/micropython,utopiaprince/micropython,stonegithubs/micropython,mgyenik/micropython,hosaka/micropython,cwyark/micropython,PappaPeppar/micropython,stonegithubs/micropython,mianos/micropython,lowRISC/micropython,ceramos/micropython,blazewicz/micropython,MrSurly/micropython-esp32,vitiral/micropython,TDAbboud/micropython,neilh10/micropython,EcmaXp/micropython,tralamazza/micropython,Peetz0r/micropython-esp32,kerneltask/micropython,noahwilliamsson/micropython,swegener/micropython,mhoffma/micropython,redbear/micropython,noahchense/micropython,hiway/micropython