Argon project consists of two parts:
This driver can be used both with Argon board or any FTDI-based board with SPI flash attached.
Tested with N25Q, S25FL512S and Winbond W25Q flashes.
Remember: different flashes can have various command addresses. If a command does not work on your flash device, there can be two reasons: it can have different address on this particular flash or your flash doesn't support this particular command at all. When in doubt, look into datasheets.
First, download FTDI drivers from their website and make sure your Argon or another FTDI-based flash reader is properly visible in the Device Manager.
There are two execs included in releases section:
argon.exe - manual command line interface (handy on flash debugging)argon_cli.exe - CLI for automation (run argon_cli.exe --help for usage hints). Example usage: argon_cli.exe list, argon_cli.exe --serial FT613ZHMA read_idArgon executables were tested on Windows 10 and 7. For other systems, you would have to build it by yourself.
local-example.cmake - filled with proper FTDI drivers path and copied to folder .local with a name local.cmakelocal.cmake: cmake.exe -DCMAKE_BUILD_TYPE=Debug -DLOCAL_CFG=[project path]/.local/local.cmake [project path]local.cmake: cmake.exe -DCMAKE_BUILD_TYPE=Debug [project path]cmake --build .Read JEDEC IDRead REMSRead SFDPRead status registers (all 4)Read status flagAddress writeMemory readChip eraseCommands:
Erase rangeErase sectorWrite from fileCustom commandNo known issues. If you find any - PRs are welcomed :)