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


The following commit(s) were added to refs/heads/master by this push:
     new ea4beccfc72 arm/stm32g0: Expose SPI2 capability on STM32G0B1.
ea4beccfc72 is described below

commit ea4beccfc720bf8c3d7ffe45634b8374861b52eb
Author: jsanchez-2g <[email protected]>
AuthorDate: Wed Sep 30 10:01:15 2026 -0500

    arm/stm32g0: Expose SPI2 capability on STM32G0B1.
    
    STM32G0B1 devices provide SPI2, but their chip configuration does not
    select STM32_HAVE_SPI2. Since STM32_SPI2 depends on that capability,
    an explicit CONFIG_STM32_SPI2=y request is dropped by Kconfig.
    
    Select the capability for STM32G0B1 so boards can enable the existing
    SPI2 driver. SPI2 remains disabled unless requested. Other chip
    families and the driver implementation are unchanged.
    
    The STM32G0B1 datasheet DS13560, section 3.23, documents SPI2:
    https://www.st.com/resource/en/datasheet/stm32g0b1re.pdf
    
    Verified before/after configuration on STM32G0B1RE and STM32G0B1CE,
    with STM32G071RB as an unchanged control. The same one-line fix is
    included in the Golgi STM32G0B1CE firmware build 7248, whose build and
    hardware acceptance were recorded on September 25, 2026.
    
    Assisted-by: Codex:GPT-6
    Signed-off-by: jsanchez-2g <[email protected]>
---
 arch/arm/src/stm32g0/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/src/stm32g0/Kconfig b/arch/arm/src/stm32g0/Kconfig
index facabd9d3f7..146d60cf6ee 100644
--- a/arch/arm/src/stm32g0/Kconfig
+++ b/arch/arm/src/stm32g0/Kconfig
@@ -369,6 +369,7 @@ config STM32_STM32G0B1
        default n
        select STM32_STM32G0
        select STM32_STM32G0BX
+       select STM32_HAVE_SPI2
        select STM32_HAVE_DAC1
        select STM32_HAVE_COMP1
        select STM32_HAVE_COMP2

Reply via email to