Px4 nuttx on pixhawk

Hi guys,
I have been working on px4 autopilot for quite a time now. To have even deeper understanding i wanted to start with bare px4 nuttx, flash it on pixhawk and then add scripts on startup one by one. Could anyone help me about how should i start. Basically i want to start by flashing only nutrx first.

Though I don’t know the solution but an idea is that you delete modules one by one from the full version of PX4 codes until only nuttShell remains. The reverse procedure is what you want maybe.

Yes. I wanted to start with nuttx. Has no one ever worked on this.i am just wondering.