-
Notifications
You must be signed in to change notification settings - Fork 269
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
efinix: add spiOverJtag support for Ti180J484 #481
Conversation
src/efinix.cpp
Outdated
uint32_t timeout = 1000; | ||
_spi->gpio_clear(_rst_pin); | ||
|
||
return reinterpret_cast<SPIInterface *>(_spi)->detect_flash(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
…ne tries it out for sure
Applied. Thanks @jwise ! |
while we are in here, beef up the existing efinix.cpp to be able to detect_flash and dump_flash via SoJ, too