58 views|0 replies

3

Posts

0

Resources
The OP
 

【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.

This post is from DigiKey Technology Zone
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list