i have updated our project to use the latest version of the ce libraries.
We’re using the celib to read voltages from ADC, but the values are not correct with the exact same code than before.
Below is a screenshot, left side is with old celibs, right side with the new one.
Another minor issue: The new BSP 1.7 seems to report it’s version as 1.6.
We’re reading the version with Sys_GetConfigInt(handle, L"BspVersion", &dwVersion)
The only difference in ADC code between 2.3 and 2.5 is added ““SavePower”” . When enabled (set to1) it Turn ADC power off in Adc_Deinit(). It should be disabled by default but you can force it off by using Adc_SetConfigInt(hHandle, L"SavePower", 0 , ParamStorageType::StoreToRegistry)
The combination we’re using is liniking and using the release dll:
toradexcelibraries_2.5-20210803\libs\dll\Toradex_CE800 (ARMV7)Release\TdxAllLibrariesDll.lib
toradexcelibraries_2.5-20210803\libs\dll\Toradex_CE800 (ARMV7)Release\TdxAllLibrariesDll.dll
When using the release version we get the same constant value for ADC1 and ADC3.
When linking against TdxAllLibrariesDll.dll we can simply replace the dll between restarts of the test application to see this.