CANopenNode icon indicating copy to clipboard operation
CANopenNode copied to clipboard

NODE GUARDING not operational

Open CARLOS226 opened this issue 1 year ago • 1 comments

Hello everyone, I'm trying to implement the CANOpenNode stack in a STM32 project. Unfortunately, during the conformance test CTT, all the parts concerning the old protocol Node Guarding were not operational, and so gives a lot of errors, although I'm using the last version of the stack, that seems to take now into account the Node Guarding protocol... I have on my OD files the objects 100Ch (Guard time) and 100Dh (Life Time factor) implemented. What should I take care in order to activate this new part of the stack code ? Very thanks in advance.

CARLOS226 avatar Sep 10 '24 15:09 CARLOS226

If you use heartbeat (which is recommended), node guarding must not be used.

If you have a reason to use node guarding instead of heartbeat, you have to enable the module, for example inside CO_driver_target.h: #define CO_CONFIG_NODE_GUARDING (CO_CONFIG_NODE_GUARDING_SLAVE_ENABLE | CO_CONFIG_NODE_GUARDING_MASTER_ENABLE

See also CO_Node_Guarding.h

CANopenNode avatar Oct 07 '24 17:10 CANopenNode