Does Portenta have a WDT. Is there any sample code anywhere showing how to set it up?
First question can be answered from the data sheet for the H7 processor. Second one, almost every if not every STM processor function has HAL or CC code written for it, and you can read that.