Other Parts Discussed in Thread: SYSCONFIG
I'm testing the simple_peripheral example with PTM mode. After checking the PTM box from sysconfig, the example was able to build without error. But the UART display stops working, even if I have tried comment out the PTM initialization code in SimplePeripheral_init:
// Intercept NPI RX events. NPITask_registerIncomingRXEventAppCB(simple_peripheral_handleNPIRxInterceptEvent, INTERCEPT); // Register for Command Status information HCI_TL_Init(NULL, (HCI_TL_CommandStatusCB_t) simple_peripheral_sendToNPI, NULL, selfEntity); // Register for Events HCI_TL_getCmdResponderID(ICall_getLocalMsgEntityId(ICALL_SERVICE_CLASS_BLE_MSG, selfEntity)); // Inform Stack to Initialize PTM HCI_EXT_EnablePTMCmd();
The BLE advertising and connection works as normal, but there is no UART display output. I noticed there is some UART initialization code in NPITLUART_initializeTransport, which is called from NPITask_task, does this conflicts with the UART initilazation in application task?
Best regards,
Shuyang