Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS/LAUNCHXL-CC2650: Issues in adding UART echo functionality to simple_peripheral project

$
0
0

Part Number:LAUNCHXL-CC2650

Tool/software:TI-RTOS

Hi,

I have edited the simple_peripheral project of BLE_Stack_SDK as according to this guide till step 3 of 'Steps for out of box' section.But neither the characters typed from the terminal are echoed back to the terminal nor the simple_peripheral app is exposed(not showing in BLE Scanner application of my cell phone).

Here is the main function:-

int main()
{
#if defined( USE_FPGA )
  HWREG(PRCM_BASE + PRCM_O_PDCTL0) &= ~PRCM_PDCTL0_RFC_ON;
  HWREG(PRCM_BASE + PRCM_O_PDCTL1) &= ~PRCM_PDCTL1_RFC_ON;
#endif // USE_FPGA
  
  /* Register Application callback to trap asserts raised in the Stack */
  RegisterAssertCback(AssertHandler);

  PIN_init(BoardGpioInitTable);

#ifdef CC1350_LAUNCHXL
  // Enable 2.4GHz Radio
  radCtrlHandle = PIN_open(&radCtrlState, radCtrlCfg);
  
#ifdef POWER_SAVING
  Power_registerNotify(&rFSwitchPowerNotifyObj, 
                       PowerCC26XX_ENTERING_STANDBY | PowerCC26XX_AWAKE_STANDBY,
                       (Power_NotifyFxn) rFSwitchNotifyCb, NULL);
#endif //POWER_SAVING
#endif //CC1350_LAUNCHXL

#if defined( USE_FPGA )
  // set RFC mode to support BLE
  // Note: This must be done before the RF Core is released from reset!
  SET_RFC_BLE_MODE(RFC_MODE_BLE);
#endif // USE_FPGA
  
  // Enable iCache prefetching
  VIMSConfigure(VIMS_BASE, TRUE, TRUE);

  // Enable cache
  VIMSModeSet(VIMS_BASE, VIMS_MODE_ENABLED);

#if !defined( POWER_SAVING ) || defined( USE_FPGA )
  /* Set constraints for Standby, powerdown and idle mode */
  // PowerCC26XX_SB_DISALLOW may be redundant
  Power_setConstraint(PowerCC26XX_SB_DISALLOW);
  Power_setConstraint(PowerCC26XX_IDLE_PD_DISALLOW);
#endif // POWER_SAVING | USE_FPGA

  /* Initialize ICall module */
  ICall_init();

  /* Start tasks of external images - Priority 5 */
  ICall_createRemoteTasks();
  
  /* Kick off profile - Priority 3 */
  // priority changed to 2 for uart
  GAPRole_createTask();

  SimpleBLEPeripheral_createTask();

  
  /* NPI UART Example Task - Priority 2 */
  NPITask_createTask(2);    
  ti_sysbios_knl_Semaphore_Handle appSem = Semaphore_create(0, NULL, NULL);


  /* enable interrupts and start SYS/BIOS */
  BIOS_start();

  return 0;
}



The main.c file is also attached herein for easy verification.

(Please visit the site to view this file)

Thanks in advance.

Regards,

Arunava.

Note:-

1) I found this too and had gone through it for better understanding.

2) I'm using ZOC7 as the terminal emulator.


Viewing all articles
Browse latest Browse all 262198

Latest Images

Trending Articles



Latest Images