Hi Dear TI Experts,
I am trying to re-configure the VTM GT1/GT2/LT0 thresholds for our new requirements with SDK8.05. However, following the SDL VTM example, when I use the API SDL_VTM_tsConvTempToAdc(),
it returns failed status.
Here is my code:
SDL_VTM_configTs cfgTs; SDL_VTM_intrCtrl ctrl; SDL_VTM_configVd cfgVd; SDL_VTM_InstTs insTs = SDL_VTM_INSTANCE_TS_0; int32_t retVal; int32_t lt_thr0_temp_value = LT_THR0_RECOVER_TEMP; int32_t gt_thr1_temp_value = GT_THR1_HIGH_TEMP; int32_t gt_thr2_temp_value = GT_THR2_OVER_TEMP; SDL_VTM_adc_code adc_code_lt_thr0 = 0x0; SDL_VTM_adc_code adc_code_gt_thr1 = 0x0; SDL_VTM_adc_code adc_code_gt_thr2 = 0x0; /* Convert the LT0, GT1, GT2, max alert THRO/THR temperature values to be adc values*/ retVal = SDL_VTM_tsConvTempToAdc(lt_thr0_temp_value, insTs, &adc_code_lt_thr0); if(retVal != SDL_PASS) { while(1) { } } retVal = SDL_VTM_tsConvTempToAdc(gt_thr1_temp_value, insTs, &adc_code_gt_thr1); if(retVal != SDL_PASS) { while(1) { } } retVal = SDL_VTM_tsConvTempToAdc(gt_thr2_temp_value, insTs, &adc_code_gt_thr2); if(retVal != SDL_PASS) { while(1) { } }