Hi,
I'm developing an application with a custom firmware image for both the nRF52840 and nRF9160 on the nRF9160DK. I've always been on ncs v2.5.0 and decided it would be a good time to update to the latest version as I ran into yet another soft reset issue which cause wasn't being logged and I was advised to update to v2.6.0 because the behavior of TFM hard faults has changed (see this post). I initially tried updating to v3.1.1, but after updating everything to make it build, I ran into a Precise Data Bus Error which seems to be a NULL pointer issue (BFAR address: 0x0). Using addr2line, I found that the r15/pc was pointing to l138 in pinctrl_nrf.c which is this line related to setting the SPIM_SCK pin.
Since quite a lot has changed between v2.6.0 and v3.1.1, I decided to just update to v2.6.0 to make sure it wasn't related to any changes to how board files are defined, but it was still the same issue. Building the exact same application and build configuration for v2.5.0 and v2.6.0 (after calling west update of course) results in the v2.5.0 version running just fine as before, and v2.6.0 failing before hitting main. Would you have any idea what could be causing this? I already compared the build output zephyr.dts files and there were no differences related to SPIM or PINCTRL
Best,
Wout