STM32H743XIHx.xml has incorrect pin type and function for ANA _C pins

Open
#17 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
xml
Domain
embedded-iot

Research direction

Start with STM32H743XIHx.xml and compare PA0_C, PA1_C, PC2_C, and PC3_C against datasheet DS12110 Rev 11. Check related XML files for the same _C pin pattern. Done means these pins are typed as ANA and expose only their valid ADC inputs, with no alternate functions or output capability.

Written by the indexing model from the issue text.

Description

Several pins on the STM32H743XIHx family are named with _C: PA0_C, PA1_C, PC2_C, and PC3_C. The datasheet "DS12110 Rev 11" says these are of type ANA (analog-only input) and do not offer any alternate functions, only ADC inputs are possible. The XML file STM32H743XIHx.xml incorrectly suggests these are effectively identical to to their non-C counterparts with regards to the alternate functions offered:

    <Pin Name="PA0_C" Position="T1" Type="I/O">
        <Signal Name="ADC1_INN1"/>
        <Signal Name="ADC1_INP0"/>
        <Signal Name="ADC2_INN1"/>
        <Signal Name="ADC2_INP0"/>
        <Signal Name="ETH_CRS"/>
        <Signal Name="PWR_WKUP1"/>
        <Signal Name="SAI2_SD_B"/>
        <Signal Name="SDMMC2_CMD"/>
        <Signal Name="TIM15_BKIN"/>
        <Signal Name="TIM2_CH1"/>
        <Signal Name="TIM2_ETR"/>
        <Signal Name="TIM5_CH1"/>
        <Signal Name="TIM8_ETR"/>
        <Signal Name="UART4_TX"/>
        <Signal Name="USART2_CTS"/>
        <Signal Name="USART2_NSS"/>
        <Signal IOModes="Input,Output,Analog,EVENTOUT,EXTI" Name="GPIO"/>
        <Condition Diagnostic="ETR and CH1 on the same GPIO for TIM2" Expression="(!(TIM2_CH1 &amp; (PA15_S_TIM2_ETR|PA5_S_TIM2_ETR)) &amp; !(TIM2_ETR &amp; (PA15_S_TIM2_CH1|PA5_S_TIM2_CH1)))"/>
    </Pin>

It also has the type as "I/O" even though output is impossible, it should probably be "ANA" instead.

I haven't checked other XML files but it's likely this affects multiple XML files.

Dominant language
No language data
Stars
92
Forks
14
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from STMicroelectronics/STM32_open_pin_data

All issues in STMicroelectronics/STM32_open_pin_data

Similar issues

More Embedded & IoT issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.