Hi,
You gave us only part of code, I do not know if you understand how to initialize the SWM:
Enable_Periph_Clock(CLK_SWM);
SWM->PINASSIGN_DATA[0]=0x0000;
SWM->PINASSIGN_DATA[0]|=4<<0|0<<8;
Then PIO0_4 will function as UIART0_TXD, PIO0_0 will function as UART0_RXD
If the uart0 receiver can not get char, pls check the baud rate.
Hope it can help you
BR
XiangJun Rong
Hi,
Pls write a code to repeat to output char, then connect a scope to an scope and check if you can see the waveform and check the baud rate.
Hope it can help you
BR
XiangJun Rong