2024-11-14 06:10 AM
Hi,
I am programming the nucleo_wba55cg using Zephyr v3.7.0.
My application is based on a BLE peripheral example, whereby I have also configured an LED on the nucleo_wba55cg board to toggles at the rate of 1s.
Also, I modified the rcc section the nucleo_wba55cg.dts file to adapt to the higher system clock (96 MHz, similar to that of the nucleo_wba52cg) shown below:
&pll1 {
div-m = <8>;
mul-n = <48>;
div-q = <2>;
div-r = <2>;
clocks = <&clk_hse>;
status = "okay";
};
&rcc {
clocks = <&pll1>;
clock-frequency = <DT_FREQ_M(96)>;
ahb-prescaler = <1>;
ahb5-prescaler = <4>;
apb1-prescaler = <1>;
apb2-prescaler = <1>;
apb7-prescaler = <1>;
};
main.c
scm_setsystemclock(SCM_USER_APP, HSE_32MHZ);
Could you please let me know how to correct this behavior and achieve the correct blinking pattern of the LED (1 seconds). In case this involves PLL settings, how to do it?
2024-11-14 06:16 AM
Hello,
A simulation done on CubeMx: