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

2 Linux Fixes #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

2 Linux Fixes #24

wants to merge 2 commits into from

Conversation

xxxajk
Copy link

@xxxajk xxxajk commented Nov 15, 2015

Fix 1 adds a new makefile that allows full dynamic linking on Linux. This is the only way pic32prog is able to build on my system.
Fix 2 adds the DTR|RTS toggle on serial for any non-windows OS. This fixes the problem with detecting the UNO32. I don't have windows, but the fix is similar, therefore I have not included it as a patch. However code that should work will look something like this:

EscapeCommFunction(fd, CLRDTR);
EscapeCommFunction(fd, CLRRTS);
usleep(250*1000);
EscapeCommFunction(fd, SETDTR);
EscapeCommFunction(fd, SETRTS);
usleep(50*1000);

Hope this helps.

@sergev
Copy link
Owner

sergev commented Sep 24, 2019

Merged into a separate branch: https://github.com/sergev/pic32prog/tree/serial-dtr
Need to check it on Windows.

@sergev sergev self-assigned this Sep 24, 2019
@sergev sergev added enhancement in development The topic is currently under development labels Sep 24, 2019
@xxxajk
Copy link
Author

xxxajk commented Sep 25, 2019

Glad to see that you finally have begun to see the use case. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement in development The topic is currently under development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants