Skip to main content
OGhis
Senior
November 17, 2019
Question

BUG: STM32G474 MXCube generates code for initializing 3 times the fault counter

  • November 17, 2019
  • 1 reply
  • 563 views

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

This topic has been closed for replies.

1 reply

Nesrine.JLASSI
Visitor II
May 7, 2020

Hi @OGhis​ 

Could you please share your ioc file to check the issue.

Best regrads,

Nesrine