CANopenNode / CanOpenSTM32

CANopenNode on STM32 microcontrollers.
Other
275 stars 110 forks source link

Trying to receive SDO messages in SDO client over CO_SDOclient_receive #61

Closed urrudelu30 closed 5 months ago

urrudelu30 commented 5 months ago

Hi, I am trying to receive messages over the RXFIFO in the SDO client, but every time a message is comming the function rejects its due to the SDO_C->state is in CO_SDO_ST_IDLE. How I can change this state, there is some function that I need to configure for starting receiving data? Maybe I need to configure CO_SDOclientDownloadInitiate or CO_SDOclientUploadInitiate?

if (SDO_C->state != CO_SDO_ST_IDLE && DLC == 8U && (!CO_FLAG_READ(SDO_C->CANrxNew) || data[0] == 0x80) ) {

MaJerle commented 5 months ago

This is a question for main repository, CanOpenNode.

urrudelu30 commented 5 months ago

Thanks ,I will ask here