OK335xS can't reset with reboot

时间:2023-02-01 22:43:01
/***********************************************************************
* OK335xS can't reset
* 说明:
* 最近OK335xS芯片无法reset,无论是watchdog、直接硬件reset、PMU断电
* reset,都无法重启,但是正常的系统断电是可以重新进入系统,最后问题定
* 位于系统在不断电情况下重启,SYSBOOT Configuration Pins配置上存在问题。
*
* 2016-4-8 深圳 南山平山村 曾剑锋
**********************************************************************/ 一. 参考文档:
. AM335X Watchdog Reset
http://www.deyisupport.com.edgekey.net/question_answer/dsp_arm/sitara_arm/f/25/t/47590.aspx
. 关于am335x warm reset 和ROM code一个问题
http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/65124.aspx
. The Chip don't Reset when pin PORz go LOW in Linux!
http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/59743.aspx
. am335x w25Q256
http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/69688.aspx
. AM335x: Reset the device with command for warmrstn
https://e2e.ti.com/support/arm/sitara_arm/f/791/t/387231
. TPS65910x Integrated Power-Management Unit Top Specification
http://www.ti.com/lit/ds/symlink/tps65910.pdf
. AM335x ARM Cortex-A8 Microprocessors (MPUs) Technical Reference Manual (Rev. H).pdf
参考:26.1.5.2. SYSBOOT Configuration Pins
. 如何修改AM335x中的ROM code?
http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/74633.aspx
. AM335x SYSBOOT[:] XIP(MUX2) Setting
https://e2e.ti.com/support/arm/sitara_arm/f/791/t/345632 二. 现象:
在linux命令行下执行reboot、reset按键、直接PMIC reset,系统会等5分钟之后才能reboot。 三. 解决思路:
. 执行reboot,watchdog是否引发了reset信号;
. 直接对PMU进行reset,因为PMU管理所有的电源,发现还是无法复位;
. 当reset PMU时,发现对应的输出电源有断开,说明PMU工作正常,并且reset了;
. am335x再重新上电之后没有动作,于是怀疑是SYSBOOT Configuration Pins电压不对;
. 对PMU reset时,同时检查SYSBOOT Configuration Pins引脚,发现电压不对;
. 移除连接在SYSBOOT Configuration Pins上的相关芯片,发现电压最低只能到达1.3V;
. 修改SYSBOOT Configuration Pins上拉电源来源,直接对PMU复位,am335x正常reset;
. 从上面现象判断问题是在SYSBOOT Configuration Pins硬件问题上;
. 硬件SYSBOOT[:]修改为00010b,一切正常,说明确实是SYSBOOT Configuration Pins配置问题;
. 尝试修改在SYSBOOT Configuration Pins为:
SYSBOOT[:] = 10111b :
. NAND ;
. NANDI2C ;
. MMC0 ;
. UART0 .
SYSBOOT[:] = 10011b :
. MMC0 ;
. SPI0 ;
. UART0 ;
. USB0 .
. 这个时候好像所有的reset都行了,但是PWRONRSTn引脚上的reset还是不行;
. 经过调试最后发现是74LVCH162245芯片导致的问题,于是将其换成:74AVC161245;
. 到这里貌似问题就解决了。 四. 具体原因:
. 复位后,SYSBOOT Configuration Pins对应的电压决定了重启的device list;
. device list中没有nandflash,导致不能重启;
. 5分钟之后SYSBOOT Configuration Pins可能正常了,或者什么原因,导致的device list中有了nandflash,所以正常了。
. 等5分钟,其实是因为启动列表中有了EMAC1,这个会等待很长时间。 五. 建议:
就个人感觉来说,其实在硬件调试阶段,可以考虑将SYSBOOT[:]配置如下,因为你可以看到几个"CCCCCCCC",这样就可以知道怎么内部的ROM code是否正常运行了。
SYSBOOT[:] = 00100b
. UART0 ;
. XIP ;
. MMC0 ;
. NAND .