Static

You inherited a UART line echo processor. It should receive text lines over USART1 (115200 baud, 8N1) and echo each one back with an "RX:" prefix.

For example, sending "hello\n" should produce: RX:hello

Sending two lines "hello\n" then "world\n" should produce: RX:hello RX:world

The code compiles without warnings but produces no output at all. The register dump artifact shows the USART1 configuration after init. Find and fix all the bugs. When fixing the baud setup, program BRR with the peripheral clock divided by the baud rate, rounded to the nearest whole number.

Loading the interactive arena.