You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "slorquet (via GitHub)" <gi...@apache.org> on 2023/05/17 08:26:27 UTC

[GitHub] [nuttx] slorquet commented on a diff in pull request #9303: boards: stm32h7: nucleo-h743zi2: add watchdog

slorquet commented on code in PR #9303:
URL: https://github.com/apache/nuttx/pull/9303#discussion_r1196133083


##########
boards/arm/stm32h7/nucleo-h743zi2/src/stm32_bringup.c:
##########
@@ -96,6 +96,21 @@ int stm32_bringup(void)
     }
 #endif
 
+#ifdef CONFIG_STM32_IWDG
+  /* Initialize the watchdog timer */
+
+  stm32_iwdginitialize("/dev/watchdog0", STM32_LSI_FREQUENCY);

Review Comment:
   Followup: I did that and that works.
   
   However, it ENTIRELY masks why I got stack corruption at context switch when trying to create a kthread like I wanted to contribute. This is still worrying.



##########
boards/arm/stm32h7/nucleo-h743zi2/src/stm32_bringup.c:
##########
@@ -96,6 +96,21 @@ int stm32_bringup(void)
     }
 #endif
 
+#ifdef CONFIG_STM32_IWDG
+  /* Initialize the watchdog timer */
+
+  stm32_iwdginitialize("/dev/watchdog0", STM32_LSI_FREQUENCY);

Review Comment:
   Followup: I did that and it works.
   
   However, it ENTIRELY masks why I got stack corruption at context switch when trying to create a kthread like I wanted to contribute. This is still worrying.



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org