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.

MCU-PLUS-SDK-AM243X: how to edit tiesc_eeprom.h? and how to develop a master program using SOEM to connect the slave running on ti MCU?

Part Number: MCU-PLUS-SDK-AM243X

Tool/software:

Hi,

I want to repace tiesc_eeprom.h with eeprom.h generated by SSC Tool using tiescappl.xml in ind_comms_sdk_am243x_09_02_00_08\examples\industrial_comms\ethercat_slave_beckhoff_ssc_demo\ project. I renamed eeprom.h to  tiesc_eeprom.h, but it doesn't work. How can I make it works? or how to edit  tiesc_eeprom.h? 

Another question, I developed a master program using SOEM to connect the slave of ethercat_slave_beckhoff_ssc_demo,  it ran for a while then crashed, see below output. Has anyone experienced the similar problem?

thanks!

root@ngl-GTR:/home/ngl/SOEM-1.4.0/xiaohk# gdb sim core_sim.784031.1727250749

GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2) 12.1

Copyright (C) 2022 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <gnu.org/.../gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

Type "show copying" and "show warranty" for details.

This GDB was configured as "x86_64-linux-gnu".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:

<www.gnu.org/.../>.

Find the GDB manual and other documentation resources online at:

    <www.gnu.org/.../>.

 

For help, type "help".

Type "apropos word" to search for commands related to "word"...

Reading symbols from sim...

[New LWP 784031]

 

warning: Section `.reg-xstate/784031' in core file too small.

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Core was generated by `./sim enp3s0'.

Program terminated with signal SIGSEGV, Segmentation fault.

 

warning: Section `.reg-xstate/784031' in core file too small.

#0  __memmove_avx512_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:339

339 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.

(gdb) backtrace

#0  __memmove_avx512_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:339

#1  0x000059516a9d25b2 in ecx_writedatagramdata (datagramdata=0x59516a9fdb56 <ecx_port+41206>, com=EC_CMD_LRW, length=7, data=0x595100000000) at /home/ngl/SOEM-1.4.0/soem/ethercatbase.c:50

#2  0x000059516a9d2665 in ecx_setupdatagram (port=0x59516a9f3a60 <ecx_port>, frame=0x59516a9fdb3c <ecx_port+41180>, com=12 '\f', idx=10 '\n', ADP=0, ADO=256, length=7, data=0x595100000000)

    at /home/ngl/SOEM-1.4.0/soem/ethercatbase.c:83

#3  0x000059516a9ce835 in ecx_main_send_processdata (context=0x59516a9e2020 <ecx_context>, group=0 '\000', use_overlap_io=1 '\001') at /home/ngl/SOEM-1.4.0/soem/ethercatmain.c:1839

#4  0x000059516a9ce9a5 in ecx_send_overlap_processdata_group (context=0x59516a9e2020 <ecx_context>, group=0 '\000') at /home/ngl/SOEM-1.4.0/soem/ethercatmain.c:1881

#5  0x000059516a9cf4b9 in ec_send_overlap_processdata_group (group=0 '\000') at /home/ngl/SOEM-1.4.0/soem/ethercatmain.c:2366

#6  0x000059516a9cf50f in ec_send_overlap_processdata () at /home/ngl/SOEM-1.4.0/soem/ethercatmain.c:2390

#7  0x000059516a9c1b1c in simpletest (name=0x7ffea06ed392) at simple_test.c:165

#8  0x000059516a9c241e in main (argc=2, argv=0x7ffea06ebc88) at simple_test.c:348

(gdb)