Hello world :-) I have some in-development question that could probably go to DOC/FAQ as I found some questions/answers there already :-) Any hints appreciated. Also the logic / approach errors and valid solution propositions welcome :-) :-)
1. Daemon / Service: 1.1. I would like to have application running as daemon in the background all the time. Is this possible? 1.2. On application error / crash I would like the application to restart so it is always available. Is this possible? 1.3. There is a Watchdog in NuttX. Who feeds the watchdog? Is it possible that there are two watchdogs: one for the OS and second for the Application? In case of either system / application crash the system should be rebooted by one of the watchdogs. Is this possible? 1.4. Is it possible to call the nsh as sub-process from within my application so the application keeps feeding the watchdog? 1.5. If the timing is important should I rather keep my application in the foreground and abandon the idea of a daemon? 2. Sim -> HW. 2.1.. I would like to develop my application first on the Simulator, and then when its working at some point I would like to port is to the real hardware. How my firmware could know what Arch is it currently running on? 2.2. On Sim I would like to produce log messages, while on the real Hardware driver actions should be performed. What would be the best way to achieve that? Is is possible to determine hardware / arch at runtime? Should I use #ifded CONFIG_BLAH macros to attach driver code when real hardware is selected? 2.3. I can see that there is GPIO available in the SIM. How can I interact with that gpio from my host OS? Is there sort of additional application to perform such interaction with the simulator application? 3. Out of tree Application / Board / Drivers. 3.1. My current working setup is based on git. I would like to keep all firmware code in my project's repository and external to the NuttX + NuttX-Applications source tree. So that nuttx.git and nuttx-app.git is provided as git submodule on the main project repo. Is this possible? 3.2. I know that Application can be kept out-of-tree if linked to nuttx-apps.git. Should I do the same with Boards and Drivers? 3.3. Is it possible to attach Application / Board / Driver code out-of-tree with no linking? 3.4. Is it possible to provide full path and no non-relative path to nuttx-apps in ./tools/configure.sh? Thanks :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info