cancel
Showing results for 
Search instead for 
Did you mean: 

HSI Calibration FW doesn't work...

Stm32User
Associate II
Posted on April 12, 2013 at 16:51

... 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

#hsi-cal
0 REPLIES 0