Modem not initializing and i2c error.

Hi Team,

I'm using nrf9160. I'm trying to connect to the network by using the nrf9160 controller with in built modem. I'm getting the error code -14 and modem not initialized. The i2c error also occurs error code -5. Please find the below logs and help me to resolve the issue.

13:00:07.906 -> ------------------------------ FW Version: v0.20.0 ---------------------------------
13:00:07.906 -> ------------------------------- MFW Version: 1.3.6 ---------------------------------
13:00:07.906 -> ----------------------------------- Board: nrf9160dk_minins ----------------------------------
13:00:07.906 -> ---------------------------------- Dev ID: nrf-351358817527952 ---------------------------------
13:00:07.906 -> ----------------------------- Sim ICCID: 89444611401300049231 ---------------------------------
13:00:07.906 -> --------------------------------------- Sensor: sht40 ----------------------------------------
13:00:07.906 -> -------------------------------- Build Date: 26-03-2024, 11:58 --------------------------------
13:00:07.906 -> ------------------------------ Build Machine: 32fa7c01e987 -------------------------------
13:00:07.906 -> --------------------------------------- Customer: eisntein -----------------------------------------
13:00:07.906 -> ------------------------------------ Environment: staging -------------------------------------
13:00:07.906 -> --------------------------------- Reset Reason :  -----------------------------------
13:00:07.906 -> -----------------------------------------------------------------------------------------------
13:00:07.906 -> Watchdog timeout installed. Timeout: 3600000
13:00:07.906 -> Watchdog started
13:00:07.906 -> Watchdog feed enabled. Timeout: 1800000
13:00:07.906 -> Inside temp_humidity_init
13:00:07.906 -> sensor poll started
13:00:07.906 -> LTE M and NBIOT Supported
13:00:07.906 -> Set DNS Address (0)

13:00:07.906 -> LTE Link Initializing...
13:00:07.906 -> temp:- 22.043945	hum:- 34.691998

13:00:07.906 -> Error setting resolutionof DS18B20
13:00:07.906 -> Error Getting External temperature
13:00:07.906 -> external temp -999.00 

13:00:07.906 -> ALS NOT INITIALIZED
13:00:08.001 -> modem config at cgdcont
13:00:08.001 -> Modem could not be initialized, error: -14
13:00:08.001 -> Reset Brown Out Reset Counter
13:00:08.424 -> Light sensor device ID 0x5 
13:00:08.424 -> Write ALS Active mode
13:00:08.424 -> Set ALS Integration mode
13:00:08.611 -> init done for the first time 
13:00:08.611 -> I2C error 1 : -5 
13:00:08.611 -> Poll timeout for pressureError Getting Pressure Sensor Data
13:00:08.611 -> at+cops?:+COPS: 0

13:00:08.611 -> Check if there are any previously stored messages
13:00:08.611 -> No stored messages
13:00:08.611 -> No LTE connection. Don't try to store data to flash until it's connect 
13:00:08.611 -> No LTE connection. Don't try to send data to AWS 
13:00:08.611 -> scheduling the sensor poll 600 

Related