HSE optimization
Hi,
Using the P NUCLEO WB 55 with STM32WB .
Encountered with below code, regarding HSE tuning, in workshop tutorial.
A reference was given to An5024.
This code does not exist in my example project, BLE Heart Rate RTOS,
generated with STM32Cube 6.2.0 , FW_WB V1.11.0.
Should I add it manually?
Will this benefit my current working environment above?
Code:
/* 1 */
#include "otp.h"
/* 2 */
#warning “Following code is valid only for P-NUCLEO-WB55 boards and should be reimplemented depending on the target HW and HSE capacitor tuning value storage location.“
OTP_ID0_t * p_otp;
/* Read and use HSE_Tuning from OTP */
p_otp = (OTP_ID0_t *) OTP_Read(0);
if (p_otp)
{
LL_RCC_HSE_SetCapacitorTuning(p_otp->hse_tuning);
}