In the file CO_app_STM32.c I have an issue when enabling storage.
The function int canopen_app_resetCommunication() references to variable storageInitError, but this variable is not known in this context. Normally this does not cause any error during compilation because storage is disabled by default, but it does when #if (CO_CONFIG_STORAGE) & CO_CONFIG_STORAGE_ENABLE is true.
storageInitError is declared inside function int canopen_app_init(CANopenNodeSTM32 *_canopenNodeSTM32). This function calls canopen_app_resetCommunication() at the end, and that is the only location where this function is called. One way to fix this might be to merge functions canopen_app_init and canopen_app_resetCommunication. Another way could be to make variable storageInitError global within CO_app_STM32.c. Both have the same result but I cannot say if this is a proper fix.
In the file
CO_app_STM32.cI have an issue when enabling storage.The function
int canopen_app_resetCommunication()references to variablestorageInitError, but this variable is not known in this context. Normally this does not cause any error during compilation because storage is disabled by default, but it does when#if (CO_CONFIG_STORAGE) & CO_CONFIG_STORAGE_ENABLEis true.storageInitErroris declared inside functionint canopen_app_init(CANopenNodeSTM32 *_canopenNodeSTM32). This function callscanopen_app_resetCommunication()at the end, and that is the only location where this function is called. One way to fix this might be to merge functionscanopen_app_initandcanopen_app_resetCommunication. Another way could be to make variablestorageInitErrorglobal withinCO_app_STM32.c. Both have the same result but I cannot say if this is a proper fix.