I am following this tutorial and have
1. Implemented a Command
static BaseType_t prvTaskStatsCommand( int8_t *pcWriteBuffer,
const int8_t *pcCommandString )
( void ) xWriteBufferLen;
2. created the mapping
static const CLI_Command_Definition_t xDelCommand =
"del <filename>: Deletes <filename> from the disk\r\n",
3. registered with FreeRTOS+CLI
void vRegisterCLICommands( void )
int a = FreeRTOS_CLIRegisterCommand( &xDelCommand );
printf("hello world %i\n", a);
I put vRegisterCLICommands() in main and the printout is "hello world 1", indicating the registration is successful.
Then I tried
in the debug console in MCUXpresso, but abc is not there. This is what I got
Undefined command: "abc". Try "help".
why FreeRTOS_CLIRegisterCommand is not working?
what should I do after register the command with FreeRTOS_CLI?