Skip to content

Commit 268258f

Browse files
committedDec 10, 2016
gp4prog: using --emulate without --voltage is an error.
1 parent 5a73304 commit 268258f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

Diff for: ‎src/gp4prog/main.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,13 @@ int main(int argc, char* argv[])
331331
return 0;
332332
}
333333

334+
//It makes no sense to emulate without applying any Vdd
335+
if(voltage == 0.0 && !downloadFilename.empty() && !programNvram)
336+
{
337+
LogError("--emulate is specified but --voltage isn't; chip must be powered for emulation\n");
338+
return 1;
339+
}
340+
334341
//It makes no sense to apply vccio to a single-rail part
335342
if(voltage2 != 0.0 && detectedPart != SilegoPart::SLG46621V)
336343
{

0 commit comments

Comments
 (0)
Please sign in to comment.