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?
You can rename the program by changing your
EXAMPLES_AUDIO_RECORDER_PROGNAMEconfig to a different value.
Thank you for replay, I changed the
config EXAMPLES_AUDIO_RECORDER_PROGNAME string "audio_rec" #default "audio_recorder"
config EXAMPLES_AUDIO_RECORDER_PROGNAME #string "Program name" default "audio_rec"
but both of them didn't worked.
Try the steps below:
$ make menuconfig
Application Configuration -> Spresense SDK -> Examples -> Audio recorder example -> Program name
< Select >
< Ok >
< Save >and then
< Exit >
$ make clean $ make
This solution did worked, thank you for your time and answer.