Hi Hasan,
If you want to use UART2 and PORTE modules, you need enable their clock gates manually first.
The PE has enabled these clock gates automatically.
See below image:

Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------