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 software method to enter bootloader #2

Merged
merged 4 commits into from
Nov 15, 2023

Conversation

bessman
Copy link
Collaborator

@bessman bessman commented Nov 14, 2023

This PR makes it possible to enter bootloader mode via software, without pressing the BOOT button. By sending the magic number 0xDECAFBAD to the PSLab soon after reboot (within about 500 ms), the PSLab will stay in bootloader mode. This is useful for several reasons:

  • During firmware development, it's annoying to have to press the BOOT and RESET buttons all the time
  • The PSLab v5 has not buttons, so entering bootloader currently requires short-circuiting two pins on the MCU
  • Being able to drop to bootloader with a command makes it possible to do firmware development remotely, e.g. by SSH:ing into a remote machine connected to a PSLab

@bessman bessman changed the title Stay in bootloader if application returns Add software method to enter bootloader Nov 15, 2023
@bessman bessman marked this pull request as ready for review November 15, 2023 21:33
@bessman bessman merged commit 8374704 into fossasia:main Nov 15, 2023
1 check passed
@bessman bessman deleted the return-from-app branch November 15, 2023 21:33
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