TI中文支持网
TI专业的中文技术问题搜集分享网站

AWR1642 :关于1642复位问题

 感谢各位百忙之中抽空解惑,AWR1642我按照官方资料来进行软件复位,复位后不会从flash里加载我的程序,我怎样才能重新从Flash加载起来呢,有具体的过程或代码吗  谢谢各位

Wesley He:

你好,

请问你是怎么操作复位的呢?

user5879181:

回复 Wesley He:

你好 ,我是将1642的dss关闭后再往 地址 0xFFFFFF04里面写入 0xAD

具体代码如下:

#define READ_REG(reg, regVal)regVal = *((uint32_t*)reg)
#define WRITE_REG(reg, regVal)*((uint32_t*)reg) = regVal;
#define CORE_RST_REG(0xFFFFFF04)

void softReset(void)
{
uint32_t rstRegVal = 0;

/* MSS core reset */
READ_REG(CORE_RST_REG, rstRegVal);

/* Write 0xAD in 0-7 bits to perform MSS core reset */
rstRegVal &= ~0xFF;
rstRegVal |= 0xAD;
WRITE_REG(CORE_RST_REG, rstRegVal);
return;
}

Wesley He:

回复 user5879181:

你好,

你可以直接使用#define CORE_RST_REG                (0xFFFFE100+0x1c)

Warm Reset Soft Reset, Watch DogReset, Device PinWARM_RESET pinThis is an active low warm reset internally generated bythe device, or triggered by device pin WARM_RESET.A write to the TOP_RCM.SOFTSYSRST register orwatch dog module can generate this reset; additionally,the external pin WARM_RESET can also be used totrigger this reset. Selection is controlled through theTOP_RCM.MISCTL1 register.The WARM_RESET pin is an open-drain failsafe IOwhich can be used to reset the device from the externalworld or to report the reset to the external world if it isgenerated by an internal source such as watchdog.A write to the TOP_RCM.SOFTSYSRST, as explainedin register description, can create this reset.The watch dog module in the master subsystem can beconfigured to trigger this reset. Check the watch dogmodule description for details. This feature is enabled bythe TOP_RCM. WDRSTEN register.

user5879181:

回复 Wesley He:

等我确认下是否能成功,谢谢您

user5879181:

回复 Wesley He:

你好 我将上面函数的寄存器地址改了 还是不行呢 现在程序直接死掉了,请问还有什么方法吗

user5879181:

回复 Wesley He:

谢谢您我再确认一下

赞(0)
未经允许不得转载:TI中文支持网 » AWR1642 :关于1642复位问题
分享到: 更多 (0)