Sony's Developer World forum

    • Search
    • Home
    • Forum guidelines

    Solved How to change command name of an example program

    Spresense
    2
    5
    98
    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
              • Cookies
              • Legal