Thank you for all your answers and clarifications. If I understand correctly this code snippet should do the trick ?
I added this to my test code and it clears the register but the data stream is still corrupted.
The strings in the buffer should look like this:
Code:
hw_set_bits (&uart_get_hw(uart1)->rsr, UART_UARTRSR_BITS)
Code:
0000: 81 4d d1 85 d1 d5 cd f5 1d 3d 3d 11 c9 c1 c9 e9 |.M.......==.....|0000: c9 c1 dd e9 81 4d d1 85 d1 d5 cd f5 1d 3d c5 c1 |.....M.......==.|0000: cd 51 c5 d5 e9 c5 c1 e9 c9 dd e9 81 4d d1 b5 c5 |.Q..........M...|0000: e9 81 4d d1 85 d1 d5 cd f5 1d 3d 3d 11 c9 c1 c9 |.......Q........|Clearing RSR registerbefore: rsr: 0x1after.: rsr: 0x00000: 3d 3d 11 c9 c1 c9 d1 b5 c5 c9 b5 c5 cd 51 c5 d5 |........M.......|0000: 11 c9 c1 c9 d1 b5 c5 c9 b5 c5 cd 51 c5 d5 3d 3d |...........Q....|0000: e9 81 4d d1 85 d1 d5 51 c5 d5 e9 c5 11 c9 c1 c9 |.......Q........|0000: f5 1d 3d 3d 11 c9 c1 c9 d1 b5 c5 c9 b5 c5 cd 51 |..........M.....|
Code:
0000: 2d 74 61 74 75 73 3d 45 35 3a 31 34 3a 33 32 3a |-12-13T15:14:32:|...0000: 33 3a 20 53 74 61 74 75 54 31 35 4f 4f 44 32 30 |24-12-13T15:14:3|
Statistics: Posted by skullhornet — Fri Dec 13, 2024 2:16 pm