XRT1160/1170 Software reset

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XRT1160/1170 Software reset

Jump to solution
686 Views
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 Kudos
Reply
1 Solution
673 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
674 Views
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 Kudos
Reply