This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SYS/BIOS Ind. SDK bug

Hi,

There might be a bug in SYS/BIOS Industrial SDK (V1.1.0.4) EtherCAT Code:

In the file "tieschw.c" there is a procedure "HW_EscWriteWordIsr()":

void HW_EscWriteWordIsr(Uint16 WordValue, Uint16 Address)
{
    Int16 sm_index;
    Uint16 ActualAddr = bsp_get_process_data_address(Address, 2, &sm_index);
    if (ActualAddr < ESC_ADDR_MEMORY)
    {
        pd_write_addr_err++;
        return;
    }	
    bsp_write_word(WordValue, Address);
    bsp_process_data_access_complete(Address, 2, sm_index);
}

For me the second last row shoulb be: bsp_write_word(WordValue, ActualAddr);

Can someone from TI please clarify this. Thanks.

Best regards,
Patrick

  • Hi,

    Yes - you are right. This is indeed a bug. Thanks for reporting.

    As you can see HW_EscWriteByteIsr which is used by the application by default (ESC_16BIT_ACCESS and ESC_32BIT_ACCESS is not set) is using the correct address. 

    Will fix this in the next update of SDK...