Forum Discussion
Where to place custom .xml flash device files for Quartus Programmer?
Hello,
Some new insights
Default custom database location is ./ (current working directory).
Thus discussed option2 (supplying pgm_flash_xxxx.xml file in same location as programming file) works with Add File in Quartus Programmer and default ./ setting.
Custom database location is stored in quartus2.ini for each installed Quartus version separately, found in top Users folder.
Regards
Frank
- FakhrulA_altera14 days ago
Regular Contributor
Hi Frank,
Thank you for sharing your findings; your analysis is correct.
The Programmer looks for custom flash `.xml` files in its Custom database directory. By default, this is the current working directory (`./`), not the folder of the `.jic`. For a standalone Programmer, you have these options:
- Command line (best for field service): pass the folder explicitly:
`quartus_pgm -c <cable> -m jtag --custom_db_dir=<xml_folder> -o "pvbi;file.jic"`
This option also works with a `.cdf`. Run `quartus_pgm --help=custom_db_dir` to confirm that your installed version supports it.
- GUI, self-contained folder: keep the `.xml` next to the `.jic`, leave the default `./`, and open the `.jic` with Add File, as you found.
- GUI, fixed location: set the Custom database directory once; it is saved per Quartus version in `quartus2.ini`.
- Install folder: copy the `.xml` to `<install>/devices/programmer/xml` (Pro) or `quartus/common/devinfo/programmer/xml` (Standard). This needs admin rights and must be repeated for each version.
For reference, see the Custom database directory option in the [Generic Flash Programmer User Guide](https://docs.altera.com/r/docs/683495/current).
Regards,
Fakhrul