AnsweredAssumed Answered

HSI Calibration FW doesn't work...

Question asked by mcwiggin.patrick on Apr 12, 2013
... because there is a bug in the fw library.



There is a bug in STM8l FWLIB V1.01


The bug is file stm8l15x_beep.c


void BEEP_LSClockToTIMConnectCmd(FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_FUNCTIONAL_STATE(NewState));


  if (NewState != DISABLE)
  {
    /* Enable the BEEP peripheral */
    BEEP->CSR2 |= BEEP_CSR1_MSR;
  }
  else
  {
    /* Disable the BEEP peripheral */
    BEEP->CSR2 &= (uint8_t)(~BEEP_CSR1_MSR);
  }
}


bit BEEP_CSR1_MSR is in BEEP->CSR1 not in BEEP->CSR2


Making this change allows the RCOSC calibration app note firmware to work properly

Outcomes