Using BLE stack without external LSE quartz on CH582F

Hi.

I am using CH582F along with external quartz HSE 32MHz and LSE 32.768 kHz and BLE works fine when CLK_OSC32K=0. If I set CLK_OSC32K=1 or CLK_OSC32K=2, there is unstable operation when connected via BLE. I am not using RTC and Sleep Mode. How do I configure the application to not use the external LSE 32.768 kHz quartz?

I found such settings, but I don't understand how to use them and where to set the divider for BLE HSE timer.

uint8_t SelRTCClock; // bit7: 1: ble timer(HSE)(must disable sleep)


Update:?CH582F is used as a Peripheral device.



你好,如果使用BLE作为蓝牙从机功能使用,可以使用内部32K晶振,将代码的此部分修改为1即可。

image.png

如果使用BLE作为蓝牙主机,则务必使用外部32K晶振。



How do I use this setting?

uint8_t SelRTCClock; // bit7: 1: ble timer(HSE)(must disable sleep)


image.png

箭头标注点进入编译器的配置,然后将config.h的32K参数填写编译器预处理处。


只有登录才能回复,可以选择微信账号登录