Watchdog on startKIT processor
Posted: Tue Apr 04, 2017 6:02 pm
XS1-U16A-128-FB217 Datasheet [1] tells about the watchdog timer. XS1-L8A-64-TQ48 Datasheet [2] does not. Both are referenced in the startKIT manual [3]. So, is there a watchdog timer here or isn't it?
Anyhow, this code compiles and returns 1 (ACK) but I see no restart and read no value back. Code at start-up only, so I don't trigger the watchdog, so it should time out and restart. I have tried not kicking the watchdog, just enable it. Still does not restart the processor.
What did I miss?
[1] http://www.xmos.com/download/private/XS ... .10%29.pdf
[2] https://www.xmos.com/download/private/X ... 1.3%29.pdf
[3] https://www.xmos.com/download/private/s ... 1.3%29.pdf
Anyhow, this code compiles and returns 1 (ACK) but I see no restart and read no value back. Code at start-up only, so I don't trigger the watchdog, so it should time out and restart. I have tried not kicking the watchdog, just enable it. Still does not restart the processor.
What did I miss?
Code: Select all
int node_config_reg_return; // I have cheched the returns and they are all ACK but I have left them out here
unsigned num_1khz_cycles = 1100;
write_node_config_reg (tile[0], 0xD7, 0); // Enable watchdog. Disable, use 0x0D15AB1E
write_node_config_reg (tile[0], 0xD6, num_1khz_cycles); // Kick watchdog 1 of 2
write_node_config_reg (tile[0], 0xD6, (compl num_1khz_cycles) bitand 0x0000FFFF); // Kick watchdog 2 of 2
[2] https://www.xmos.com/download/private/X ... 1.3%29.pdf
[3] https://www.xmos.com/download/private/s ... 1.3%29.pdf