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

SDK 2.1.0 upgrade to SDK 2.2.25

Hi All

我想將SDK2.1.0 Poject升至SDK2.2.25(5X5),在SDK2.1.0的uart read/write皆是正常的,

我是先在SDK2.2.25加入NPI TL UART,再比對舊版的,幾乎差不多,在SDK2.2.25上

執行uart read後程式會卡在NPITLUART_readTransport()的"key = ICall_enterCriticalSection();"

,不知是什麼原因?

程式如下:
[App]
Power_setConstraint(PowerCC26XX_SB_DISALLOW);
Power_setConstraint(PowerCC26XX_IDLE_PD_DISALLOW);
TL_readTransport();

[tl.c]
void TL_readTransport(void)
{
     NPITL_readTransport();
}

[npi_tl.c]
void NPITL_readTransport(void)
{
     transportRead();
}

[npi_tl.h]
#define transportRead NPITLUART_readTransport

[npi_tl_uart.h]

void NPITLUART_readTransport(void)
{

     ICall_CSState key;

     key = ICall_enterCriticalSection();//<========= fail point

// NPI_FLOW_CTRL = 0
#if (NPI_FLOW_CTRL == 1)
     RxActive = TRUE;
#else
     RxActive = TRUE;
#endif // NPI_FLOW_CTRL = 1

     TransportRxLen = 0;
     UART_read(uartHandle, &isrRxBuf[0], UART_ISR_BUF_SIZE);

     ICall_leaveCriticalSection(key);
}

Viki Shi:

请根据官方的porting guide进行移植:
processors.wiki.ti.com/…/CC2640_Porting_Projects

赞(0)
未经允许不得转载:TI中文支持网 » SDK 2.1.0 upgrade to SDK 2.2.25
分享到: 更多 (0)