mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 01:48:50 +02:00
main: added detect_flash in SPI Mode and with a manufacturer
This commit is contained in:
+4
-1
@@ -305,7 +305,10 @@ int main(int argc, char **argv)
|
||||
} else if ((args.prg_type == Device::WR_FLASH ||
|
||||
args.prg_type == Device::WR_SRAM) ||
|
||||
!args.bit_file.empty() || !args.file_type.empty()) {
|
||||
target->program(args.offset, args.unprotect_flash);
|
||||
if (args.detect_flash)
|
||||
target->detect_flash();
|
||||
else
|
||||
target->program(args.offset, args.unprotect_flash);
|
||||
}
|
||||
if (args.unprotect_flash && args.bit_file.empty())
|
||||
if (!target->unprotect_flash())
|
||||
|
||||
Reference in New Issue
Block a user