Sony's Developer World forum

    • Home
    • Forum guidelines

    User Entrypoint

    Spresense
    3
    7
    1166
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Bhalaji Kharthik last edited by Bhalaji Kharthik

      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?

      B 1 Reply Last reply Reply Quote
      • B
        Bhalaji Kharthik @Bhalaji Kharthik last edited by

        @Bhalaji-Kharthik files aren't being opened when run through user entrypoint

        J 1 Reply Last reply Reply Quote
        • J
          jens 0 1 1 @Bhalaji Kharthik last edited by

          @Bhalaji-Kharthik

          Never tried this but remembered this section in the documentation
          https://developer.sony.com/develop/spresense/docs/sdk_developer_guide_en.html#_board_initialization_process

          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);
          
          B 1 Reply Last reply Reply Quote
          • B
            Bhalaji Kharthik @jens 0 1 1 last edited by

            @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?

            C 1 Reply Last reply Reply Quote
            • C
              CamilaSouza DeveloperWorld @Bhalaji Kharthik last edited by

              @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.

              B 1 Reply Last reply Reply Quote
              • B
                Bhalaji Kharthik @CamilaSouza last edited by

                @CamilaSouza
                Project Files
                Screenshot from 2022-07-27 16-29-58.png
                Under USER_ENTRYPOINT I gave "KNN4_main" .

                C 1 Reply Last reply Reply Quote
                • C
                  CamilaSouza DeveloperWorld @Bhalaji Kharthik last edited by

                  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

                  1 Reply Last reply Reply Quote
                  • First post
                    Last post
                  Developer World
                  Copyright © 2021 Sony Group Corporation. All rights reserved.
                  • Contact us
                  • Legal