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_PROGNAME
config to a different value.Best Regards,
Kamil Tomaszewski -
Hi @kamiltomaszewski,
Thank you for replay, I changed theEXAMPLES_AUDIO_RECORDER_PROGNAME
inkconfig
asconfig 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/sdk
Run:
$ make menuconfig
Go to
Application Configuration -> Spresense SDK -> Examples -> Audio recorder example -> Program name
Use
< Select >
Change
audio_recorder
toaudio_rec
Use
< Ok >
Use
< Save >
and then< Exit >
Run:
$ make clean $ make
Best Regards,
Kamil Tomaszewski -
Hi @kamiltomaszewski,
This solution did worked, thank you for your time and answer. -