Closed neuschaefer closed 10 months ago
There isn't an off by one in the code; the problem is that new manufacturer IDs have been added since the last update of the database in Glasgow, and the code deals badly with an out-of-bounds bank number (which I fix in #512).
I'd gladly update the database if you can point me to a newer version of JEP106 PDF.
Oh huh. The PDF is actually a free download. I'll just update the database then.
Thanks for the fix in #512.
The device that I'm scanning isn't particularly new (so the update doesn't help me in this case), I think it just reports a bogus manufacturer ID.
I am trying to scan a device with IDCODE=0x07926f0f, manufacturer=0x787, but
jedec_mfg_name_from_bank_num
fails:The
_manufacturers
array contains bank 1 to bank 15, which amounts to 15 banks (not 16), so bank 15 is out of bounds.I suspect that the JEP106 conversion script might have an off-by-one error and generate one too few entries, but I might also be misunderstanding how these manufacturer IDs and banks work.