Hello @Florian_37, Good Day!
I was able to test your code and it worked fine for me with some few modifications:
The HIF configuration you described works fine, and I assume this is made in the "initUart()" function, please confirm this, as this part of the code, including the "phhalHif_Init" function should take place right before the "phhalHif_InitRxBuffer" function.
After the "phhalHif_Transmit" function you could consider adding the following lines in order to wait for the transmission to be complete before starting the next iteration.

Please note that in my case the Rx/Tx Callbacks look like this in order to handle the Rx/Tx flags.

I would also like to mention that at first, I did experience some unexpected behavior regarding the Rx interruptions as well as an error in the transmission. These issues were solved by deoptimizing the compiler for the project. This is done by right clicking on the project and selecting Properties > C/C++ Build > Settings > Optimization > Optimization Level > None.

Please let me know if this helps. If not, I would like to ask if you could please share the value of the Interrupt Status (dwIntStatus) you get when entering the "Hif_Generic_Callback".
My best regards,
Daniel