TI中文支持网
TI专业的中文技术问题搜集分享网站

PTM(dtm MODE) issue

hi all,

我需要進入PTM(DTM) mode來做RF 及GPIO 控制.

但都無法進入,

gap device GAP device initialzation Timeout.
Device May Not Functiion Properly.

是否有那裡有問題.

參照

http://processors.wiki.ti.com/index.php/PTM_(Production_Test_Mode)

因為usb-uart 所以,改用cc2541 keyfob button 3進入.

及uart 為no flow,

void llSetupPTMTestPort( void ){

P0SEL &= 0xFC; // Configure Port 0,0,1 as GPIO
P1SEL &= 0xFC; // Configure Port 1,0,1 as GPIO P0DIR &= 0xFC; // Port 0 pins P0.0 and P0.1 as input (buttons),
P1DIR |= 0x03; // Port 0 pins P1.0 and P1.1 as led output, P0 |= 0x03; // All pins on port 0 to low except for P0.0 and P0.1 (buttons) P1 &= 0xFC; // All pins on port 0 to low except for P0.0 and P0.1 (buttons)

return;
}

void SimpleBLEPeripheral_Init( uint8 task_id )
{
simpleBLEPeripheral_TaskID = task_id;

llSetupPTMTestPort();
if ( TESTER_CONNECTED() )
{
(void)osal_pwrmgr_task_state( task_id, PWRMGR_HOLD );
P1_1=1;
HCI_EXT_EnablePTMCmd();
}
else
{
// Setup the GAP
VOID GAP_SetParamValue( TGAP_CONN_PAUSE_PERIPHERAL, DEFAULT_CONN_PAUSE_PERIPHERAL );

……..

}

LIb

CC2541_BLE_peri.lib and CC254x_BLE_HCI_TL_peri.lib

preprocessor:

INT_HEAP_LEN=3072
HALNODEBUG
OSAL_CBTIMER_NUM_TASKS=1
HAL_AES_DMA=TRUE
HAL_DMA=TRUE
xPOWER_SAVING
xPLUS_BROADCASTER
HAL_LCD=FALSE
HAL_LED=FALSE
HAL_KEY=FALSE
HAL_UART

HAL_DMA=TRUE

SDK:

BLE-CC254x-1.4.1.43908

HW.

CC2541 keyfob

View post on imgur.com

View post on imgur.com

yajun Yin:

你好,请问PTM问题解决了没有?可以指教我一下么?关于PTM的代码修改问题。。

bin xu8:

你好,我现在弄PTM,发现我根据文档修改simpleBLEPeripheral工程失败,江湖救急。。。。。。qq 353662337

bin xu8:

你好,我现在弄PTM,发现我根据文档修改simpleBLEPeripheral工程失败,江湖救急。。。。。。

赞(0)
未经允许不得转载:TI中文支持网 » PTM(dtm MODE) issue
分享到: 更多 (0)