Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
User Entrypoint
-
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
https://developer.sony.com/develop/spresense/docs/sdk_developer_guide_en.html#_board_initialization_processDid 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?
-
@Bhalaji-Kharthik
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. -
@CamilaSouza
Project Files
Under USER_ENTRYPOINT I gave "KNN4_main" . -
Hey, @Bhalaji-Kharthik
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