嵌入式linux开发,对pcf8563时钟操作报错如下:
[root@ms ~]# hwclock -s rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
或
[root@ms ~]# hwclock -s rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable. rtc-pcf8563 0-0051: retrieved date/time is not valid. [root@ms ~]#
开机启动报错如下:
i2c_add_driver : 0 rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable. rtc-pcf8563 0-0051: retrieved date/time is not valid. rtc-pcf8563 0-0051: hctosys: invalid date/time二、问题分析。
根据提示,pcf8563报供电电压错误。
三、解决方案。1、先测量pcf8563电源电压,是否满足要求。
2、pcf8563首次操作。第一次读取pcf8563的时间,未初始化,非法,芯片门槛电压检测配置不合理。使用hwclock命令写入一次,即可解决。
hwclock -f /dev/rtc1 -w



