-
Notifications
You must be signed in to change notification settings - Fork 267
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
Relax ID matching for the misc_dev #351
base: master
Are you sure you want to change the base?
Conversation
Detect STM32 and AVR8
{0x0ba00077, {"ADIv5 JTAG-DP port", 4}}, | ||
{0x06400041, {"STM32 Device", 5}}, | ||
{0x0ff00ffe, {"ZynqMP dummy device", 12}}, |
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.
The idea here is to provides the full idcode to display exact device (ARM cortex A9 and A53 differs only by upper nibble).
With this modification openFPGALoader will no more able to deal with zynq7000 & zynqMP
found = search_and_insert_device_with_idcode(tmp); | ||
if (!found) /* if masked not found -> search for full */ | ||
found = search_and_insert_device_with_idcode(tmp); | ||
|
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'm not really happy by the original code because some devices (lattice) with high nibble equal to 0 matches wrong version.
I think both mask & unmask search must be switched, but I have to check to be sure to not introduces a regression.
But If you remove mask most of the devices will never been found because in the idcode list most of devices have highest nibble masked to match all revisions, only a few number of them have full idcode.
What about adding a per-vendor handling after looking for the exact match and before the misc match used to long? |
I have planned to convert the one big list to multiple list (one per vendor) yes. |
Detect STM32
Example output: