LPC11xx resets with UARTSend function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC11xx resets with UARTSend function

566件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bdscouter on Sun Aug 04 23:11:00 MST 2013
This is my first project with the LPC uProcessor. 
All functions work correctly with the LPCXpresso LPC1115 development PCB.  However, on my project PCB everything works perfect, except the UARTSend function.  The program gets to the  "LPC_UART->THR = *BufferPtr;" statement and resets. The action is the same with LPC1115 and LPC1113 uProcessors. I can disable the transmit calls and everything else works great. Any help in solving this problem would be appreciated.

I am using the sample UART code.  My code is:

void UARTSend(uint8_t *BufferPtr, uint32_t Length)
{
  while ( Length != 0 )
  {
    /* THRE status, contain valid data */
    while ( !(LPC_UART->LSR & LSR_THRE) );
    LPC_UART->THR = *BufferPtr;
    BufferPtr++;
    Length--;
  }
  return;
}
#endif



ラベル(1)
0 件の賞賛
返信
0 返答(返信)