Hi, I'm not good at English, so please consider it.
I have a problem occurred while converting the Green Hills Serial Bootloader example project to the S32 Design Studio project.
Putchar(), a function that transmits serial data in the Green Hills Bootloader source code, was changed by applying the LINFLEXD driver.
But when I check the data transmitted using the serial terminal program, there is a problem.
The original source code is as follows.
/* display menu */
OutStr("\r\n1.) Erase Flash\r\n");
OutStr("2.) Program Flash\r\n");
OutStr("3.) Execute Application\r\n");
OutStr("Please choose 1 to 3: ");
However, the terminal program is output as follows.

No output since "Pleas"
When checked with the Trace32 debugger, it is stuck on the while(TxBAvail == 0) line of the Putchar() function.

The bigger problem is that if I put a breakpoint on the line (TxBAvail == 0), and run the program step by step, it will output correctly to the terminal program as shown below.

I would appreciate it if you could tell me how to modify the putchar() function to work properly.
I will attach my project file.
Thanks:)