Request for Code Review and Support for DTC and UART Transmission Issue on R5F10BGD

Hi Team,

I am sharing with you the DTC and UART individual code for the R5F10BGD microcontroller. I am trying to transmit 17 bytes of data on UART through DTC.

In this code, I am using UART1 for reception and transmission and DTC1 in repeated mode for copying the RAM data (local data variable which needs to be transmitted) to the UART transmit SFR register (SDR10L).

I observed that I get the expected data on the first try after resetting the microcontroller, but I do not get it on the second try.

I kindly request you to review the code and provide the required support. If any more input is required, kindly let me know.