Photonicat TTL,Watchdog,Recovery说明: Difference between revisions

From Photonicat Wiki
Jump to navigation Jump to search
No edit summary
Line 23: Line 23:
* c文件在:https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master/src
* c文件在:https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master/src


如果不运行openwrt,可以自行编译此软件:
如果不运行openwrt,可以自行编译此软件: (管理喂狗、开关机)
https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master
https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master


Line 31: Line 31:
meson compile
meson compile


wget -O /etc/pcat-manager.conf https://github.com/photonicat/rockchip_rk3568_openwrt/blob/master/package/lean/pcat-manager/files/pcat-manager.conf
</pre>
</pre>



Revision as of 12:14, 18 August 2023


ttl debug位置

为了方便调试,PCBA中预留了TTL的UART,console debug,速率: 1500000

此处为3个pin,需要自行焊接一个调试口,可以使用 picocom / PuTTY 链接,参数: 1500000bps, 8N1, No Flow Control.

Pcba debug.png

mcu watchdog disable位置

默认有watchdog,在没有喂狗的情况下会重启。短路即可关闭狗。位置如下:
Pcba mcu.png

通过 软件 喂狗、或关闭喂狗

也可以通过软件来喂狗或关闭喂狗。

user level 关闭喂狗

参考 https://github.com/photonicat/rockchip_rk3568_openwrt/blob/master/package/lean/pcat-manager/Makefile

如果不运行openwrt,可以自行编译此软件: (管理喂狗、开关机) https://github.com/photonicat/rockchip_rk3568_pcat_manager/tree/master

meson build
cd build
meson compile

wget -O /etc/pcat-manager.conf https://github.com/photonicat/rockchip_rk3568_openwrt/blob/master/package/lean/pcat-manager/files/pcat-manager.conf 

然后运行

pcat-manager --distro -D

uboot 关闭喂狗

apply 这个patch,关闭watchdog 参考 https://github.com/photonicat/rockchip_rk3568_linux_mainline/blob/master/patches/u-boot/314-rockchip-rk3568-Add-support-for-photonicat.patch


具体喂狗协议

MCU 控制协议

recovery button位置

USB烧录需要使用recovery button,位置如下:
Pcba watchdog.png