Skip to content

Custom PeripheralPins.c for Ethernet Nucleos F429ZI/F439ZI #2564

Description

@pmantoine

Thank you for adding Nucleo-F439ZI support in v2.8.0

We make use of the STM32Ethernet library for our networked application on both the Nucleo-F429ZI and Nucleo-F439ZI, and have discovered an issue that suggests a custom PeripheralPins.c would be the appropriate answer.

The current code in STM32Ethernet's HAL_ETH_MspInit() routine in ethernetif.cpp blasts its way over every pin associated with Ethernet in the PeripheralPins.c, leaving pins not used on the Nucleo-F4[23]9ZI boards also configured with AF attributes.

We propose that a custom PeripheralPins_NUCLEO_F4x9ZI.c file be used, which limits this initialisation to just the pins actually used on both Nucleos.

Please find attached a proposed form of the file which we've tested. Or I can inssue a suitable PR if you'd prefer.
PeripheralPins_NUCLEO_F4x9ZI.c.zip

Activity

  1. fpistm commented on Nov 13, 2024

    @fpistm
    Member

    Hi @pmantoine
    Yes, feel free to submit a PR especially if you have tested it. --> Done #2568

  2. added this to the 2.9.0 milestone on Nov 13, 2024
  3. added a commit that references this issue on Nov 14, 2024
    b692b17
  4. added a commit that references this issue on Nov 19, 2024
    339e2b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions