I've setup USART1-4 (USART0 configured for debugger output) but can only get Data through USART1 and 2. 3 and 4 cause the MCU to lock up and freeze.
init before my main loop is the same for all USART
PRINTF("Init started\n\r");
USART_TransferCreateHandle(usart_3, &usart3_handle, USARTUserCallback, &callbackUserData3);
PRINTF("Handle created\n\r");
USART_TransferStartRingBuffer(usart_3, &usart13_handle, ringBuffer3, 100);
PRINTF("Init finished\n\r");
Both messages are printed, but when the USART recives data / sends data on 3 or 4 the MCU frezes up and dosn't react to anything. But also there is no stack trace.
When I try to stop the program in debug mode, it seems to always be inside the interrupts. Breakpoints in the main loop never fire after "hanging".
Pins and Clock are configured with the Configuration Tool and looks correct:
#define USART4_PERIPHERAL ((USART_Type *)USART4)
#define USART4_CLOCK_SOURCE 18000000UL
SWM_SetMovablePinSelect(SWM0, kSWM_USART3_TXD, kSWM_PortPin_P0_19);
SWM_SetMovablePinSelect(SWM0, kSWM_USART3_RXD, kSWM_PortPin_P0_18);
SWM_SetMovablePinSelect(SWM0, kSWM_USART4_TXD, kSWM_PortPin_P0_15);
SWM_SetMovablePinSelect(SWM0, kSWM_USART4_RXD, kSWM_PortPin_P0_14);