If you decide you create your own NuttX application based on apps/examples/hello you could eventually face this issue:
CC: my_app_main.c :0:6: error: expected identifier or '(' before numeric constant :0:6: error: expected identifier or '(' before numeric constant my_app_main.c:51:5: note: in expansion of macro 'main' int main(int argc, FAR char *argv) ^ make: *** [/home/alan/apps/Application.mk:189: my_app_main.home.alan.apps.examples.my_app.o] Error 1
This error happens because your PROGNAME defined inside the Kconfig differs from your application name:
string "Program name"
If your PROGNAME is myapp then you need to have apps/examples/myapp/myapp_main.c otherwise it will not work. So don’t my_app for your app directory neither my_app_main.c for your main file, it needs to be myapp_main.c