Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pmantoine opened this issue Nov 13, 2024 · 1 comment · May be fixed by #2568
Open

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

pmantoine opened this issue Nov 13, 2024 · 1 comment · May be fixed by #2568
Labels
enhancement New feature or request
Milestone

Comments

@pmantoine
Copy link
Contributor

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

@fpistm
Copy link
Member

fpistm commented Nov 13, 2024

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

@fpistm fpistm added the enhancement New feature or request label Nov 13, 2024
@fpistm fpistm added this to the 2.9.0 milestone Nov 13, 2024
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

2 participants