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

Add graceful shutdown support #50

Closed
ataffanel opened this issue Sep 24, 2020 · 0 comments · Fixed by #60
Closed

Add graceful shutdown support #50

ataffanel opened this issue Sep 24, 2020 · 0 comments · Fixed by #60
Milestone

Comments

@ataffanel
Copy link
Member

ataffanel commented Sep 24, 2020

This is the sister issue to bitcraze/crazyflie-firmware#623.

There should be a way for the Crazyflie to gracefully shutdown before the nRF51 cuts the power.

The idea is:

  • When the nRF51 want to shut down the system, it sends a packet to the stm32 to request shutdown
  • When the STM32 is ready to shut-down, it sends back a packet
  • If no "ready to shutdown" packets has been received after a short timeout, the power is cut anyway.
jonasdn added a commit that referenced this issue Sep 3, 2021
This will allow the STM32 firmware to wrap up any sensitive operations
like dealing with logging to SD card.

The idea is ...

  ... when the nRF51 want to shut down the system, it sends a packet
      to the stm32 to request shutdown (SYSLINK_SYS_SHUTDOWN_REQUEST)

  ... when the STM32 is ready to shut-down, it sends back a packet
      (SYSLINK_SYS_SHUTDOWN_ACK)

  ... If no "ready to shutdown" packets has been received after a short
      timeout, the power is cut anyway.

Closes #50
jonasdn added a commit that referenced this issue Sep 3, 2021
This will allow the STM32 firmware to wrap up any sensitive operations
like dealing with logging to SD card.

The idea is ...

  ... when the nRF51 want to shut down the system, it sends a packet
      to the stm32 to request shutdown (SYSLINK_SYS_SHUTDOWN_REQUEST)

  ... when the STM32 is ready to shut-down, it sends back a packet
      (SYSLINK_SYS_SHUTDOWN_ACK)

  ... If no "ready to shutdown" packets has been received after a short
      timeout, the power is cut anyway.

Closes #50
@jonasdn jonasdn added this to the next-release milestone Jan 10, 2022
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 a pull request may close this issue.

2 participants