Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error prevents LSS Service to be run #20

Open
Pascal8749 opened this issue Feb 24, 2023 · 0 comments
Open

Error prevents LSS Service to be run #20

Pascal8749 opened this issue Feb 24, 2023 · 0 comments

Comments

@Pascal8749
Copy link

Correct me if I'm wrong, but I think line 166 is missing an exception. This should look like line 156. Otherwise the execution of the function is aborted for an unconfigured node and the CAN interface is not started. So the device can't be reached via LSS anymore. At least this is the case in my application.

if (err != CO_ERROR_NO && err != CO_ERROR_NODE_ID_UNCONFIGURED_LSS) {
if (err == CO_ERROR_OD_PARAMETERS) {
log_printf("Error: Object Dictionary entry 0x%X\n", errInfo);
} else {
log_printf("Error: CANopen initialization failed: %d\n", err);
}
return 3;
}
err = CO_CANopenInitPDO(CO, CO->em, OD, canopenNodeSTM32->activeNodeID, &errInfo);
if (err != CO_ERROR_NO) {
if (err == CO_ERROR_OD_PARAMETERS) {
log_printf("Error: Object Dictionary entry 0x%X\n", errInfo);
} else {
log_printf("Error: PDO initialization failed: %d\n", err);
}
return 4;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant