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.

     

     

    Solved How to change command name of an example program

    Spresense
    2
    5
    1187
    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
      MatBen 0 last edited by

      Hi, I cloned an example program for Spresense called "audio_recorder" to a new one "audio_rec",and made few edits to it. I need to change the command for activating the program in nsh shell to be changed from "audio_recorder" to "audio_rec". How can I do that?

      K 1 Reply Last reply Reply Quote
      • K
        KamilTomaszewski DeveloperWorld @MatBen 0 last edited by

        Hi @matben-0,

        You can rename the program by changing your EXAMPLES_AUDIO_RECORDER_PROGNAME config to a different value.

        Best Regards,
        Kamil Tomaszewski

        1 Reply Last reply Reply Quote
        • M
          MatBen 0 last edited by

          Hi @kamiltomaszewski,
          Thank you for replay, I changed the EXAMPLES_AUDIO_RECORDER_PROGNAME in kconfig as

          config EXAMPLES_AUDIO_RECORDER_PROGNAME
          	string "audio_rec"
          	#default "audio_recorder"
          

          also tried

          config EXAMPLES_AUDIO_RECORDER_PROGNAME
          	#string "Program name"
          	default "audio_rec"
          

          but both of them didn't worked.

          K 1 Reply Last reply Reply Quote
          • K
            KamilTomaszewski DeveloperWorld @MatBen 0 last edited by

            Hi @matben-0,

            Try the steps below:

            Navigate to spresense/sdk

            Run:

            $ make menuconfig
            

            Go to Application Configuration -> Spresense SDK -> Examples -> Audio recorder example -> Program name

            Use < Select >

            Change audio_recorder to audio_rec

            Use < Ok >

            Use < Save > and then < Exit >

            Run:

            $ make clean
            $ make
            

            Best Regards,
            Kamil Tomaszewski

            M 1 Reply Last reply Reply Quote
            • M
              MatBen 0 @KamilTomaszewski last edited by

              Hi @kamiltomaszewski,
              This solution did worked, thank you for your time and answer.

              1 Reply Last reply Reply Quote
              • Topic has been marked as solved  M MatBen 0 
              • First post
                Last post
              Developer World
              Copyright © 2021 Sony Group Corporation. All rights reserved.
              • Contact us
              • Legal