XMC_VADC_GLOBAL_StartupCalibration () does not confirm that CALS becomes 1.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User11795
Level 1
Level 1
The function XMC_VADC_GLOBAL_StartupCalibration () in the program below does not confirm that CALS becomes 1.
If it is not confirmed that CALS becomes 1 when the XMC is broken down, ADC may run without being calibrated.
Could you apply the correction to check that CALS becomes 1 to XMC_VADC_GLOBAL_StartupCalibration ()?

https://www.infineon.com/dgdl/Infineon-PMSM_Motor_Control_FOC_Sensorless_Example_with_uC_Probe_for_X...
0 Likes
2 Replies
User11795
Level 1
Level 1
This issue was settled.
0 Likes
User19396
Level 1
Level 1
Hi,

Could you let me know how this was resolved. I am facing the same issue, where XMC_VADC_GLOBAL_StartupCalibration () is not confirming to CAL =1.
As a result, the code is stuck in while loop.

for(i=0U; i< 2U; i++)
{
group_ptr = g_xmc_vadc_group_array;
if ( (group_ptr->ARBCFG) & (uint32_t)VADC_G_ARBCFG_ANONS_Msk)
{
/* This group is active. Loop until it finishes calibration */
while((group_ptr->ARBCFG) & (uint32_t)VADC_G_ARBCFG_CAL_Msk)
{
/* NOP */
}


Thank you,
Appreciate your time and help.
0 Likes