There are more options how to load and start model.
1) load model_name.elf into generic NuttX system with exported
symbols and start it as regular program
2) modify application entry point in NuttX configuration by change
CONFIG_USER_ENTRYPOINT="nsh_main"
to
CONFIG_USER_ENTRYPOINT="main"
Then compiled and linked system image starts directly linked in model.
3) left entry-point intact and register model as built-in
command into NuttX shell (NSH)
The provided changes implements the registration of the model main()
function as built-in executable "main", which can be started from
NuttX shell by simple typing "main".
There are more options how to load and start model.
1) load model_name.elf into generic NuttX system with exported symbols and start it as regular program
2) modify application entry point in NuttX configuration by change CONFIG_USER_ENTRYPOINT="nsh_main" to CONFIG_USER_ENTRYPOINT="main" Then compiled and linked system image starts directly linked in model.
3) left entry-point intact and register model as built-in command into NuttX shell (NSH)
The provided changes implements the registration of the model main() function as built-in executable "main", which can be started from NuttX shell by simple typing "main".
Signed-off-by: Pavel Pisa ppisa@pikron.com