[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
第一次接触嵌入式开发,小脑袋是一篇空白,度娘各种资料,零零碎碎,似懂非懂,确实有点懵逼。
1、前期准备
粤嵌GEC6818开发板一套,USB转串口线一根(简称A线),网线一根(简称N线)(可选)。用A线将开发板的串口与电脑的USB口进行连接。
远程终端调试工具:比如SecureCRT、超级终端、XShell等等,随便选择其一。这里我选择的是SecureCRT。
USB转串口驱动:网上很多,随便下载吧。
2、如何进入内核调试
建立连接:打开SecureCRT,选择菜单File->Connect->NewSession。SecureCRT@protocol,这里选择Serial(译:串口),进入下一页,选择Port(USB转串口驱动安装成功,这里会出现一个串口号),Baud
rate(译:波特率)选择115200,Data bits(译:数据位)选择8,Parity(译:校验位)选None,Stop
Bits(译:停止位)选择1,右边的Flow
Control(译:流控)全都不打勾,点击下一步,点击完成。此时只表示PC与开发版之间建立起了连接,但是还不能正常通讯。
进入内核调试:重启开发板,这个时候SecureCRT会看到很多输出信息,开始是加载uboot引导程序的信息,接下来是加载kernel内核程序的信息,既然是小白,我们都不用管,只管等待开发版启动完成。别以为到此就可以进入调试了,接下来最关键一步就是点击开发版登录界面右下角那个红色的叉叉关闭按钮。到此为止,终于可以放松一下了,因为一不小心已经进入调试状态了。这个时候在终端软件上输入linux指令,是可以看到信息输出的。
3、文件传输
未完待续...