This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541 SBL function

Other Parts Discussed in Thread: CC2541, CC-DEBUGGER

Hello,

I use SBL function of CC2541 to test encrypted bootloader and then burn image via serialBootTool downloader.
Some chip is no problem but some will continue to reset the situation appears.
If no use encrypted bootloader function just only burn image via cc-debugger tool.That's OK.

I try to add HCI_EXT_HaltDuringRfCmd(HCI_EXT_HALT_DURING_RF_DISABLE) with HCI_EXT_ClkDivOnHaltCmd (HCI_EXT_DISABLE_CLK_DIVIDE_ON_HALT) function in my code.Please refer to the following code.
After add two function all of CC2541 chips are no problem when I test SBL function.Tell me why?
Will there be another side effect?

int main(void)

{

  /* Initialize hardware */

  HAL_BOARD_INIT();

 

  // Initialize board I/O

  InitBoard( OB_COLD );

 

  /* Initialze the HAL driver */

  HalDriverInit();

 

  /* Initialize NV system */

  osal_snv_init();

  

  HCI_EXT_HaltDuringRfCmd(HCI_EXT_HALT_DURING_RF_DISABLE);

  HCI_EXT_ClkDivOnHaltCmd (HCI_EXT_DISABLE_CLK_DIVIDE_ON_HALT);  

 

 

  /* Initialize the operating system */

  osal_init_system();

 

  /* Enable interrupts */

  HAL_ENABLE_INTERRUPTS();

 

  // Final board initialization

  InitBoard( OB_READY );

 

  #if defined ( POWER_SAVING )

    osal_pwrmgr_device( PWRMGR_BATTERY );

  #endif

   

  

  /* Start OSAL */

  osal_start_system(); // No Return from here

 

  return 0;

}