Skip to content

Conversation

@theadib
Copy link
Contributor

@theadib theadib commented Jun 9, 2025

Only correct second value if the nanosecond has reasonably value.

If the overflow happen short after the capture of the timestamp,
but before checking the ISR flag,
then the second value is corrected falsely.

The patch applies for the FRDM_K64F board having K64 family.

Only correct second value if the nanosecond has reasonably value.

Signed-off-by: Adib Taraben <[email protected]>
@theadib theadib force-pushed the fsl_enet_second_correction branch from d3517ed to e980603 Compare June 10, 2025 06:48
@mmahadevan108
Copy link
Collaborator

@theadib , thank you for your change. Please also submit a PR to this repo: https://github.com/nxp-mcuxpresso/mcux-sdk
so we can make this change in the SDK driver repo where this copied from into Zephyr.

@theadib
Copy link
Contributor Author

theadib commented Jun 10, 2025

Hello @mmahadevan108 I have done the same PR to the mcux-sdk
nxp-mcuxpresso/mcux-sdk#236
regards Adib

@mmahadevan108
Copy link
Collaborator

Thank you and apologies for pointing you to an older repo. Can you resubmit your PR to this repo: nxp-mcuxpresso/mcuxsdk-core

@mmahadevan108
Copy link
Collaborator

Once merged into the SDK repo then we can take this change here as we do not have to worry about losing this fix during SDK updates in the HAL.

@theadib
Copy link
Contributor Author

theadib commented Jun 11, 2025

done PR in mcuxsdk-core as well nxp-mcuxpresso/mcuxsdk-core#4
regards, Adib

@mmahadevan108 mmahadevan108 merged commit 813ce67 into zephyrproject-rtos:master Jun 12, 2025
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.

2 participants