I used your code in an empty project and programmed the device. I was able to observe the data on the UART pins.
Have you enabled/configured the P9_0 and P9_1 pins in the Device Configurator? Can you please import an empty project, paste your code and let me know if it works?
Also, can you share your entire project so that I can have a look?
Thanks and Regards,
Rakshith M B
Thank you for confirming.
You're right, it works. Turns out I did a silly mistake by passing an integer value as the last parameter to cyhal_uart_write() when it expects a pointer and this caused the fault.
Thank you for providing an update on this thread!