Skip to content

STM32L1: GPIO IP files define GPIO_AF10_USB while it should not #2

@fpistm

Description

@fpistm

Hi @CMOSTM

The STM32L152RETx.xml defined the GPIO configFile version as: STM32L162xE_gpio_v1_0

<IP ConfigFile="GPIO-STM32L1xx" InstanceName="GPIO" Name="GPIO" Version="STM32L162xE_gpio_v1_0"/>

In GPIO-STM32L162xE_gpio_v1_0_Modes.xml, PA11 (USB DM) and PA12 (USB DP) define an GPIO_AF10_USB as possible value:

<PinSignal Name="USB_DM">
<SpecificParameter Name="GPIO_AF">
<PossibleValue>GPIO_AF10_USB</PossibleValue>
</SpecificParameter>
</PinSignal>

<PinSignal Name="USB_DP">
<SpecificParameter Name="GPIO_AF">
<PossibleValue>GPIO_AF10_USB</PossibleValue>
</SpecificParameter>
</PinSignal>

Datasheet of the STM32L152RETx does not references them. Moreover GPIO_AF10_USB does not exist in STM32L1xx Cube Fw only in STM32L5 and STM32WB.
https://www.st.com/resource/en/datasheet/stm32l152re.pdf

image

So all STM32L1 GPIO IP files should not contain it:

GPIO-STM32L152x8_gpio_v1_0_Modes.xml:                <PossibleValue>GPIO_AF10_USB</PossibleValue>
GPIO-STM32L152x8_gpio_v1_0_Modes.xml:                <PossibleValue>GPIO_AF10_USB</PossibleValue>
GPIO-STM32L152xC_gpio_v1_0_Modes.xml:                <PossibleValue>GPIO_AF10_USB</PossibleValue>
GPIO-STM32L152xC_gpio_v1_0_Modes.xml:                <PossibleValue>GPIO_AF10_USB</PossibleValue>
GPIO-STM32L15xxA_gpio_v1_0_Modes.xml:                <PossibleValue>GPIO_AF10_USB</PossibleValue>
GPIO-STM32L15xxA_gpio_v1_0_Modes.xml:                <PossibleValue>GPIO_AF10_USB</PossibleValue>
GPIO-STM32L162xD_gpio_v1_0_Modes.xml:                <PossibleValue>GPIO_AF10_USB</PossibleValue>
GPIO-STM32L162xD_gpio_v1_0_Modes.xml:                <PossibleValue>GPIO_AF10_USB</PossibleValue>
GPIO-STM32L162xE_gpio_v1_0_Modes.xml:                <PossibleValue>GPIO_AF10_USB</PossibleValue>
GPIO-STM32L162xE_gpio_v1_0_Modes.xml:                <PossibleValue>GPIO_AF10_USB</PossibleValue>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions