openocd: 0.11.0 jtagspi driver doesn't work properly with n25q256 #62
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When we use the current stable 0.11.0 of openocd on our Sinara controllers (Kasli, Metlino, Sayma, etc.), the wrong SPI commands will be sent because the on-board flash device, Micron 256Mb NOR flash (equivalent to
n25q256
in openocd source code due to matching device ID), is defined with 4-byte addressing SPI commands (since commit ntfreak@42f1cc57
) while the jtagspi driver is only compatible with the standard 3-byte addressing mode. IMO the ARTIQ package should take care of this.To my knowledge, there are 4 types of workaround:
Fix in openocd upstream: this is being discussed over http://openocd.zylin.com/#/c/4876/.
Adopt jordens' fix: modify m-labs/openocd@
1739532081
to resolve conflicts with openocd upstream.Adopt a simple patch by LambdaConcept: this patch file is provided on their online manual; but this simply neglects the possibility of accessing memory beyond 125Mb.
Revert recent changes to nix-scripts (e.g.
c9efc20aeb
): It is at least safe to use our own fork on the older openocd 0.10.0 with proxy bitstream support.