gmpack: reset config latches before bootaddr jump

This commit is contained in:
Patrick Urban 2025-10-20 17:25:26 +02:00
parent ac547baf3b
commit 8d1018796d
2 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,7 @@ each bit of one byte payload is used to set one of 4 columns.
CMD_CFGRST
-----------
Resets all configuration latches to value of a byte from payload.
Resets all configuration latches to value of a byte from payload, except active SPI controller and configuration PLL.
CMD_ACLCU
----------

View File

@ -1100,6 +1100,7 @@ Bitstream Bitstream::serialise_chip(const Chip &chip, const std::map<std::string
if (d == 0) {
if (options.count("bootaddr") && !options.count("background")) {
uint32_t bootaddr = std::strtoul(options.at("bootaddr").c_str(), nullptr, 0);
wr.write_cmd_cfgrst(0x00);
wr.write_cmd_jump(bootaddr);
}
if (options.count("background") && !options.count("bootaddr")) {