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

Firmware assumes JTAG in RESET state in jtag_init() #29

Open
mossmann opened this issue Oct 11, 2023 · 0 comments
Open

Firmware assumes JTAG in RESET state in jtag_init() #29

mossmann opened this issue Oct 11, 2023 · 0 comments

Comments

@mossmann
Copy link
Member

jtag_init() in jtag_tap.c uses jtag_set_current_state(STATE_TEST_LOGIC_RESET) which sets the microcontroller's understanding of the state to Test-Logic-Reset without actually ensuring that the FPGA's JTAG TAP is in that state. This is worked around by calling jtag_go_to_state(STATE_TEST_LOGIC_RESET) immediately after calling jtag_init() (which is done from the host side with vendor request REQUEST_JTAG_GO_TO_STATE after REQUEST_JTAG_START) every time JTAG is initialized.

This is arguably a bug, but it needs further investigation and test.

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

1 participant