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, 0xD7, 0); // Enable watchdog. Disable, use 0x0D15AB1E
write_node_config_reg (tile, 0xD6, num_1khz_cycles); // Kick watchdog 1 of 2
write_node_config_reg (tile, 0xD6, (compl num_1khz_cycles) bitand 0x0000FFFF); // Kick watchdog 2 of 2
 http://www.xmos.com/download/private/XS ... .10%29.pdf
 https://www.xmos.com/download/private/X ... 1.3%29.pdf
 https://www.xmos.com/download/private/s ... 1.3%29.pdf