Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
YARR
YARR
Commits
9f665f04
Commit
9f665f04
authored
May 17, 2022
by
Timon Heim
Browse files
Run com check for all even if one fails
parent
1c67dbd7
Pipeline
#3985783
passed with stages
in 20 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/tools/scanConsole.cpp
View file @
9f665f04
...
...
@@ -256,6 +256,8 @@ int main(int argc, char *argv[]) {
// TODO Check RX sync
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
microseconds
(
1000
));
hwCtrl
->
flushBuffer
();
int
comCheckErrors
=
0
;
int
idCheckErrors
=
0
;
for
(
unsigned
id
=
0
;
id
<
bookie
->
getNumOfEntries
();
id
++
)
{
FrontEnd
*
fe
=
bookie
->
getEntry
(
id
).
fe
;
auto
feCfg
=
dynamic_cast
<
FrontEndCfg
*>
(
fe
);
...
...
@@ -267,15 +269,23 @@ int main(int argc, char *argv[]) {
// check communication with FE by reading back a register
if
(
fe
->
checkCom
()
!=
1
)
{
logger
->
critical
(
"Can't establish communication, aborting!"
);
return
-
1
;
logger
->
error
(
"Can't establish communication, aborting!"
);
comCheckErrors
++
;
continue
;
}
// check that the current FE name is valid
if
(
!
fe
->
hasValidName
())
{
logger
->
critical
(
"Invalid chip name, aborting!"
);
return
-
1
;
logger
->
error
(
"Invalid chip name, aborting!"
);
idCheckErrors
++
;
}
}
if
(
comCheckErrors
>
0
||
idCheckErrors
>
0
)
{
logger
->
critical
(
"Could not establish correct communication or read incorrect efuse id from at least one FE! Abortin!"
);
return
-
1
;
}
else
{
logger
->
info
(
"... success!"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment