Hello
I already initialize the gio.If my cpu reset casue by the external watchdog , I want to make the program endless loop. And reset gio .
But I dont know the cpu reset ,the gio can be set to high and low .
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello
I already initialize the gio.If my cpu reset casue by the external watchdog , I want to make the program endless loop. And reset gio .
But I dont know the cpu reset ,the gio can be set to high and low .
Thank you
1.The tps65381 cause the cpu reset ,that can into this judge? ((SYS_EXCEPTION & WATCHDOG_RESET) !=0U)
2. if the cpu reset by tps65381, and my program excute the "giosetbit(hetport,0,1)".Can the pin be setted?because the cpu reset ,i dont know the gio condition ,Do I need to initialize again,or dont need initialize?
Hi Whong,
1. No. The WATCHDOG_RESET is the reset caused by the on chip watchdog rather than the external watchdog. If the NRES of TPS65381 is connected to TMS570 nPORRST, the reset source of the reset caused by TPS65381 is power-on reset.
If the NRES of TPS65381 is connected to TMS570 nRST, the reset source of the reset caused by TPS65381 is EXT Reset.
2. At this moment, the peripherals haven't released from reset, and clocks to all the peripherals are disabled. So calling giosetbit(hetport,0,1) won't set the pin.