pymcuprog icon indicating copy to clipboard operation
pymcuprog copied to clipboard

Commandline option to explicitly set the DTR-line

Open wimalopaan opened this issue 2 years ago • 7 comments

For UPDI it would be very helpfull to have an cmd-line option to explicitly set the DTR-line of the attached serial device that is used for the UPDI. The DTR-line the should be held low or high as given on the cmd-line for the whole UPDI programming sequence.

Surely, this is kind of abuse of the DTR-line.

But this could be very helpfull in case one has a µC-board with two UPDI-capable µC on board. With this both µC could be programmed using the same serial line and without manual switching on the board.

Thanks.

wimalopaan avatar Mar 24 '23 08:03 wimalopaan

Logged as DSG-6211

xedbg avatar Mar 27 '23 08:03 xedbg

Ist there a seperate issue tracker to which DSG-6211 belongs?

wimalopaan avatar Mar 27 '23 12:03 wimalopaan

@wimalopaan - no, DSG is a MIcrochip internal Jira tracker

xedbg avatar Mar 27 '23 12:03 xedbg

Ok, I wasn't aware that this is an official MicroChip project.

wimalopaan avatar Mar 27 '23 12:03 wimalopaan

Ok, I wasn't aware that this is an official MicroChip project.

wimalopaan avatar Mar 27 '23 12:03 wimalopaan

Is this actively being worked on? Is there even a target milestone or date? I could use this very soon and was under the impression that it already exists. I'm currently browsing the code and trying hard to follow the convoluted paths of where things go to and come from. But maybe I'll just add this feature to the old pyupdi tool instead.

ygoe avatar May 16 '24 19:05 ygoe

hi @ygoe and @wimalopaan and sorry for the delayed response. The serialUPDI implementation in pymcuprog is provided for convenience as a reference. During development and test we use the onboard CDC of Curiosity Nanos looped back to its own UPDI line - this is practical since pymcuprog is a vital part of testing and QA of the Curiosity Nano platform for Microchip. Unfortunately we can't afford the time to integrate all feature requests, specially those which may be dependent on custom hardware (like CDC/UART adapters).

xedbg avatar Jul 17 '24 06:07 xedbg