XRT1160/1170 Software reset

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

XRT1160/1170 Software reset

ソリューションへジャンプ
476件の閲覧回数
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 解決策
463件の閲覧回数
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 返信
464件の閲覧回数
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 件の賞賛