1155 views|4 replies

410

Posts

3

Resources
The OP
 

【MSPM0L1306 LaunchPad】Add FinSH component to rt-thread_nano system [Copy link]

 This post was last edited by TL-LED on 2023-10-18 14:32

Add FinSH component based on the previous article https://en.eeworld.com/bbs/thread-1259877-1-1.html .

1. Add serial port driver

1.1. Enable the serial port

1.2. Modify the serial port driver

Modify board.c as follows

Modify serial port initialization

Modify the print output function

1.3、main.c

#include "ti_msp_dl_config.h"
#include "led/led.h"
#include "rtthread.h"

int main(void)
{
	while (1) 
	{
		led1_r_tog();
		rt_thread_mdelay(100);
		led2_g_tog();
		rt_thread_mdelay(100);
		rt_kprintf("HELLO MSPM0L1306!\n");
	}
}

2. Test serial port printing

Serial port output

3. Add FinSH components

3.1. Add FinSH component in IDE

3.2. Add header files

3.3. Modify the input function

4. Operation Results

Run serial port operation

This post is from MSPM0 MCU

Latest reply

What is the FinSH component added by the rt-thread_nano system used for?   Details Published on 2023-10-19 08:59
 
 

1663

Posts

0

Resources
2
 

Serial port initialization is a must

This post is from MSPM0 MCU
 
 
 

6027

Posts

6

Resources
3
 

What is the FinSH component added by the rt-thread_nano system used for?

This post is from MSPM0 MCU

Comments

Used for command line calls, debugging or viewing system information, etc.  Details Published on 2023-10-19 10:11
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 
 

410

Posts

3

Resources
4
 
Qintianqintian0303 posted on 2023-10-19 08:59 What is the FinSH component added by rt-thread_nano system used for?

Used for command line calls, debugging or viewing system information, etc.

This post is from MSPM0 MCU
 
 
 

410

Posts

3

Resources
5
 
Test source code: mspm0l1306_rt_thread_nano_prj.rar (22.75 MB, downloads: 5)
This post is from MSPM0 MCU
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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