a program is working fine when I run it through spresense_main and nuttx shell but when I change the user entrypoint to the program's main the program gives me errors. What shall I do in this case?
@Bhalaji-Kharthik files aren't being opened when run through user entrypoint
Never tried this but remembered this section in the documentation
Did you do this?
If you change CONFIG_USER_ENTRYPOINT from spresense_main, you need to call boardctl() from your application. /* Initialize apllication */ boardctl(BOARDIOC_INIT, 0);
@jens6151-0-1-1 Thank you for your help! But even after I tried the adding the line my program doesn't work properly on changing user_entrypoint. Especially the files which are opening in the program when I run using SDK aren't opening when I change the user entrypoint and run. Any suggestions on this?
Hm... maybe if I can help out more if I better understand your structure.
Can you tell me how your folder is organized (including file names) and tell me what did you put on the CONFIG_SDK_USER_ENTRYPOINT config.
Under USER_ENTRYPOINT I gave "KNN4_main" .
I'm having some technical issues with my IDE and wasn't able to try and reproduce your structure.
Were you able to solve your issue?
One thing you can try to do instead of changing the SDK entrypoint is using the start-up script as described in https://developer.sony.com/develop/spresense/docs/sdk_tutorials_en.html#_usage_of_start_up_script