+ Reply to Thread
Page 2 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 11 to 20 of 48

Thread: FAQ for XMC4800 EtherCAT

  1. #11
    Travis will become famous soon enough
    Join Date
    Feb 2013
    Location
    Singapore
    Posts
    749
    Points
    4580
    The CPU only take care in the processing of the Slave Stack Code which is necessary in most EtherCAT system. There is no extra CPU in the EtherCAT module.

  2. #12
    Nico
    Guest
    Hello, I have some questions about EtherCAT and synchronous mode.
    So I followed the tutorial of the ECAT Apps to set up cyclic EtherCAT communication.

    I had a look in MainLoop().
    Apparently it is not running in free run mode because bEscIntEnabled and bEcatFirstOutputsReceived are true, so the If condition are not respected.
    It should be running in Synchron mode.

    But where is the ISR ?

    According to the comment on ecatappl.c, "if the application is running in ECAT Synchron Mode the function ECAT_Application is called from the ESC interrupt routine (in mcihw.c or spihw.c)".
    But I don't have mcihw.c or spihw.c file.
    So where the ESC interrupt routine is called ?
    And where the ESC interrupt routine is written ?
    And also something strange, I put a 10 seconds delay on the while(1U) :
    while(1U)
    {
    MainLoop(); // EtherCAT Loop, generated automatically
    cpuPauseMilliSecond(10000);

    }

    And with it the EtherCAT communication is not working.
    And it should if the Synchron mode is set isn't it ?

    You can find a copy of my project.

    Any ideas ?
    Thank,
    Nicolas
    Project.zip

  3. #13
    NathanaelTillman
    Guest
    Hello,
    Allude to the main answer to string which is being redesigned per the questions on the string.

  4. #14
    Intermediate Intermediate
    Infineon Employee
    Infineon Employee
    MichaelIFX is on a distinguished road
    Join Date
    Mar 2016
    Posts
    48
    Points
    484.53125
    Hi Nicolas,
    please get the latest examples (ETHCAT_SSC_XMC48 and ETHCAT_SSC_XMC43) also distributed within DAVE4 and which is using distributed clocks.
    The connection of SSC to ISR you will find implemented inside main.c - also mentioned inside the documentation of the examples.

    Michael
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  5. #15
    Nico
    Guest
    Hello,
    I downloaded, configured and ran your example.
    I saw the ISR connected to sync0 and sync1.


    However, the ISR in Sync0 and Sync1 are never called and the application is running is freerun.
    When in Twincat 3 I set up DC-mode using Sync0, the slave goes to safeop, so something wrong, isn't it ?



    With my project, I know the application in running in synchron mode because bEscIntEnabled and bEcatFirstOutputsReceived are true.
    But where APPL_Application is called() ? How it goes with the SyncManager SM2/3 ?
    I didn't find out.
    I hope you have some answers.

    Thank,
    Nicolas

  6. #16
    New Member New Member northcove is on a distinguished road
    Join Date
    Sep 2016
    Location
    Auckland
    Posts
    1
    Points
    20

    XMC4800 Relax build/debug issues

    Last week I've received my XMC4800 Relax eval board from DigiKey. I also downloaded and installed DAVE 4.2.6.

    When I build the ETHCAT_SSC_XMC48 example project I encountered compilation errors due to missing SSC header files:

    'Building file: ../Dave/Generated/ECAT_SSC/ecat_ssc.c'
    In file included from ../Dave/Generated/ECAT_SSC/ecat_ssc.c:52:0:
    ../Dave/Generated/ECAT_SSC/ecat_ssc.h:58:35: fatal error: SSC/Src/applInterface.h: No such file or directory

    I understand from the ETHCAT_SSC_XMC48 documentation that I must independently contact the ETG (EtherCAT Technical Group) to obtain the missing SSC source files.

    A week has passed since I have contacted ETG. My company is still awaiting membership approval to download the required SSC files. This is an unexpected and disappointing initial user experience. To continue progress on learning the XMC4800 eval board, I have tried to build and debug the XMC4700/XMC4800 blinking LED demo based on XMC Lib.

    The Blinky project builds with any errors. However, when I attempt to run the project within DAVE I receive the following error:

    'Launching XMC4700_Blinky.elf' has encountered a problem.Error in final launch sequence.
    Failed to execute MI command:
    -exec -run
    Error message from debugger back end:
    Don't know how to run. Try 'help target"

    Any help in obtaining the missing SSC files will be greatly appreciated. It is suprising and disappointing these files are not provided with either DAVE or the example ETHCAT_SSC project.

    Any help in running the XMC4700_Blinky simple sample program will be also greatly appreciated.

  7. #17
    Nico
    Guest
    Hello northcove,
    didi you use the SSC tools software given by ETG to generate those files ?
    You need to inscribe your company to ETG to be able to download SSC tools.

  8. #18
    New Member New Member Robot is on a distinguished road
    Join Date
    Oct 2016
    Posts
    2
    Points
    30

    The example code XMC4800_Relax_EtherCat_Slave_SSC will run out on the MDK platform

    Hello.
    Because I'm used to using the MDK tools when I program some ARM microcontrollers,I copy the example code of official website provide to the latest MDK version(Keil V5.21).
    I build the example project and make some changes for the MDK platform(e.g. change #include "malloc.h" into #include "stdlib.h").I finally get 0 erros and 0 warnings.
    And then I downloaded the program to the XMC4800 relax kit.However,I found some problems.

    The program will run out when I change the state machine of EtherCAT master by TwinCAT2.0.It almost occurred from INIT to PRE-OP.But the phenomenon is not happening every time when
    I change the state machine.This is so strange.The same example code that is builded by DAVE is currect,and has no such phenomenon.

    So I would like to ask you if you have tried to compile this code with MDK,and have you had this problem.

    Thank you, looking forward to your reply.

    Example code :XMC4800_Relax_EtherCat_Slave_SSC
    Hardware: XMC4800_Relax_Kit and XMC_EtherCAT_Phy_Board-V1
    ECAT master: TwinCAT2.0 in PC

  9. #19
    Beginner Beginner reTok is on a distinguished road
    Join Date
    Oct 2016
    Posts
    5
    Points
    67.5
    Question: is there any instructions/tutorials how to generate code for CiA402 application (motor drive profile)?

    I could not generate such app with SSC tool. After I create new SSC project with Infineon template (and subsequently create project from xlsx file), then SSC Application ->CiA402_DEVICE becomes read only with value 0. Any ideas how to proceed? I assume I would need xlsx file for CiA402 profile but I couldn't find any from the Internet.

    Any hints would be greatly appreciated, a R&D project is is stuck with this issue. Thanks!

  10. #20
    New Member New Member Zaragesh is on a distinguished road
    Join Date
    Nov 2016
    Posts
    1
    Points
    20
    Hi Guys,

    I have some general Questions about the XMC4800.

    Generally I want to regulate the frequency of a fan with a frequency converter.
    >>The xmc4800 should directly communicate with the frequency converter via ethercat.
    >>The xmc4800 should do all the math for the controlling.
    >>The xmc4800 gets his control paramteres by an digital air flow sensor (at the moment not sure which communication protocol maybe i2c).
    >>The xmc4800 shows me all his actual values on a central computer and from this i can change the control parameters.
    For example regulation on 4 m/s and i want to change it to 8 m/s. And just have to type it into an web window (or an other interface).
    >>The xmc4800 saves the measurements to a sd-card with timestamp.

    Thank you

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.