STM32MP157C上手体验

STM32MP157C上手体验

img

此款来自SeeedStudio的STM32MP157C采用SOM的方式,这种设计是为了降低定制化的成本,但是同时也正加了其本身的成本,除此之外,其余板载设备的用料都不错,各部分都处理得很有讲究,但是目前这款芯片的社区资源还比较少,也造成了一些使用上的小麻烦,接下来开始上手体验。

 

开机

根据wiki的内容: http://wiki.seeedstudio.com/ODYSSEY-STM32MP157C/

找到一张sd卡,用sdcardformatter进行初始化,然后下载系统镜像,这个镜像不算大,只有 90多m,对比树莓派的大小一开始我还以为下载出错了,不过由于未知的原因,使用wiki推荐的etcher软件烧录镜像失败了,于是采取第二种方法,先解压成img文件,然后后通过win32diskimager烧录,此时终于看到了boot驱动器,证明烧录成功。

因为担心笔记本供电不足,所以没有直接使用USB-C上的串口进行调试,而是直接把USB-C接到5V/2A的适配器进行供电,不过后来查看耗电量,证明我是多虑了

img

我直接使用了13标记处的TTL串口,然后通过一个USB-TTL连接,接入到笔记本

下载putty,选择Serial,修改COM端口,波特率为115200,成功打开调试串口

插入SD卡,上电启动,开始打印启动信息。

 

烧录系统到EMMC

根据wiki的指示输入指令,稍等1-2分钟即可完成,完成后板载用户LED闪烁。

P.S. 超级管理员权限root@root

 

基础系统配置

打算先直接使用网口进行联网(其实是懒得用wifi,ip不稳定)

插入网线,不需要任何配置即可联网,ifconfig获取ip地址,然后ssh连接.。。。失败。。

难道是debian默认没有开启ssh?

并不是。。原来根本就没装ssh。。

然后一顿乱操作:

sudo apt-get update

不对不对。赶紧Ctrl+C ,我这是在天朝。。。

赶紧找个镜像站。。。

传送门->清华源 https://mirror.tuna.tsinghua.edu.cn/help/debian/

这个版本时候debian 10的

nano /etc/apt/sources.list

黏贴进去:

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free

Ctrl+o;Ctrl+x

sudo apt-get update

sudo apt-get ugrade

成功~

sudo apt-get install ssh

然后笔记本成功连接上ssh~

 

End

2020.03.27

posted @ 2020-03-27 16:54  NichoDeng  阅读(25)  评论(0)    收藏  举报