-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Processors Software Diagnostics Library
-
PROC_SDL-6183
-
-
PROC_SDL_J7200_01.00.00
-
PROC_SDL_J7200_01.02.00
-
j7200-evm
The SDL_vtmPrepLookupTable() implementation will loop over 1024 elements to create a new table each time it is called.
Referencing: ti-processor-sdk-rtos-j721s2-evm-08_06_00_11/sdl/src/ip/vtm/V0/sdl_vtm_pvt_sensor.c
The API is called periodically for VTM, and as such should be more efficient. The code appears to have intended to only run the loop once for initialization. Where after going through the for loop, derived_array[] will be populated, and on line 408, gSDL_vtm_lut_done[sens_id] is set to TRUE, so ideally the loop at line 401 will never be hit again, due to if check on line 399.
![]()
At the beginning of the same function however it appears that gSDL_lut_computation_init_done is always set , and as such gSDL_vmt_lut_done[sens_id] is set back to false, and the 1024 table will be re-initalized each time the SDL_vtmPrepLookupTable() API is called.
![]()
Did not see any guidance/documentation/example of setting of gSDL_lut_computation_init_done to true, which would alleviate issue.