Sony's Developer World forum

    • Home
    • Forum guidelines

    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.

     

     

    script for start applications automatically not working in sdk v2.6.0

    Spresense
    2
    3
    983
    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.
    • M
      mikhailZ last edited by

      Hi
      I am following the steps in https://developer.sony.com/develop/spresense/docs/sdk_tutorials_en.html#_start_up_script
      I am using sdk v2.6.0
      but I don't get the autorun of the application.

      nsh> ls /etc/init.d/rcS
       /etc/init.d/rcS
      nsh> cat /etc/init.d/rcS
      nsh>
      

      (but in sdk v2.3.0 it is worked)

      C 2 Replies Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @mikhailZ last edited by

        @mikhailZ

        Hm... I will try to reproduce this issue using sdk v2.6.0 and get back to you.

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

          Hi @mikhailZ

          Sorry it took me so long to answer.

          In case you're still interested in this subject, I think the documentation of the start up script on the English page is not up to date.
          I'll notify internally so the page can be updated.

          On the meantime, I followed the steps on the japanese page and it worked.
          I'll summarize here the instructions to automatically run the hello example.

          1. Go to spresense/sdk and run
          $ ./tools/config.py exemplos/hello feature/startup_script
          
          $ make
          
          1. Create a new file in the sdk directory and name it init.rc
            In this file write:
          echo Start up hello script
          hello
          
          1. Flash the script to spresense using
          $ ./tools/flash.sh -w init.rc
          
          1. Flash nuttx.spk using
          $ tools/flash.sh -c /dev/ttyUSB0 nuttx.spk
          
          1. Connect to the board and you should see this:
          Run /mnt/spif/init.rc.
          sh [13:100]
          
          NuttShell (NSH) NuttX-10.2.0
          nsh> hello script
          Hello, World!!
          
          1 Reply Last reply Reply Quote
          • First post
            Last post
          Developer World
          Copyright © 2021 Sony Group Corporation. All rights reserved.
          • Contact us
          • Legal