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

Implement USB CDC control lines (RTS, DTR) #3

Open
kaofishy opened this issue Apr 24, 2017 · 2 comments
Open

Implement USB CDC control lines (RTS, DTR) #3

kaofishy opened this issue Apr 24, 2017 · 2 comments

Comments

@kaofishy
Copy link

Are there any plans to implement hardware control lines for the USB to serial port on dap42? I looked over the source and it seems to only require adding a callback to cdc_setup(), or am I missing something? Having controllable RTS and DTR is very useful when programming an MCU over serial bootloader as they can be used to reset and/or put the MCU into programming mode.

(Great project BTW, I've found it very useful when I want a quick and dirty ARM debugger and USB serial port)

@devanlai
Copy link
Owner

I'm not too likely to add support for hardware control lines since I don't normally use them, though I can see the appeal of having GPIO that can be controlled from a serial API.

If you want to try doing it yourself, it should be a simple as you say - registering a callback in cdc_setup() to allow the host to set the DTR/RTS state and de-asserting DTR/RTS in cdc_uart_app_reset() when the host gracefully closes the connection.

Thanks for the feedback - I use my boards for exactly the same thing - it's great to hear that someone else is able to make use of it.

@kaofishy
Copy link
Author

Thanks, I'll play around with the code and if I don't butcher it too much I may submit a pull request.

dallmair added a commit to selfbus/sbdap that referenced this issue Oct 15, 2024
Adds compatibility with NXP Flash Magic for flashing NXP MCUs.

Implements devanlai#3
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

No branches or pull requests

2 participants