TMS320F28P650DK: LAUNCHXL-F28P65X EtherCAT Demo Code

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: LAUNCHXL-F28P65X, C2000WARE

Dear Team:

I am testing the EtherCAT Demo program in C2000Ware (V5.01) and have encountered some issues. My LAUNCHXL-F28P65X serial number starts with CL652312, which should not be among the serial numbers mentioned in this post.

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1325322/faq-launchxl-f28p65x-how-do-i-fix-the-ethercat-issue-where-the-launchpad-cannot-be-scanned-in-twincat

So I'd like to first try the f28p65x_cpu1_pdi_hal_test_app example program, but during execution, it gets stuck at

 

ESC_signalFail();

 

After investigating, the cause is because EEPROM Timeout

 

while(ESC_loadedCheckEEPROM() != ESC_EEPROM_SUCCESS)
    {
        eepromTimeOut--;

        //
        // On time out, return fail
        //
        if(eepromTimeOut == 0U)
        {
            return(ESC_HW_INIT_FAIL);
        }
    }

 

How can this be resolved?

 

Best Regards

  • Hi , 

    Have you followed the all instructions given in that e2e . Did you powercycle the board and tried running the program again.

    Regards

    Kunal.

  • Hi:

    I have tried running program_i2c_ESC_eeprom_F28P65x.zip and power cycling many times.

    But it still gets stuck in the EEPROM Timeout.

    My board's serial number is not listed in that e2e post, but it seems to have the same issue?

    Best Regards

  • Hi , 

     When you run the f28p65x_cpu1_pdi_hal_test_app program for the first time you have to program eeprom memory.

    You can check section 4.4  Program ControlCard EEPROM , in   EtherCAT_SubordinateDevice_Controller_Software_User_Guide present in sdk ({c200ware}\libraries\communications\Ethercat\f28p65x\docs) .

    Also make sure you select correct build configuration  (launchxl-ram or launchxl-flash depending upon your need.) for the project.

    Hope this solves your issue.

    Regards

    Kunal

  • Hi:

    It looks like the connection is working fine now

    I think it was because I hadn't set the configuration to Flash and hadn't defined

    #define _LAUNCHXL_F28P65X.

    Thank you!

    Best Regards

  • Hi , 

    Nice to hear that your issue is resolved.

    Although you don't need to define it manually unless , that build configuration is not present. 

    You just need to select correct build config from the menu and it will automatically define certain variables.

    Regards

    Kunal