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
-
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?
-
Hi @matben-0,
You can rename the program by changing your
EXAMPLES_AUDIO_RECORDER_PROGNAMEconfig to a different value.Best Regards,
Kamil Tomaszewski -
Hi @kamiltomaszewski,
Thank you for replay, I changed theEXAMPLES_AUDIO_RECORDER_PROGNAMEinkconfigasconfig 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.
-
Hi @matben-0,
Try the steps below:
Navigate to
spresense/sdkRun:
$ make menuconfigGo to
Application Configuration -> Spresense SDK -> Examples -> Audio recorder example -> Program nameUse
< Select >Change
audio_recordertoaudio_recUse
< Ok >Use
< Save >and then< Exit >Run:
$ make clean $ makeBest Regards,
Kamil Tomaszewski -
Hi @kamiltomaszewski,
This solution did worked, thank you for your time and answer. -
Topic has been marked as solved M MatBen 0