Skip to content

Using end() hangs on SAMD21 (MKR NB 1500) #152

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

Open
thkrz opened this issue Mar 12, 2025 · 1 comment
Open

Using end() hangs on SAMD21 (MKR NB 1500) #152

thkrz opened this issue Mar 12, 2025 · 1 comment

Comments

@thkrz
Copy link

thkrz commented Mar 12, 2025

Hello everyone,

I am trying to use this library together with the Arduino MKR NB 1500 board.
It works if I call the begin() method once, and the end() once, or never since my project is supposed to run indefinitely.
However, after some time I do get a timer fault on my board, begin() and end() manipulate the timer, thus I thought, maybe to call the begin() and end() functions before and after every interaction with the sensor, so the timer can be reset every time.
However, I can do this only once. After the second time I call begin() (which works) and interact with the sensor (which works) and then call end() the function just hangs. I guess some of the bit.SYNCBUSY while loops, but I couldn't determine which one, yet.

So my question is, is this the supposed behavior? I. e. is the begin() (and end()) function only to be called once, or is there something wrong here?

Thanks.

@SRGDamia1
Copy link
Contributor

That is definitely something wrong. I thought I'd fixed it with f3018f5. I'll try to look into it in the next several weeks.

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

No branches or pull requests

2 participants