2013-04-12 07:51 AM
... because there is a bug in the fw library.
There is a bug in STM8l FWLIB V1.01The bug is file stm8l15x_beep.cvoid 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->CSR2Making this change allows the RCOSC calibration app note firmware to work properly #hsi-cal