gustavonihei opened a new pull request #3975:
URL: https://github.com/apache/incubator-nuttx/pull/3975


   ## Summary
   This PR intends to fix the RTC WDT deinitialization on the NuttX startup.
   Write protection must be disabled before performing changes to the WDT 
registers. Furthermore, the routine was resetting the wrong field from the RTC 
WDT register.
   The `RTC_CNTL_WDT_FLASHBOOT_MOD_EN` field relates to Flash Boot Protection 
and it is enabled by the 1st stage bootloader. The 2nd stage bootloader takes 
care of disabling it.
   
   Then the 2nd stage bootloader enables the RTC WDT for checking the startup 
sequence of the application image.
   
   ## Impact
   Now it is now possible to once again enable the RTC WDT on the ESP32 2nd 
stage bootloader.
   
   ## Testing
   Tested `esp32-wrover-kit:nsh` with ESP-IDF vanilla 2nd stage bootloader.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to