2019-11-17 01:36 AM
Hi,
MXcube generates 3 times the same code for initializing the Fault counter of the HRTIM.
pFaultBlkCfg.Threshold = 1;
if (HAL_HRTIM_FaultCounterConfig(&hhrtim1, HRTIM_FAULT_5, &pFaultBlkCfg) != HAL_OK)
{
Error_Handler();
}
if (HAL_HRTIM_FaultCounterConfig(&hhrtim1, HRTIM_FAULT_5, &pFaultBlkCfg) != HAL_OK)
{
Error_Handler();
}
if (HAL_HRTIM_FaultCounterConfig(&hhrtim1, HRTIM_FAULT_5, &pFaultBlkCfg) != HAL_OK)
{
Error_Handler();
}
and also the same for the Fault blanking config:
if (HAL_HRTIM_FaultBlankingConfigAndEnable(&hhrtim1, HRTIM_FAULT_5, &pFaultBlkCfg) != HAL_OK)
{
Error_Handler();
}
if (HAL_HRTIM_FaultBlankingConfigAndEnable(&hhrtim1, HRTIM_FAULT_5, &pFaultBlkCfg) != HAL_OK)
{
Error_Handler();
}
if (HAL_HRTIM_FaultBlankingConfigAndEnable(&hhrtim1, HRTIM_FAULT_5, &pFaultBlkCfg) != HAL_OK)
{
Error_Handler();
}
Used tools: MXCube 5.4.0.
HAL Library for STM32G4xx : V1.1.0
2020-05-07 03:34 AM
Hi @OGhis
Could you please share your ioc file to check the issue.
Best regrads,
Nesrine