This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

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);
}

x 出现错误。请重试或与管理员联系。