robertobucher / pysimCoder

Block diagram editor and real time code generator for Python
GNU General Public License v3.0
150 stars 32 forks source link

targets: NuttX - register model main() entry point as built-in command. #3

Closed ppisa closed 3 years ago

ppisa commented 3 years ago

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