I have a TFT display with a resolution of 800x480 and STM32F429. Used the code from here https://community.st.com/s/question/0D50X0000A1lVxsSQE/repost-change-lcd-orientation-in-180-degree , everything works fine in the simulatorand separately tested ...