This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 9aa131650862bf060e193a14ed241d95bfb740ad
Author: raiden00pl <[email protected]>
AuthorDate: Fri Oct 30 12:53:35 2026 +0100

    boards/nucleo-l496zg: Enable VDDIO2 for the port G I/Os.
    
    PG2-PG15 are supplied by VDDIO2 and stay unpowered until PWR_CR2.IOSV
    is set, which leaves the LPUART1 console on PG7/PG8 (ST-LINK VCP) dead.
    
    Signed-off-by: raiden00pl <[email protected]>
    Assisted-by: Claude Code
---
 boards/arm/stm32l4/nucleo-l496zg/src/stm32_boot.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_boot.c 
b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_boot.c
index 4e59599a7e0..ecaf677a063 100644
--- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_boot.c
+++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_boot.c
@@ -35,6 +35,7 @@
 #include <arch/board/board.h>
 
 #include "arm_internal.h"
+#include "stm32l4_pwr.h"
 #include "nucleo-144.h"
 
 /****************************************************************************
@@ -58,6 +59,10 @@
 
 void stm32_board_initialize(void)
 {
+  /* Enable Vddio2 - mandatory to use the PG2 - PG15 I/Os. */
+
+  stm32_pwr_vddio2_valid(true);
+
 #ifdef CONFIG_ARCH_LEDS
   /* Configure on-board LEDs if LED support has been selected. */
 

Reply via email to