Tool/software:
Hello TI,
After writing simple bare metal app for reading temperature sensor values over I2C (csl example), I tried using the same code in vision app but I get error "core aborted" on I2C_open function call.
I'm calling I2C_open from our custom app which is similar to app_c7x_kernel app except that we use our custom kernel for r5f on MCU2_0.
We are using Linux + RTOS SDK version v10 on J784S4 EVM board.
vx_status VX_CALLBACK app_r5f_target_kernel_bringup_create(tivx_target_kernel_instance kernel, tivx_obj_desc_t *param_obj_desc[], uint16_t num_params, void *priv_arg) { printf("\n%s -13- %d\n", __FUNCTION__, __LINE__); I2C_Params i2c_params; I2C_Params_init(&i2c_params); i2c_params.bitRate = I2C_400kHz; /* 400KHz */ // Open the I2C instance (instance 0) if (i2c_handle == NULL) { i2c_handle = I2C_open(BOARD_TEMP_SENSOR_I2C_INSTANCE, &i2c_params); printf("\n%s %d i2c_handle = %p\n", __FUNCTION__, __LINE__, i2c_handle); } return VX_SUCCESS; }
What am I missing here?
Best Regards,
Milos