Closed mdednev closed 1 year ago
Right, wireless need external 32M xtal, but currently wireless does not support for bl702.
Ok, but there is no guarantee that this initialization will be added along with wireless support (f.e. BLE stack) for BL702. So I think that it should be added as soon as possible, because it gives some benefits and apparently doesn't break anything.
Thanks, you can submit pr to modify this.
Done. Created https://github.com/bouffalolab/bouffalo_sdk/pull/149
Hello,
Newest SDK 2.0 lacks HBN_Set_XCLK_CLK_Sel(...) calls to initialize HBN high-speed clock for BL702. Bluetooth LE and other wireless interfaces couldn't perform properly without such initialization, because they should use very stable XTAL 32M clock. Older bl_mcu_sdk V1.4.5 has such calls, current bl_iot_sdk version has such calls too. This initialization should be added to the BSP's
system_clock_init(void)
function inbsp/board/bl702dk/board.c
, sosystem_clock_init(void)
should look like: