-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add DirtyPico360 #46
Open
ThisIsCheez
wants to merge
16
commits into
Octal450:dev
Choose a base branch
from
ThisIsCheez:DirtyPico-3.3.0-r2-Merged
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add DirtyPico360 #46
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… working on SVF flashing without false failure error
Dirty pico360 3.3.0 to 3.3.0 r2
Update DirtyPico360 Fork To Octal 3.3.0 r2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
2nd time submitting this. Updated to reflect your new version of 3.3.0r2
This adds functionality of using a Raspberry Pi Pico to flash Xilink based glitch chips using a combination of Pico-DirtyJtag Pico firmware and a newer build of UrJtag that supports LibUSB 1.0 and DirtyJtag.
The current version of UrJtag in J-Runner with Extras that is used for the xFlasher is an older version that does not support DirtyJtag. The newer build does not replace the current UrJtag build used for the xFlasher, but instead is in it's own directory of common/dirtypico. This was done to ensure no functionality with the xFlasher was not impacted nor needed testing, and the cross-compiled build of UrJtag only has LibUSB 1.0 driver support. The needed dll files, uf2 file for flashing the DirtyJtag firmware, and most recent copy of Zadig (needed for installing a signed copy of the libUSB-win32 drivers) are also found in common/dirtypico
The DirtyPico.cs class is mostly a copy and paste of SVF flashing portion of the xFlasher class since they both use UrJtag. Because of the way this build of UrJtag was cross-compiled, / or \ is required in the file paths when searching for a svf file. It will not recognize a single \ in the file path. You will notice to combat this I had to use static paths for svfPath and svfRoot since the original method of copying/storing the temp SVF file echoed the path with . The new temp storage location for the SVF file can be found @common/dirtypico/svftemp so the J-Runner folder can still be placed anywhere.
The proper VIP and PID have been added for J-Runner to properly detect the DirtyPico is connected, rules added so J-Runner is aware the DirtyPico can flash SVF files, and a logo has been added to resources. The downfall of DirtyJtag is it seems to fail/not understand the verification port of the SVF files. I do not understand enough about SVF files or FPGA flashing to know why this occurs. Because of this the "progress" argument in UrJtag is broken when using DirtyJtag, so we cannot use the same checks for a successful flash as the xFlasher and UrJtag does. The checks the xFlasher build of UrJtag uses is:
if (strLower.Contains("99%"))
But because we cannot get a progress on the DirtyJtag build of UrJtag the following is used:
if (strLower.Contains("between"))
This is used because UrJtag will display a "TDO mismatch error between XX and XX" when attempting to flash a glitch chip with a DirtyJtag device. In my experience this is simply caused by the verification portion of the SVF file but the timings are still programmed properly. If the SVF completely fails to flash then you will receive a genuine failure message, so looking for "between" in the final line of UrJtag is the best solution I have for reporting a successful flash in J-Runner.
Thank you, and look forward to your review, Josh.
UrJtag was cross-compiled from version 2021.03: https://sourceforge.net/projects/urjtag/files/urjtag/
DirtyJtag firmware was compiled from Pico-DirtyJtag v1.04: https://github.com/phdussud/pico-dirtyJtag