打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Getting Started with pcDuino

Serial Debugging

A very useful feature of the pcDuino is a 3.3V logic-level serial port, which allows access to a root-level terminal session after boot. It also delivers information about the boot process, which can be useful for troubleshooting issues occurring during boot.

Debug serial pins

Connecting to this is simple, and there are many options for doing so. Here, I’ll give you instructions on using an FTDI Basic board, an FTDI cable, or an Arduino-compatible board. You’ll need either some female-male jumper wires or (second best option) some male header pins and female-female jumper wires.

FTDI Basic

FTDI Basic connection

The FTDI Basic connection is easy, since the pins on the FTDI Basic board are labeled.

FTDI Cable

FTDI cable connection

The FTDI cable has no label on the connector, but the pinout is (for this use, anyway) the same as that for the FTDI Basic.

Arduino-Compatible board

Using an Arduino-compatible board as a serial bridge

This is the most difficult method for connecting to the debugging port, although probably the most readily available. The first thing you’ll want to do is load a sketch (like this one) which makes the RX and TX pins inputs. That will ensure that there’s no conflict between the ATmega on the Arduino-compatible and the pcDuino. Then, connect the pins from the pcDuino to the headers on the Arduino-compatible board. Unlike the other two options, in this case, you’ll connect the pcDuino transmit pin to the TX pin on the Arduino-compatible and the pcDuino receive pin to the RX pin. This is because the label on the Arduino-compatible headers refers to the direction of the data relative to the ATmega, not the serial bridge device.

Terminal settings

Use your favorite terminal program (I like PuTTY); I’d strongly suggest avoiding the Arduino serial terminal function, however. You’ll want to be sure local echo is off. The connection settings you’ll need are:

  • 115200 baud
  • 8 data bits
  • no parity
  • 1 stop bit
  • no handshaking

← DVI Video Fix | Wireless Networking →

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
用开源硬件打造属于你自己智能手环
Arduino与Mini PC合体,pcDuino来了! | 爱板网
Kernel DebuggingTricks
前方高能,教大家制作一个能手机控制的继电器开关!
一百元的智能家居——Asp.Net Mvc Api+讯飞语音+Android+Arduino
Arduino code&examples
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服