<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1431403994979_2708">Hi,</div><div id="yui_3_16_0_1_1431403994979_2709"><br></div><div id="yui_3_16_0_1_1431403994979_2710" dir="ltr">I'm working on bringing up nuttx on the c139. I am running this as I described previously by jumping from 0x2000 to 0x10000 with a small firmware image there and then nuttx is configured to run from flash at 0x10000. I configured nuttx RAM to live at 0x800100 to skip the exception vectors area that the compal loader sets up.<br></div><div id="yui_3_16_0_1_1431403994979_2711" dir="ltr"><br></div><div id="yui_3_16_0_1_1431403994979_2712" dir="ltr">NuttX is coming up somewhat but getting stuck on an unregistered interrupt #21 which seems strange since there are 21 interrupts and I thought they might be 0-based so not sure what's going on here. Was wondering if there was some state that the compal loader setup that is giving me problems or if there is some other issue going on. If anyone has an idea off-hand let me know.</div><div id="yui_3_16_0_1_1431403994979_2804" dir="ltr"><br></div><div id="yui_3_16_0_1_1431403994979_2805" dir="ltr">If I take a DEBUGASSERT() out is when I get the info about irq 21. With the DEBUGASSERT() in it seems I'm trying to do initialization during interrupt handling somehow?  "This API should not be called from interrupt handlers" is the comment near the assert in sem_wait().<br></div><div id="yui_3_16_0_1_1431403994979_2713"><br></div><div dir="ltr" id="yui_3_16_0_1_1431403994979_2806">Attached is a serial log from the phone booting up. I've added a lot of debug logging beyond what is normally in NuttX. I included first a log with DEBUGASSERT() included and then one without.<br></div><div id="yui_3_16_0_1_1431403994979_2714"><br></div><div id="yui_3_16_0_1_1431403994979_2715">Thanks,</div><div id="yui_3_16_0_1_1431403994979_2716">Craig<br></div></div></body></html>