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

efinix: add spiOverJtag support for Ti180J484 #481

Merged
merged 4 commits into from
Aug 31, 2024

Conversation

jwise
Copy link
Contributor

@jwise jwise commented Aug 20, 2024

while we are in here, beef up the existing efinix.cpp to be able to detect_flash and dump_flash via SoJ, too

src/efinix.cpp Outdated
Comment on lines 237 to 240
uint32_t timeout = 1000;
_spi->gpio_clear(_rst_pin);

return reinterpret_cast<SPIInterface *>(_spi)->detect_flash();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compared to dumpFlash here the FPGA isn't reseted after, no?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested this method in SPI mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confess I have not tried this in anything other than SoJ mode -- my Ti180 board only supports JTAG. Indeed, it does not reset the FPGA afterwards, I think (unless post_flash_access does that?). Looks like I copied this from dumpFlash. Maybe both dumpFlash and this should be refactored to call reset(), which does the same thing? Though as mentioned, I cannot test that on my board, so either way, I would be implementing it blind.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated this to disallow that path entirely until someone gets to test it.

@trabucayre trabucayre merged commit 81422b6 into trabucayre:master Aug 31, 2024
14 checks passed
@trabucayre
Copy link
Owner

Applied. Thanks @jwise !

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.

2 participants