I am trying to figure out, what state I can store the current configuration by writing to the store index 1010.01
in the CANopen object dictionary.
I tried doing it in the preoperational state but got this error
Time: 2914.034 SDO slave:1 index:1010.01 error:08000022 Data cannot be transferred or stored to the application because of the present device state
uint32_t store_password = 0x65766173;
ret = ec_SDOwrite(slave, 0x1010, 0x01, FALSE, sizeof(store_password), &store_password, EC_TIMEOUTTXM);
It is worth noting that I am using CANopen over EtherCAT with the SOEM library.