Skip to content

Conversation

@DeqingSun
Copy link
Contributor

There used to be a 30ms interval between 2 debugWIRE access.

screen shot 2018-11-06 at 1 14 11 pm

It seems dwReadBytes wait 23ms after receiving the last byte.

dwreadbytestakes23mstoexit

So I added a test in dwReadBytes, if the coming byte is not the 1st one, it will only wait for about 1 Byte's time.

dwreadbytestakesabout1bytetoexit

At this moment, the interval between 2 debugWIRE access reduced to 6ms.

In previous implementaion, the DebugWIRE func waited 2ms to for all USB transactions to complete. Now it waits 100us, if there is USB transactions, it waits for another 100us.

If there is no USB transactions for 100us, the function will proceeed.
When using SIGTRAP (singal 5), VScode no loger show exception warning, and continue works properly.
@DeqingSun
Copy link
Contributor Author

Now the branch has been both tested in OSX 10.13 and Win7

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.

1 participant