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

Debug LED behavior #55

Open
webhdx opened this issue Nov 15, 2022 · 1 comment
Open

Debug LED behavior #55

webhdx opened this issue Nov 15, 2022 · 1 comment

Comments

@webhdx
Copy link
Owner

webhdx commented Nov 15, 2022

Current behavior:

The builtin LED is enabled during boot up and doesn't provide any sensible information apart from the fact that PicoBoot code is flashed correctly.

How can we improve?

Use the LED to signal diagnostic information. It can use different blinking patterns to differentiate a few things:

  1. CS data line missing
  2. CLK data line missing
  3. MISO data line missing
  4. MOSI data line missing (not used in current impl.)

Blinking patterns

Scenario Blinking pattern Description
All OK * * * * * 5 short pulses
CS data line missing - * * * * 1 long, 4 short pulses
CLK data line missing - - * * * 2 long, 3 short pulses
MISO data line missing - - - * * 3 long, 2 short pulses
MOSI data line missing - - - - * 4 long, 1 short pulse
  • After 5 long pulses ("All OK") the LED should turn solid green for the rest of operation
  • In case of error patterns should repeat indefinitely with a longer pause in between
@webhdx webhdx added the feature request New feature or request label Nov 15, 2022
@webhdx webhdx self-assigned this Nov 15, 2022
@webhdx webhdx added planned feature and removed feature request New feature or request labels Nov 15, 2022
@webhdx webhdx added this to the PicoBoot v1.0 milestone Nov 15, 2022
@RenaKunisaki
Copy link

Maybe another option is to use some GPIOs to output a status byte, and let people connect LEDs to them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants