【Follow me Season 2 Episode 3】Advanced Task---Sample Program Adds Command Printing Information
[Copy link]
This post was last edited by quansirx on 2024-11-19 23:01
1. Mission Description
Using the EK_RA6M5 sample program, a menu command line is added, and the new command is used to print the development board information or other program processing.
Open the quickstart_ek_ra6m5_ep project in E2 studio
Find the thread creation about menu in main.c
The declaration to open the menu thread is in the menu_thread.c file
Search down
menu_main.c file
The command menu list is defined in the variable s_menu_items
Added command "Show kit Information" to s_menu_items array
And open the kis_display_menu function definition
kis_display_menu function definition
The content of show_display_menu function is consistent with kis_display_menu
The newly added menu command function is not declared. Find the file where the kis_display_menu function is declared and add
External declaration of show_display_menu
extern test_fn show_display_menu(void);
After compiling correctly, start debugging the target board
2. Experimental Results
Open the serial terminal tool
A new command sequence appears in the menu list
Press the number key 2, and the new command will execute normally.
|