Skip to content

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

@thkrz

Description

@thkrz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions