Part Number: CC2640
Other Parts Discussed in Thread: SYSBIOS
Hi Ti experts,
i am try to make a product with simple peripheral or Time_App Project.
actually, my work is almost finished but, at the last, critical problem is occured.
My situation is like below...
the ISSUE is ADVERTISING problem.
DEV Envierment is..
SDK 2.2.1
Sensor control interface.
Base project is Time_App.
function is
Getting sensor data with SCIF.
SCIF will wake up System CPU every 1sec.
Somtimes, SCIF will wake up System CPU except 1sec interval.
and i used UART for Debuging.
with this situation
if i build with UART FUNCTION, ADVERTISING is not a problem(i think....many HW will be fine more then 3~5 days)
but without UART Function, ADVERTISING will stoped wi no reason.
problem is occured, Just keep do nothing except power up, at least 5 hours and more. Not every device just some of devices 10 to 20 %?
with JTAG there is no problem
with UART sometime but at that time there was problem with antana setting like single end or diffential and bias, (with this option, advertising problem occured more times like 50%? without UART , even UART is used like 5%?)
My SW is applied infinity advertising mode (general mode, not like limitied mode ex.30 sec something)
I Check Task with indicatior, other function is working (like clock...)
two diff code are below..
file: app_ble.cfg
without DEBUG
///* Uart printout */
//var Idle = xdc.useModule('ti.sysbios.knl.Idle');
//Idle.addFunc('&uartPrintf_flush');
//SysCallback.putchFxn = "&uartPrintf_putch";
file:board.h
#ifdef DEBUG
#define Board_UART_RX IOID_1 /* P1.7 */
#define Board_UART_TX IOID_0 /* P1.9 */
#else
#define Board_UART_RX PIN_UNASSIGNED /* P1.7 */
#define Board_UART_TX PIN_UNASSIGNED /* P1.9 */
#endif
file: main.c
#ifdef DEBUG
// For uart printf
#include "./uart_printf.h"
#include "./uart_printf.c"
#include <xdc/runtime/System.h>
#endif
#ifdef DEBUG
UART_Params uartParams;
UART_Params_init(&uartParams);
uartParams.baudRate = 115200;
UartPrintf_init(UART_open(Board_UART, &uartParams));
System_printf("********************\r\n");
System_printf("Start Main.\r\n");
System_printf("********************\r\n");
#endif