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

[On-Chip Debugger] Fix JTAG timing #216

Merged
merged 4 commits into from
Nov 22, 2021
Merged

[On-Chip Debugger] Fix JTAG timing #216

merged 4 commits into from
Nov 22, 2021

Conversation

stnolting
Copy link
Owner

This PR reworks the JTAG signal synchronization logic of the DTM (debug transfer module). The pre-PR version of the DTM did not fully comply with the JTAG interface timing requirements (sample TDO and TMS on the rising edge of TCK, update TDO on the falling edge of TCK).

This seems to cause some compatibility troubles with the JLINK EDU as reported by @emb4fun. It would be great if you could test the reworked DTM 😉

This PR also includes some code clean-ups of the DTM code and also removes the number of recommended debugger wait states to allow faster JTAG operations.

@stnolting stnolting added the HW hardware-related label Nov 22, 2021
@stnolting stnolting self-assigned this Nov 22, 2021
@stnolting stnolting marked this pull request as ready for review November 22, 2021 19:22
@emb4fun
Copy link
Collaborator

emb4fun commented Nov 22, 2021

The J-Link EDU now works with the new PR up to its maximum frequency of 15MHz.
And an Ultra + it went up to 20MHz with a CPU frequency of 100MHz.

@stnolting
Copy link
Owner Author

Great to hear! Thanks for the feedback! 👍

@stnolting stnolting merged commit 72b6209 into master Nov 22, 2021
@stnolting stnolting deleted the ocd_jlink_edu_support branch November 22, 2021 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HW hardware-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants