robincornelius / libedssharp

A CanOpen EDS editor and library in C# with CanOpenNode export for Object Dictionary
GNU General Public License v3.0
227 stars 134 forks source link

CO_OD_PERSIST_COMM : where is this supposed to be defined ? #243

Open fenugrec opened 3 years ago

fenugrec commented 3 years ago

Trying to use libedssharp with CANopenNode 1.3 ; with "CANOPENNODE_LEGACY" selected as the exporter.

The generated CO_OD.{c,h} files have many references to a certain struct CO_OD_PERSIST_COMM which is defined nowhere obvious. Of course compilation fails;

arm-none-eabi-gcc "../canopen_stuff/CO_OD.c" -mcpu=cortex-m0 -std=gnu11 -g3 '-DCO_VERSION_MAJOR=2'  -I [......] -MF"canopen_stuff/CO_OD.d" -MT"canopen_stuff/CO_OD.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "canopen_stuff/CO_OD.o"
../canopen_stuff/CO_OD.c:51:21: error: 'CO_OD_PERSIST_COMM' undeclared here (not in a function); did you mean 'CO_ODA_MEM_ROM'?
            {(void*)&CO_OD_PERSIST_COMM.identity.highestSubIndexSupported, 0x06, 0x1 },

Where is this documented, and where should it be implemented ?