cancel
Showing results for 
Search instead for 
Did you mean: 

Bluenrg-m2 32KHz clock issue

Aperu.11
Associate

I am using Bluenrg-m2sp module and, I have flashed it from serial wire provision. I have used code provided in examples of "BlueNRG-1_2 DK 3.2.1" folder and program name is "BLE_Chat_Master_Slave". In SystemInit() function, code is waiting for the below condition forever:

/* Wait until HS is ready. The slow clock period 

 * measurement is done automatically each time the

 * device enters in active2 state and the HS is ready.

 * The interrupt signals that a measurement is done.

 */

 while(CKGEN_BLE->CLK32K_IT == 0);

Compile directives used in example:

LS_SOURCE=LS_SOURCE_INTERNAL_RO SMPS_INDUCTOR=SMPS_INDUCTOR_NONE BLE_STACK_CONFIGURATION=BLE_STACK_FULL_CONFIGURATION BLUENRG2_DEVICE HS_SPEED_XTAL=HS_SPEED_XTAL_32MHZ USER_BUTTON=BUTTON_1

I have tried by changing LS_SOURCE to internal 32Khz and XTAL to 16Mhz also. Can someone explain me what is going on in this chip.

Schematic image:0693W000004ImMRQA0.png

0 REPLIES 0