Skip to content

Nanostack HAL: Convert to Chrono#12903

Merged
0xc0170 merged 1 commit into
ARMmbed:masterfrom
kjbracey:chrono_ns
May 15, 2020
Merged

Nanostack HAL: Convert to Chrono#12903
0xc0170 merged 1 commit into
ARMmbed:masterfrom
kjbracey:chrono_ns

Conversation

@kjbracey

Copy link
Copy Markdown
Contributor

Summary of changes

Convert Nanostack HAL to use new APIs from #12425.

Impact of changes

Eliminate use of deprecated APIs

Migration actions required

n/a

Documentation

None


Pull request type

[] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[X] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[X] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


@ciarmcom ciarmcom requested review from a team April 30, 2020 11:00
@ciarmcom

Copy link
Copy Markdown
Member

@kjbracey-arm, thank you for your changes.
@ARMmbed/mbed-os-ipcore @ARMmbed/mbed-os-maintainers please review.

MBED_ASSERT(equeue != NULL);
#endif
timer->start();
sleep_manager_lock_deep_sleep();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This should really be HighResClock::lock(), self-documenting why it's needed - keeping that clock running for platform_fhss_timeout_read.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

updating this PR or this will be in the new PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, let's do that now.

0xc0170
0xc0170 previously approved these changes May 11, 2020
@mergify mergify Bot added needs: CI and removed needs: review labels May 11, 2020
@mergify mergify Bot dismissed 0xc0170’s stale review May 11, 2020 09:36

Pull request has been modified.

@mbed-ci

mbed-ci commented May 11, 2020

Copy link
Copy Markdown

Test run: FAILED

Summary: 1 of 3 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-GCC_ARM

@kjbracey

Copy link
Copy Markdown
Contributor Author

CI retriggered

@mergify mergify Bot added needs: work and removed needs: CI labels May 12, 2020
@mbed-ci

mbed-ci commented May 12, 2020

Copy link
Copy Markdown

Test run: FAILED

Summary: 1 of 7 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_wisun-mesh-test

@kjbracey

Copy link
Copy Markdown
Contributor Author

Is this a real failure? Seems like it should be, given the subject of the PR, but can't navigate the results.

@kjbracey

Copy link
Copy Markdown
Contributor Author

@JarkkoPaso, could you review and/or comment on results? I'm rereading the changes.

@JarkkoPaso

Copy link
Copy Markdown

@kjbracey-arm Looks like bad FHSS synchronization but not enough information to be sure or to say how bad it is. I'll try this locally later... today or tomorrow.. Unless you find the issue before.

@JarkkoPaso

Copy link
Copy Markdown

I tested with Nucleo_F429ZI and it looks like this makes too short timeouts for some reason. For example: 255ms broadcast dwell time is around 190ms when measuring with oscilloscope.

@kjbracey

kjbracey commented May 12, 2020

Copy link
Copy Markdown
Contributor Author

Could that be down to a flaw in the remaining_time calculations? Not quite sure how that's being used.

Oh, actually, it's a fundamental part of triggering the callback, isn't it?

@JarkkoPaso

JarkkoPaso commented May 12, 2020

Copy link
Copy Markdown

Yes, could be that function. It should just return the time left for the given callback. Assuming timeout for this callback was started earlier.
Edit: So this comment was about get_remaining_slots function which is working properly.

Comment thread features/nanostack/nanostack-hal-mbed-cmsis-rtos/arm_hal_fhss_timer.cpp Outdated
@kjbracey

Copy link
Copy Markdown
Contributor Author

Sign for "overrun" callback parameter fixed. CI started.

@mbed-ci

mbed-ci commented May 13, 2020

Copy link
Copy Markdown

Test run: FAILED

Summary: 1 of 7 test jobs failed
Build number : 3
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_dynamic-memory-usage

@kjbracey

Copy link
Copy Markdown
Contributor Author

CI retriggered

@mbed-ci

mbed-ci commented May 14, 2020

Copy link
Copy Markdown

Test run: FAILED

Summary: 1 of 7 test jobs failed
Build number : 4
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_dynamic-memory-usage

@0xc0170 0xc0170 merged commit e48a659 into ARMmbed:master May 15, 2020
@mergify mergify Bot removed the ready for merge label May 15, 2020
@kjbracey kjbracey deleted the chrono_ns branch August 19, 2020 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants