Mohamed Ayman created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1195

Project:Branches: mohamedayman23/rtems:fix-CREAD-enable-recevier to 
rtems/rtos/rtems:main
Author:   Mohamed Ayman



arm/stm32h7: Fix UART CREAD flag logic

The stm32h7_uart_set_attributes function incorrectly set the UART mode to 
UART_MODE_RX when the POSIX CREAD (Enable Receiver) flag was cleared in the 
termios control flags.

This inadvertently disabled the transmitter (breaking console output) and left 
the receiver enabled, which is the exact opposite of the intended behavior.

This commit fixes the fallback logic to set the mode to UART_MODE_TX when CREAD 
is not set, ensuring that the console can still transmit data while reception 
is properly disabled.

![Screenshot from 2026-04-10 
09-24-11.png](/uploads/ab5bbf7d95adf1ea417e40bd0b28c21f/Screenshot_from_2026-04-10_09-24-11.png){width=900
 height=426}

![Screenshot from 2026-04-10 
09-25-20.png](/uploads/65c16161fda0830b3e55de0292a0b325/Screenshot_from_2026-04-10_09-25-20.png){width=900
 height=275}

![Screenshot from 2026-04-10 
09-25-52.png](/uploads/d2bbde63a246176ec1d9b32693e12afb/Screenshot_from_2026-04-10_09-25-52.png){width=835
 height=148}

AI Usage: None

AI Prompt: None

AI Model: None

How AI used: None

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1195
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to