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

Added Terminate Signal #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BjornTheProgrammer
Copy link

Description

This PR adds a termination signal when the serial connection is terminated with ctrl + c with the bytes "elf2uf2-term\n\r"

Motivation

It is annoying to either unplug and replug the mico controller while holding down the bootsel button to enter boot select mode or construct a circuit in which the ground and run pin are connected to enter boot select mode. So, it would be nice if the serial connection indicated that it would terminate. That way, it would be easier to enter boot select mode programmatically.

Now when a connection is closed using ctrl + c, a string will be sent via serial with "elf2uf2-term\n\r"

This is powerful as now, with this feature, the micro controller can choose to respond to this string by entering boot select. No more plugging and unplugging the microcontroller while holding bootsel.
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.

1 participant