OPEnSLab-OSU / Loom

Arduino library for Internet of Things Rapid Prototyping in environmental sensing
GNU General Public License v3.0
26 stars 3 forks source link

Test Loom_DS3231 - Carter #153

Closed rcpeene closed 3 years ago

rcpeene commented 3 years ago

I'm getting the same problem as I was getting with the Neopixel. After investigating by putting print statement markers, the first function call of the interrupt manager, getInterruptManager(Feather).register_ISR would run, and then the code in the sketch would continue until another interrupt manager method is called, at which point, the code halts before the method gets called.

Fault! Cause: HARDFAULT Fault during recording: No Line: 397 File: Manager.cpp Failures since upload: 3

rcpeene commented 3 years ago

I am unsure if its the same issue or not, but currently, running the same test still ends up halting during the initialization phase. I have managed to pinpoint the precise line that the code halts on.

The traceback looks as follows (most recent call last):

RTC.init() (i dont know what calls this function) RTC.print_time() RTC.readRTC() RTC.get_datestring() RTC.now() DS3231.rtc_inst.now()

So the code halts when the first dependency function is called.

rcpeene commented 3 years ago

Update: The code gets further when testing a different Feather/Hypnos stack, but still halts during some calls in InterruptManager. This second halting issue may be an issue unrelated to the DS3231, but I'm unsure