Yes you can,

Just call the app.....

Create and app. Call it what you like. user_start etc.

Set

CONFIG_USERMAIN_STACKSIZE=1100
CONFIG_USER_ENTRYPOINT="user_start"

Int user_start(int argc, char *argv[])
{
 return ...;
}


CONFIG_USERMAIN_STACKSIZE=1100
CONFIG_USER_ENTRYPOINT="pigs_can_fly "

Int pigs_can_fly (int argc, char *argv[])
{
return ...;
}

-----Original Message-----
From: Gregory Nutt [mailto:spudan...@gmail.com]
Sent: Saturday, May 22, 2021 7:12 AM
To: dev@nuttx.apache.org
Subject: Re: (Standard | Recommended) way to create NuttX applications


> This question is more of a curiosity. Which is the most used, or
> recommended to implement and deploy an application in a NuttX
> environment?
>
> I saw that it is possible to have several applications to be called by
> NuttShell, and you can set applications to run when NuttShell starts.
>
> It is also possible to have a standalone application without NutShell.
>
> Is there any recommended approach?

No, NuttX is an OS.  You can setup your applications in any that you
would like.

PX4 uses an NSH startup script to bring up their system.

Reply via email to