This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在28335 Silicon Errata Literature Number: SPRZ272G
中有写到
Advisory Memory: Possible Incorrect Operation of XINTF Module After Power Up
Revision(s) Affected 0, A
Details The XINTF module may not get reset properly upon power up. When this happens,
accesses to XINTF addresses may cause the CPU to hang. This issue occurs only upon
power up. It does not happen for other resets such as a reset initiated by the watchdog
or an external (warm) reset using the XRS pin.
Workaround(s) After coming out of reset, software should force a watchdog (WD) reset if WDFLAG = 0
in the WDCR register. WDFLAG = 0 implies that an external reset occurred, for example,
a power-on reset. After exiting the WD reset, WDFLAG will be 1. In this case, software
should clear the WDFLAG bit before continuing normal code execution. This issue
affects only the XINTF module.
即XINTF模块可能因为上电使DSP宕机,但是这个说明不是很清楚
有能给讲明白,提供解决方案的吗?比如说上电后怎么弄 能避免这个问题
让看门狗产生复位,可以对WDCR.WDCHK写一个非101的值,
Watchdog check.
0,0,0 You must ALWAYS write 1,0,1 to these bits whenever a write to this register is performed
unless the intent is to reset the device via software.
other Writing any other value causes an immediate device reset or watchdog interrupt to be taken.
Note that this happens even when watchdog module is disabled. Do not write to WDCHK bits
when the watchdog module is disabled. These bits can be used to generate a software reset
of the device. These three bits always read back as zero (0, 0, 0)
Eric
WDFLAG在编译器中默认是没有的,写程序判断SysCtrlRegs.WDCR&0x80是否为0来判断是不是上电复位,可实际应用一直检测到该位为1,即看门狗复位;
复位电路选用TI推荐的PS767D301的方式;
相关测试程序如下
上电运行:
EALLOW;
DogState= SysCtrlRegs.WDCR;
if( DogState & 0x80 == 0 ) //WDFLAG = 0,表示是上电复位,需要进行看门狗复位
{
Tpoweron=1;
}
EDIS;
然后关狗,
主程序中代码如下:
if(Tpoweron)
SCIB_TXD( 0x11 );
else
SCIB_TXD( 0x00 );
wait_1us( 100000 );
上电复位和按键复位,使用串口调试助手接收到一直是0x00;
这边用了几百片28335,基本上都有XINTF访问死机的情况,测试到有1片出现的特别频繁