I remember getting this crash in sys error. I remember that I missed a while(1) loop, so after I added that, everything worked fine.