I have a PCB where I connect Bluetooth using UART0 with the MKE06Z128VQH4 MCU. First, I am doing communication tests using an FTDI adapter and the Hercules terminal.
I am using the UART example from the SDK that comes configured for UART1. I configured UART1 and used the example, and it worked well. However, I noticed that when it tries to use printf for debugging, the information arrives truncated in the Hercules terminal.
But that is not the main problem. The problem is that when I try the same example with UART0, it does not work. When I send information from Hercules, I can see that inside the while loop it enters the instruction to send data, which indicates that the information is received and the code attempts to send it. However, nothing appears in the Hercules terminal.
I disabled printf, but I still have the same problem.