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

Not restarting advertisement after stopped. FreeRTOS tickless #936

Closed
EdwinFairchild opened this issue Feb 27, 2024 · 2 comments
Closed
Assignees

Comments

@EdwinFairchild
Copy link
Contributor

Resuming advertising is not working once they are stopped. If you comment out line 230 and 239, essentially remove the if statement and thus the call to PalBbGetTimestamp , and keep the if statements contents then it works just fine.
I think it may be related to accessing the dbb but the PalBbGetTimestamp guards against that in the phy by checking palBbEnableCnt

if (!schTimerActive) {
uint32_t ts;
if (PalBbGetTimestamp(&ts)) {
/*Determine if PalBb is active, return if we get a valid time stamp indicating
* that the scheduler is waiting for a PalBb event */
/* Re-enable interrupts - see comments above the cpsid instruction()
above. */
__asm volatile("cpsie i");
return;
}
}

Steps to reproduce:

  • Build BLE_FreeRTOS example with tickless mode enabled
  • Start application
  • Use phone app to see advertising works fine
  • [ Button 2 press short ] will stop advertising
  • [ Button 1 press short ] will resume advertising (does not resume)
@EdwinFairchild EdwinFairchild self-assigned this Feb 27, 2024
@EricB-ADI EricB-ADI self-assigned this Apr 10, 2024
@EricB-ADI
Copy link
Contributor

Removing the if statement basically causes it to never go to sleep.

@EricB-ADI
Copy link
Contributor

BB was not being correctly disabled and enabled/restored.

@EricB-ADI EricB-ADI reopened this Apr 10, 2024
@EdwinFairchild EdwinFairchild removed their assignment Apr 10, 2024
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

No branches or pull requests

2 participants