Skip to content

nrf52832 does not respond to control-C - sometimes #1003

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

Closed
jerryneedell opened this issue Jul 9, 2018 · 14 comments
Closed

nrf52832 does not respond to control-C - sometimes #1003

jerryneedell opened this issue Jul 9, 2018 · 14 comments
Assignees
Labels

Comments

@jerryneedell
Copy link
Collaborator

While testing the SPI and I2C interfaces to the STMPE610 Touch screen copntroller, I found that once I start my program running, I cannot use control-C to break out. This occurs with pot the I2C and SPI versions of the driver.

Control-C does work under the REPL -- have not tried other sensors yet.

Revetring to 3.x -- control C works properly running the same code.

No exeption handling in the program.

import board
import digitalio
from adafruit_stmpe610 import Adafruit_STMPE610_I2C
i2c=busio.I2C(board.SCL,board.SDA)
st=Adafruit_STMPE610_I2C(i2c)
while True:
    if not st.buffer_empty:
        print(st.read_data())
@arturo182
Copy link
Collaborator

Hmm, I wonder if my UART with nRFx rewrite can fix that.

@jerryneedell jerryneedell changed the title nrf52832 does respond to control-C - sometimes nrf52832 does not respond to control-C - sometimes Jul 9, 2018
@tannewt
Copy link
Member

tannewt commented Jul 16, 2018

@hathach Are you looking at this?

@hathach
Copy link
Member

hathach commented Jul 17, 2018

@tannewt ah no, I am resolving #1021 usb issue. Will look at this afterwards.

@jerryneedell
Copy link
Collaborator Author

this appears to have been fixed. Ok to close?

@jerryneedell
Copy link
Collaborator Author

Sorry I tested this on the pca10056 dk board. Not on feather53832.

@jerryneedell
Copy link
Collaborator Author

verified that this is still not working for feather 52832 -- sorry for the confusion.

@arturo182
Copy link
Collaborator

Yes, since this is 52832, this must be in the UART driver not USB ;)

@jerryneedell
Copy link
Collaborator Author

Just a reminder that this issue is still present on the feather_nrf52832.
Control-c does not terminate an executing script.
The only way to stop a script is a hard reset.

@tannewt
Copy link
Member

tannewt commented Dec 6, 2018

@dhalbert Did you fix this?

@jerryneedell
Copy link
Collaborator Author

It was still broken as of yesterday.

@jerryneedell
Copy link
Collaborator Author

jerryneedell commented Dec 6, 2018

I have been try to find the issue tbut have not been successful. If you have suggestions about where to look I’ll be happy to keep working on it.

@dhalbert
Copy link
Collaborator

dhalbert commented Dec 7, 2018

@tannewt I just fixed pin claiming for UART, but not UART reset. I think that's still to do.

@tannewt tannewt modified the milestones: 4.0 Beta, 4.x Dec 7, 2018
@jerryneedell
Copy link
Collaborator Author

since we have dropped nrf52832 -- should we close this?

@dhalbert
Copy link
Collaborator

Since no one has complained about this in 52840, let's close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants