Skip to content

Fix PIC32 MAC initialization call - #1350

Merged
rawalexe merged 1 commit into
FreeRTOS:mainfrom
Old-Ding:codex/fix-pic32-init-mac-argument
Jul 8, 2026
Merged

Fix PIC32 MAC initialization call#1350
rawalexe merged 1 commit into
FreeRTOS:mainfrom
Old-Ding:codex/fix-pic32-init-mac-argument

Conversation

@Old-Ding

@Old-Ding Old-Ding commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

Closes #1252.

Pass the current NetworkInterface_t * into StartInitMac() from the
PIC32MZ network interface initialisation path. The helper is declared and
defined with that parameter, and it uses the interface when iterating the
configured endpoints.

Test Steps

  • git diff --check upstream/main...HEAD
  • Verified the changed file remains UTF-8 without BOM and CRLF-only.
  • Verified StartInitMac has one call site and it now passes pxInterface.

Unit tests were not run locally because this Windows environment does not
have the repo test dependencies installed (cmake, ninja, ruby, make),
and this PIC32 target file depends on the target/vendor build environment.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

#1252

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Old-Ding
Old-Ding marked this pull request as ready for review July 1, 2026 05:55
@Old-Ding

Old-Ding commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up verification:

I do not have the PIC32MZ/MPLAB XC32 target environment locally, so this remains a source-level build-fix patch rather than a target-tested driver validation.

Pass the NetworkInterface_t pointer through to StartInitMac. The
helper already requires the interface and uses it to iterate endpoints,
so the PIC32 network interface currently fails to compile.
@rawalexe
rawalexe force-pushed the codex/fix-pic32-init-mac-argument branch from 71c748b to 8a446ea Compare July 8, 2026 20:03

@AniruddhaKanhere AniruddhaKanhere left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for that change @Old-Ding.

As you mentioned, this only fixes the build but the pic32 is still NOT tested with the multi-interface stuff.

That being said, the change is good. Approved.

@rawalexe
rawalexe merged commit d9bf5fa into FreeRTOS:main Jul 8, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Build breaks due to incorrect StartInitMac Usage in xPIC32_Eth_NetworkInterfaceInitialise

4 participants