Just getting started with the new 13S product. I am using the "soc-empty" example unchanged and the code hangs in "init_mcu.c" on:
// Set LFXO if selected as LFCLK CMU_ClockSelectSet(cmuClock_LFA, cmuSelect_LFXO); ...
The debugger just quits at this point. What is the indicative of?
Well, I will attempt to answer this myself. Perhaps someone can confirm what I found...
On page 66 of the datasheet:
32.768 kHz crystal - Required in applications that must meet 500 ppm Bluetooth Sleep Clock accuracy requirement. More accurate crystals can be used to reduce the listening window and thereby reduce overall current consumption. Recommended crystal is KDS part number 1TJG125DP1A0012 or equivalent.
I obviously missed this, but it would seem despite the typical circuit diagram omitting the crystal that it is in fact required to use Bluetooth? The datasheet seems to indicate the LFXO is integrated like in the other BGM parts, but is it not? Seems like this should be more clearly indicated in the manual.
Are you using the BGM13P22 or BGM13P32? Could you provide me the board information BRDxxxxx rev xx? I tried to recreate this error using a BGM13P32 but It works for me.
Also I looked for the part that you mention EFR32BG13P732F512GM51 and this is a BGM13S32 module not a BGM13P as you mention in the title. Tried with this module and it works too but I'm in the latest release of the SDK 184.108.40.206
And regarding your last question yes this is an internal part.
Oh my brain....13S! That probably was the reason I made the mistake in the first place. I was looking at the wrong datasheet. I updated the title. This is all on me.
Thanks for your reply.
Our radio boards for BGM13S have an external LFXO crystal.
You can still use your board for Bluetooth but you just can't use sleep modes.
Here is a little image on where to put the flags to zero to deactivate the sleep mode from the stack:
As Jaakko explained yo need to set it to 0 from the default value.
Also you need to skip the initialization of the LFXO, you can comment out this part of the code inside the init_mcu_efr32xg1.c file in your project.
Is there a equivalent crystal that is readily available that you recommend for use with the BGM13S module?
I tried looking for the one that is mentioned in the datasheet 1TJG125DP1A0012 and can not find availability of it and cannot find a datasheet for it either.
A complete list of recommended crystal list is given in section 8.2, table 8.3 of our Application Note AN0016.1 rev 1.31.