Skip to content

simplify UART handler, require Micropython version >=1.26#166

Merged
ThomasAkam merged 1 commit intopyControl:devfrom
alustig3:dev
Dec 2, 2025
Merged

simplify UART handler, require Micropython version >=1.26#166
ThomasAkam merged 1 commit intopyControl:devfrom
alustig3:dev

Conversation

@alustig3
Copy link
Contributor

@alustig3 alustig3 commented Dec 2, 2025

previously, there was oddness with the pyboard v1.1 (STM32F4) IRQ_RXIDLE
from the UART docs:

On STM32F4xx MCU’s, using the trigger UART.IRQ_RXIDLE the handler will be called once after the first character and then after the end of the message, when the line is idle

This difference in how IRQ_RXIDLE worked on pyboard v1.1 and pyboard d-series led to added complexity in UART_handler class where you had to specify mcu=STM32_F4 or mcu=STM32_F7

The extra trigger after the first character has now been fixed in Micropython v1.26
from release notes:

extmod_hardware/machine_uart_irq_rxidle.py: ignore inital IRQ

This commit has changes that simplify the UART_handler class, with the caveat that it now requires Micropython >= 1.26

@ThomasAkam
Copy link
Collaborator

Thanks Andy

@ThomasAkam ThomasAkam merged commit feea477 into pyControl:dev Dec 2, 2025
@alustig3 alustig3 deleted the dev branch December 2, 2025 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants