2991 views|5 replies

1237

Posts

66

Resources
The OP
 

[Silicon Labs BG22-EK4108A Bluetooth Development Review] 5. Automatically Create a Serial Printing Project [Copy link]

 

Serial port printing log is one of the commonly used debugging methods. This post attempts to use SSV5 graphical IDE to configure the serial port. The code that the user needs to write in the whole process is almost zero, which is very convenient.

First create a blank project:

Project name and save path

Generated project

Open the serial port

Serial port driver handle name

Configure the serial port

Baud rate, flow control configuration

Serial port pin configuration

Enable STDIO redirection

The following drivers need to be enabled in the end

Finally, add a user code, super simple

If you need to print floating point numbers, you also need to check the support

Effect

Latest reply

mark   Details Published on 2022-5-16 20:57
 
 

6587

Posts

0

Resources
2
 

The serial port printing steps are described very clearly

 
 
 

38

Posts

0

Resources
3
 
This post was last edited by zhang1gong on 2022-1-18 22:22

You can use the "app_log_info" or "app_log_info" function to implement similar functionality, and the software components that need to be configured are similar. In addition, when configuring "IO Stream: USART(vcom)", enable "Convert \n to \r\n" to avoid adding "\r" to the printed text.

See the "soc blinky" example.

 
 
 

1237

Posts

66

Resources
4
 
zhang1gong posted on 2022-1-18 22:20 You can use the "app_log_info" or "app_log_info" function to achieve similar functions. The software components that need to be configured are similar...

 
 
 

7452

Posts

2

Resources
5
 

Good to have pictures, thanks for sharing

Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

1

Posts

0

Resources
6
 

mark

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

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