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.

LAUNCHXL-F28P65X: EtherCAT demo for LaunchPad

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

Hi Team,

My customer have F28P65 LP. He found that all EtherCAT demo is matching for CC. How to configure these demos to run on LP?

C2000Ware_5_00_00_00/libraries/communications/Ethercat/f28p65x

--

Thanks & Regards

Yale

  • Hi Yale,

    There should be a LaunchPad build configuration added to the next C2000WARE revision, it was missed in the current release.

    I think we should have some pin configuration code they can add to the 'ethercat_slave_cpu1_hal.c' file for configuring the correct EtherCAT signals on the LaunchPad. I'll let my colleague respond with more info.

    Best,

    Kevin

  • Hi Yale, 

    As Kevin mentioned, the configuration mode will be added in the next C2000ware release. 

    In the meantime, I have attached the relevant files. To run the demo on LP, update these files and add "_LAUNCHXL_F28P65X" to the list of predefined symbols for the project. 

    Please let me know if you face any issues in the implementation. 

    Thanks

    .ethercat_subdevice_cpu1_hal.h

    ethercat_subdevice_cpu1_hal.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    //###########################################################################
    //
    // FILE: ethercat_subdevice_cpu1_hal.c
    //
    // TITLE: C28.CPU1 EtherCAT HAL Driver.
    //
    //###########################################################################
    // $TI Release: F28P65x EtherCAT Software v1.00.00.00 $
    // $Release Date: Tue Apr 25 17:25:03 IST 2023 $
    // $Copyright:
    // Copyright (C) 2021 Texas Instruments Incorporated - http://www.ti.com/
    //
    // Redistribution and use in source and binary forms, with or without
    // modification, are permitted provided that the following conditions
    // are met:
    //
    // Redistributions of source code must retain the above copyright
    // notice, this list of conditions and the following disclaimer.
    //
    // Redistributions in binary form must reproduce the above copyright
    // notice, this list of conditions and the following disclaimer in the
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                  

  • Hi Sahil,

    My customer still cannot establish communication after using the file you provided, and the phenomenon is the same as when he modified the file himself.

    1. D11LED on the board flashes, but D12LED does not light up. When the network cable is not plugged in, the network port lights are always on. After the network cable is plugged in, the network port lights are all off.

    2. The variable value read by the ESC_readWord(ESC_O_DL_STATUS) function in the ESC_loadedCheckEEPROM function is 0x5A34, and then the function returns the ESC_EEPROM_NOT_LOADED error after judgment.

    My customer would like to know if you have tested the ETHERCAT function of LAUNCHPAD and it is ok? He wanted to determine if it was possible that some of his hardware was damaged.

    And when will the next version be released?

    --

    Thanks & Regards

    Yale

  • if you have tested the ETHERCAT function of LAUNCHPAD

    Yes, the echoback examples have been validated on the Launchpad. 

    What version of C2000ware is the customer using currently?

    By using both the files (header and source file), the customer should be able to run the example successfully. 

    when will the next version be released

    I believe it will be mid November, but will have to check. 

    Thanks.