Mention -B in the error message

One of possible problems of failed initialization is too hight frequency
of ISP clock. Mention using -B option as a possible solution.

Closes #1133
This commit is contained in:
Łukasz Stelmach
2022-10-20 17:34:21 +02:00
parent 9977f1ed12
commit c890ff90eb
2 changed files with 10 additions and 8 deletions

View File

@@ -1190,9 +1190,10 @@ int main(int argc, char * argv [])
init_ok = (rc = pgm->initialize(pgm, p)) >= 0;
if (!init_ok) {
pmsg_error("initialization failed, rc=%d\n", rc);
imsg_error("- double check the connections and try again\n");
imsg_error("- use -B to set lower ISP clock frequency, e.g. -B 200kHz\n");
if (!ovsigck) {
imsg_error("double check connections and try again or use -F to override\n");
imsg_error("this check\n\n");
imsg_error("- use -F to override this check\n\n");
exitrc = 1;
goto main_exit;
}