CONFIG_I2C blocks app from running - Raytac MDBT53v (nRF5340)

Hi,

I'm developing with NCS v2.6.0 for Raytac MDBT53v-P1M module, which inhibits nRF5340. I already have my own PCB with all the required HW components.

As a sanity check, I've successfuly flashed and debugged Zephyr's blinky example. For that purpose, following Raytac's instructions, I've added these lines to prj.conf:

CONFIG_BOARD_ENABLE_DCDC_NET=n
CONFIG_BOARD_ENABLE_DCDC_APP=n
CONFIG_BOARD_ENABLE_DCDC_HV=n
CONFIG_CLOCK_CONTROL_NRF=y
CONFIG_CLOCK_CONTROL=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y
CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_PERIOD=1000
So far, things went well.
The next step was to configure the I2C interface. I've followed this guide and things didn't go well.
In order to debug this, I simply took the blinky code, which builds & runs successfully on my device, and added "CONFIG_I2C" to the prj.conf file. That is the only code modification.
At this point, I'm still able to build & flash my device, but the code doesn't run anymore. The LED doesn't blink as it should. Furthermore, debugging doesn't behave normally - the code is stuck somewhere in tfm_hal_platform.c (no breakpoints are set).
I'll mention that I'm using the original dtsi files for MDBT53v (cpu app, non-secure).
I would truely appreciate help with this!
Thank you Slight smile
Related