Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing RTS/DTR management feature to serialupdi programmer #811

Merged
merged 8 commits into from
Jan 14, 2022

Conversation

dbuchwald
Copy link
Contributor

Hello, this PR contains all the additional changes to SerialUPDI programmer, enabling forcing DTR/RTS lines low/high during UPDI programming session. This could be used by dedicated hardware to indicate UPDI operation.
Documentation about extra parameters has also been updated.

@mariusgreuel
Copy link
Contributor

Don't mind the failed msvc builds. Chocolatey seems to have issues (again!)...

@MCUdude
Copy link
Collaborator

MCUdude commented Jan 8, 2022

@dbuchwald there are some tabs in serialupdi.c that probably should be replaced by spaces. Other than this, I've tested it and it's working perfectly. Thank you!

https://github.com/avrdudes/avrdude/pull/811/files#diff-79a97a0f99f34b4d18cc664ce2536146c0821315fdbe772add729526f1087c7bR948-R958

src/serialupdi.c Outdated
for (ln = lfirst(extparms); ln; ln = lnext(ln)) {
extended_param = ldata(ln);

if (sscanf(extended_param, "rtsdtr=%4s", rts_mode) == 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbuchwald can you replace the tabs with spaces on line 948, 957 and 958?
Thanks!

@dbuchwald
Copy link
Contributor Author

Done. Sorry for the delay, got infected with COVID-19 and spent last couple of days on the edge of reality. Seems like I might be coming back though.

@MCUdude
Copy link
Collaborator

MCUdude commented Jan 14, 2022

Done. Sorry for the delay, got infected with COVID-19 and spent last couple of days on the edge of reality. Seems like I might be coming back though.

No worries! I hope you recover quickly and don't have any long-term effects. I've somehow managed to not be infected yet, but the statistics tell me there's just a matter of time before it happens.

@dl8dtl do you have a comment, or is it all good and can be merged? I'm going to use this on a programmer I've recently designed that will automatically switch between UPDI and UART mode based on this signal.

image

@dl8dtl
Copy link
Contributor

dl8dtl commented Jan 14, 2022

do you have a comment, or is it all good and can be merged?

Only reason for not already merging it last night was that I wanted to copy&paste Dawid's documentation about the extended parameter handling over to avrdude.1 as well. I just did that, so I'm going to merge it.

@MCUdude
Copy link
Collaborator

MCUdude commented Jan 14, 2022

Great, thanks!

@dl8dtl dl8dtl merged commit b99687f into avrdudes:main Jan 14, 2022
dl8dtl added a commit that referenced this pull request Jan 14, 2022
@mcuee mcuee added the enhancement New feature or request label Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants