Hi,
I have a PCF8523 RTC on a I2C bus connected on a custom board with a NRF9160 Dev board runing it (Acctinius Iccarus Dev board to be exact). Communicating with it over I2C works perfectly however when trying to communicate with it using the RTC driver present in zephyr for it (only present in V2.5.0-rc1 at the moment) I get a very hard to figure out error. Upon calling any of the API functions I get thrown to here and the board resets:
(Listed under tf-m/trusted-firmware-m/platform/ext/common/faults.c)
The RTC is defined like this under the device tree:
And I'm calling the api function through a c++ as show here:
(Note that I've commented out code to narrow it down)
Tracing through with the debug functon and a jtag probe the program jumps immediatly after the call to rtc_get_time to the fault.
Can anyone help me figure out what is happening here?