XRT1160/1170 Software reset

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

XRT1160/1170 Software reset

跳至解决方案
451 次查看
csutyaksancsoft
Contributor II

I am trying to reset the XRT1160/1170 via software. I have tried a few methods and all have failed

What I have tried so far:

  • NVIC_SystemReset();
  • WDOG_TriggerSystemSoftwareReset(WDOG);
  • wdog_config_t config;
    WDOG_GetDefaultConfig(&config);
    config.timeoutValue = 0xFU; /* Timeout value is (0xF+1)/2 = 8 sec. */
    WDOG_Init(WDOG1, &config)

All of them hang the MCU, debugging stops, and it doesn't complete the reset. 

This is on a custom board with an IS25xxx QSPI Chip https://www.issi.com/WW/pdf/flash-spi_electronica2014.pdf

Along with the above mentioned attempts I have read through multiple other blog posts to no avail. I have also tried the watchdog example and the reset example, neither correctly reset the MCU.

Any help is appreciated.

Thanks,
Cole 

0 项奖励
1 解答
438 次查看
csutyaksancsoft
Contributor II

I figured it out, the debugger was halting the code. If I disconnect  the Debugger it works as intended. 

specifically

  • wdog_config_t config;
    WDOG_GetDefaultConfig(&config);
    config.timeoutValue = 0xFU; /* Timeout value is (0xF+1)/2 = 8 sec. */
    WDOG_Init(WDOG1, &config)

Works

在原帖中查看解决方案

0 项奖励
1 回复
439 次查看
csutyaksancsoft
Contributor II

I figured it out, the debugger was halting the code. If I disconnect  the Debugger it works as intended. 

specifically

  • wdog_config_t config;
    WDOG_GetDefaultConfig(&config);
    config.timeoutValue = 0xFU; /* Timeout value is (0xF+1)/2 = 8 sec. */
    WDOG_Init(WDOG1, &config)

Works

0 项奖励