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.
hello.
Using the SDK example trial stack, if I rebuild as described in "${SDK_INSTALL_PATH}/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src/readme.txt", the following error occurs.
Microsoft Windows [Version 10.0.19044.1682]
(c) Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd C:\EtherCAT_SSC\Src
C:\EtherCAT_SSC\Src>copy *.c C:\ti\mcu_plus_sdk_am243x_08_02_00_31\source\industrial_comms\ethercat_slave\stack\patch\SlaveFiles\src
bootmode.c
coeappl.c
ecatappl.c
ecatcoe.c
ecateoe.c
ecatfoe.c
ecatslv.c
eoeappl.c
foeappl.c
mailbox.c
objdef.c
sdoserv.c
Twelve files were copied.
C:\EtherCAT_SSC\Src>copy *.h C:\ti\mcu_plus_sdk_am243x_08_02_00_31\source\industrial_comms\ethercat_slave\stack\patch\SlaveFiles\src
applInterface.h
bootmode.h
coeappl.h
ecatappl.h
ecatcoe.h
ecateoe.h
ecatfoe.h
ecatslv.h
ecat_def.h
eoeappl.h
esc.h
foeappl.h
mailbox.h
objdef.h
sdoserv.h
15 files copied.
C:\EtherCAT_SSC\Src>cd C:\ti\mcu_plus_sdk_am243x_08_02_00_31\source\industrial_comms\ethercat_slave\stack\patch
C:\ti\mcu_plus_sdk_am243x_08_02_00_31\source\industrial_comms\ethercat_slave\stack\patch>C:\EtherCAT_SSC\dos2unix-7.4.2-win64\bin\unix2dos.exe SlaveFiles\src\*
unix2dos: Skipping SlaveFiles/src/., not a regular file.
unix2dos: Skipping SlaveFiles/src/.., not a regular file.
unix2dos: converting file SlaveFiles/src/applInterface.h to DOS format...
unix2dos: converting file SlaveFiles/src/bootmode.c to DOS format...
unix2dos: converting file SlaveFiles/src/bootmode.h to DOS format...
unix2dos: converting file SlaveFiles/src/coeappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/coeappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecatappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecatappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecatcoe.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecatcoe.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecateoe.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecateoe.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecatfoe.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecatfoe.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecatslv.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecatslv.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecat_def.h to DOS format...
unix2dos: converting file SlaveFiles/src/eoeappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/eoeappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/esc.h to DOS format...
unix2dos: converting file SlaveFiles/src/foeappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/foeappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/mailbox.c to DOS format...
unix2dos: converting file SlaveFiles/src/mailbox.h to DOS format...
unix2dos: converting file SlaveFiles/src/objdef.c to DOS format...
unix2dos: converting file SlaveFiles/src/objdef.h to DOS format...
unix2dos: converting file SlaveFiles/src/readme.txt to DOS format...
unix2dos: converting file SlaveFiles/src/sdoserv.c to DOS format...
unix2dos: converting file SlaveFiles/src/sdoserv.h to DOS format...
C:\ti\mcu_plus_sdk_am243x_08_02_00_31\source\industrial_comms\ethercat_slave\stack\patch>C:\EtherCAT_SSC\dos2unix-7.4.2-win64\bin\unix2dos.exe bkhfSsc_kunbus_ssc.patch
unix2dos: converting file bkhfSsc_kunbus_ssc.patch to DOS format...
C:\ti\mcu_plus_sdk_am243x_08_02_00_31\source\industrial_comms\ethercat_slave\stack\patch>C:\EtherCAT_SSC\patch-2.5.9-7-bin\bin\patch -p1 --ignore-whitespace --input bkhfSsc_kunbus_ssc.patch
can't find file to patch at input line 6
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|diff --git a/SlaveFiles/src/EtherCATSampleLibrary.h b/SlaveFiles/src/EtherCATSampleLibrary.h
|index 62712b7..6477474 100644
|--- a/SlaveFiles/src/EtherCATSampleLibrary.h
|+++ b/SlaveFiles/src/EtherCATSampleLibrary.h
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 46
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/SlaveFiles/src/SampleApplicationInterface.c b/SlaveFiles/src/SampleApplicationInterface.c
|index 9b6bda3..89c6ec8 100644
|--- a/SlaveFiles/src/SampleApplicationInterface.c
|+++ b/SlaveFiles/src/SampleApplicationInterface.c
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
4 out of 4 hunks ignored
patching file SlaveFiles/src/bootmode.c
Hunk #1 FAILED at 27.
Hunk #2 succeeded at 69 (offset -1 lines).
Hunk #3 succeeded at 87 with fuzz 1 (offset -1 lines).
1 out of 3 hunks FAILED -- saving rejects to file SlaveFiles/src/bootmode.c.rej
can't find file to patch at input line 124
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/SlaveFiles/src/cia402appl.c b/SlaveFiles/src/cia402appl.c
|index df73e28..2bad980 100644
|--- a/SlaveFiles/src/cia402appl.c
|+++ b/SlaveFiles/src/cia402appl.c
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
15 out of 15 hunks ignored
can't find file to patch at input line 479
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/SlaveFiles/src/cia402appl.h b/SlaveFiles/src/cia402appl.h
|index c9d89b0..0e1f9fc 100644
|--- a/SlaveFiles/src/cia402appl.h
|+++ b/SlaveFiles/src/cia402appl.h
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
4 out of 4 hunks ignored
patching file SlaveFiles/src/coeappl.c
Hunk #1 FAILED at 137.
Hunk #2 FAILED at 302.
Hunk #3 FAILED at 344.
Hunk #4 FAILED at 363.
Hunk #5 succeeded at 249 (offset -153 lines).
Hunk #6 succeeded at 258 (offset -153 lines).
Hunk #7 FAILED at 279.
Hunk #8 succeeded at 281 (offset -177 lines).
Hunk #9 succeeded at 331 (offset -179 lines).
Hunk #10 succeeded at 358 (offset -183 lines).
Hunk #11 succeeded at 378 (offset -183 lines).
Hunk #12 FAILED at 411.
Hunk #13 FAILED at 552.
Hunk #14 FAILED at 885.
Hunk #15 succeeded at 647 with fuzz 2 (offset -509 lines).
Hunk #16 succeeded at 886 (offset -560 lines).
Hunk #17 succeeded at 908 with fuzz 2 (offset -562 lines).
8 out of 17 hunks FAILED -- saving rejects to file SlaveFiles/src/coeappl.c.rej
patching file SlaveFiles/src/ecat_def.h
Hunk #1 FAILED at 5.
Hunk #2 FAILED at 56.
Hunk #3 FAILED at 129.
Hunk #4 succeeded at 176 with fuzz 1 (offset 2 lines).
Hunk #5 FAILED at 184.
Hunk #6 FAILED at 201.
Hunk #7 FAILED at 293.
Hunk #8 FAILED at 320.
Hunk #9 FAILED at 334.
Hunk #10 FAILED at 370.
Hunk #11 FAILED at 430.
Hunk #12 succeeded at 767 with fuzz 1 (offset -20 lines).
Hunk #13 FAILED at 779.
Hunk #14 succeeded at 829 with fuzz 1 (offset -38 lines).
Hunk #15 FAILED at 839.
Hunk #16 FAILED at 971.
Hunk #17 succeeded at 1098 with fuzz 1 (offset -66 lines).
Hunk #18 FAILED at 1172.
Hunk #19 FAILED at 1244.
15 out of 19 hunks FAILED -- saving rejects to file SlaveFiles/src/ecat_def.h.rej
patching file SlaveFiles/src/ecatappl.c
Hunk #1 FAILED at 157.
Hunk #2 FAILED at 241.
Hunk #3 succeeded at 258 with fuzz 2 (offset -63 lines).
Hunk #4 FAILED at 396.
Hunk #5 succeeded at 446 (offset -111 lines).
Hunk #6 succeeded at 465 (offset -111 lines).
Hunk #7 FAILED at 501.
Hunk #8 FAILED at 806.
Hunk #9 succeeded at 657 with fuzz 1 (offset -289 lines).
Hunk #10 FAILED at 701.
Hunk #11 FAILED at 730.
Hunk #12 succeeded at 885 (offset -306 lines).
Hunk #13 FAILED at 907.
Hunk #14 succeeded at 1003 (offset -355 lines).
Hunk #15 FAILED at 1052.
Hunk #16 FAILED at 1623.
Hunk #17 succeeded at 1231 with fuzz 2 (offset -803 lines).
Hunk #18 FAILED at 1245.
Hunk #19 FAILED at 1267.
Hunk #20 FAILED at 1293.
Hunk #21 FAILED at 1316.
Hunk #22 succeeded at 1363 with fuzz 1 (offset -796 lines).
Hunk #23 FAILED at 1372.
Hunk #24 succeeded at 1402 (offset -806 lines).
Hunk #25 FAILED at 1439.
16 out of 25 hunks FAILED -- saving rejects to file SlaveFiles/src/ecatappl.c.rej
patching file SlaveFiles/src/ecatappl.h
Hunk #2 FAILED at 55.
Hunk #3 succeeded at 183 with fuzz 2 (offset -1 lines).
1 out of 3 hunks FAILED -- saving rejects to file SlaveFiles/src/ecatappl.h.rej
patching file SlaveFiles/src/ecatslv.c
Hunk #1 FAILED at 234.
Hunk #2 FAILED at 305.
Hunk #3 FAILED at 313.
Hunk #4 FAILED at 351.
Hunk #5 succeeded at 273 with fuzz 2 (offset -86 lines).
Hunk #6 FAILED at 364.
Hunk #7 FAILED at 413.
Hunk #8 FAILED at 475.
Hunk #9 succeeded at 370 (offset -206 lines).
Hunk #10 succeeded at 401 (offset -427 lines).
Hunk #11 succeeded at 703 with fuzz 2 (offset -642 lines).
Hunk #12 succeeded at 734 with fuzz 1 (offset -654 lines).
Hunk #13 succeeded at 753 with fuzz 2 (offset -676 lines).
Hunk #14 FAILED at 842.
Hunk #15 succeeded at 886 (offset -771 lines).
Hunk #16 FAILED at 981.
Hunk #17 FAILED at 1008.
Hunk #18 succeeded at 1033 (offset -807 lines).
Hunk #19 succeeded at 1054 with fuzz 2 (offset -809 lines).
Hunk #20 FAILED at 1252.
Hunk #21 succeeded at 1406 (offset -938 lines).
Hunk #22 FAILED at 1559.
Hunk #23 succeeded at 1541 (offset -1014 lines).
Hunk #24 FAILED at 1601.
Hunk #25 succeeded at 1723 (offset -1038 lines).
Hunk #26 succeeded at 1742 (offset -1038 lines).
Hunk #27 FAILED at 1789.
Hunk #28 succeeded at 1792 with fuzz 1 (offset -1046 lines).
Hunk #29 succeeded at 1999 (offset -1070 lines).
Hunk #30 FAILED at 2167.
Hunk #31 succeeded at 2174 with fuzz 2 (offset -1086 lines).
Hunk #32 FAILED at 2243.
Hunk #33 succeeded at 2215 (offset -1138 lines).
Hunk #34 FAILED at 2309.
Hunk #35 succeeded at 2327 with fuzz 1 (offset -1167 lines).
Hunk #36 succeeded at 2335 (offset -1168 lines).
Hunk #37 succeeded at 2374 with fuzz 2 (offset -1168 lines).
Hunk #38 succeeded at 2394 with fuzz 1 (offset -1172 lines).
Hunk #39 succeeded at 2435 (offset -1178 lines).
Hunk #40 succeeded at 2443 (offset -1178 lines).
Hunk #41 FAILED at 2645.
Hunk #42 succeeded at 2564 (offset -1291 lines).
18 out of 42 hunks FAILED -- saving rejects to file SlaveFiles/src/ecatslv.c.rej
patching file SlaveFiles/src/ecatslv.h
Hunk #1 FAILED at 47.
Hunk #2 succeeded at 301 (offset -51 lines).
Hunk #3 FAILED at 322.
Hunk #4 FAILED at 334.
Hunk #5 succeeded at 381 with fuzz 1 (offset -81 lines).
Hunk #6 succeeded at 395 with fuzz 2 (offset -83 lines).
Hunk #7 succeeded at 451 with fuzz 2 (offset -93 lines).
3 out of 7 hunks FAILED -- saving rejects to file SlaveFiles/src/ecatslv.h.rej
patching file SlaveFiles/src/mailbox.c
Hunk #1 succeeded at 228 (offset -30 lines).
Hunk #2 succeeded at 253 (offset -31 lines).
Hunk #3 FAILED at 329.
Hunk #4 succeeded at 437 (offset -114 lines).
Hunk #5 FAILED at 575.
Hunk #6 succeeded at 642 (offset -243 lines).
Hunk #7 succeeded at 716 (offset -250 lines).
Hunk #8 succeeded at 779 with fuzz 1 (offset -283 lines).
Hunk #9 FAILED at 969.
Hunk #10 FAILED at 982.
4 out of 10 hunks FAILED -- saving rejects to file SlaveFiles/src/mailbox.c.rej
patching file SlaveFiles/src/ecatappl.c
Hunk #1 succeeded at 354 (offset -96 lines).
Hunk #2 succeeded at 439 with fuzz 2 (offset -86 lines).
Hunk #3 FAILED at 1412.
Hunk #4 FAILED at 1444.
2 out of 4 hunks FAILED -- saving rejects to file SlaveFiles/src/ecatappl.c.rej
patching file SlaveFiles/src/ecatappl.h
Hunk #1 succeeded at 115 (offset -42 lines).
patching file SlaveFiles/src/sdoserv.c
Hunk #1 FAILED at 314.
Hunk #2 FAILED at 323.
Hunk #3 FAILED at 336.
Hunk #4 succeeded at 345 (offset -53 lines).
Hunk #5 succeeded at 358 (offset -53 lines).
Hunk #6 FAILED at 403.
Hunk #7 FAILED at 441.
Hunk #8 FAILED at 449.
Hunk #9 FAILED at 467.
Hunk #10 succeeded at 482 (offset -91 lines).
Hunk #11 FAILED at 721.
Hunk #12 FAILED at 737.
Hunk #13 FAILED at 767.
Hunk #14 FAILED at 777.
Hunk #15 succeeded at 837 (offset -291 lines).
Hunk #16 succeeded at 884 (offset -298 lines).
Hunk #17 succeeded at 911 (offset -300 lines).
Hunk #18 FAILED at 1074.
Hunk #19 succeeded at 1177 (offset -340 lines).
Hunk #20 FAILED at 1316.
Hunk #21 succeeded at 1245 (offset -448 lines).
Hunk #22 FAILED at 1264.
14 out of 22 hunks FAILED -- saving rejects to file SlaveFiles/src/sdoserv.c.rej
patching file SlaveFiles/src/ecat_def.h
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file SlaveFiles/src/ecat_def.h.rej
patching file SlaveFiles/src/ecatappl.c
Hunk #1 FAILED at 709.
1 out of 1 hunk FAILED -- saving rejects to file SlaveFiles/src/ecatappl.c.rej
can't find file to patch at input line 3925
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--
|2.25.1
|
|
|From 20843c32a92fbceaaa497ee8025dbcaf2a805e11 Mon Sep 17 00:00:00 2001
|From: Andreas Willig <andreas.willig@willig-embedded.de>
|Date: Mon, 25 Jan 2021 13:38:05 +0100
|Subject: [PATCH 05/11] EtherCAT Slave 1.0.9.7
|
|---
| SlaveFiles/src/cia402appl.c | 8 ++++++++
| SlaveFiles/src/cia402appl.h | 3 ++-
| SlaveFiles/src/ecat_def.h | 4 ++--
| 3 files changed, 12 insertions(+), 3 deletions(-)
|
|diff --git a/SlaveFiles/src/cia402appl.c b/SlaveFiles/src/cia402appl.c
|index 2bad980..eb4efe8 100644
|--- a/SlaveFiles/src/cia402appl.c
|+++ b/SlaveFiles/src/cia402appl.c
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
3 out of 3 hunks ignored
can't find file to patch at input line 3960
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/SlaveFiles/src/cia402appl.h b/SlaveFiles/src/cia402appl.h
|index 0e1f9fc..9b42b89 100644
|--- a/SlaveFiles/src/cia402appl.h
|+++ b/SlaveFiles/src/cia402appl.h
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
patching file SlaveFiles/src/ecat_def.h
Hunk #1 FAILED at 23.
Hunk #2 FAILED at 955.
2 out of 2 hunks FAILED -- saving rejects to file SlaveFiles/src/ecat_def.h.rej
patching file SlaveFiles/src/ecat_def.h
Hunk #1 FAILED at 1126.
1 out of 1 hunk FAILED -- saving rejects to file SlaveFiles/src/ecat_def.h.rej
patching file SlaveFiles/src/ecat_def.h
Hunk #1 FAILED at 1126.
1 out of 1 hunk FAILED -- saving rejects to file SlaveFiles/src/ecat_def.h.rej
patching file SlaveFiles/src/ecat_def.h
Hunk #1 FAILED at 1126.
1 out of 1 hunk FAILED -- saving rejects to file SlaveFiles/src/ecat_def.h.rej
patching file SlaveFiles/src/ecatslv.h
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file SlaveFiles/src/ecatslv.h.rej
patching file SlaveFiles/src/ecat_def.h
Hunk #1 FAILED at 1126.
1 out of 1 hunk FAILED -- saving rejects to file SlaveFiles/src/ecat_def.h.rej
patching file SlaveFiles/src/ecatappl.c
Hunk #1 FAILED at 1506.
1 out of 1 hunk FAILED -- saving rejects to file SlaveFiles/src/ecatappl.c.rej
C:\ti\mcu_plus_sdk_am243x_08_02_00_31\source\industrial_comms\ethercat_slave\stack\patch>
The above issue has been resolved. There was a problem with the source copy. Then an error occurs in the make process.
C:\ti\mcu_plus_sdk_am243x_08_02_00_31>gmake -s -f makefile.am243x ethercat_slave_bkhfSsc_r5f.ti-arm-clang
Compiling: ethercat_slave_bkhfSsc.am243x.r5f.ti-arm-clang.release.lib: src/ssc.c
process_begin: CreateProcess(NULL, C:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -Wno-self-assign -Wno-parentheses-equality -Wno-tautological-constant-out-of-range-compare -Wno-address-of-packed-member -Wno-tautological-pointer-compare -mno-unaligned-access -mthumb -Os -IC:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_08_02_00_31/source -IC:/ti/mcu_plus_sdk_am243x_08_02_00_31/source/industrial_comms/ethercat_slave/stack/patch/inc -IC:/ti/mcu_plus_sdk_am243x_08_02_00_31/source/industrial_comms/ethercat_slave/stack/patch/src -IC:/ti/mcu_plus_sdk_am243x_08_02_00_31/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src -IC:/ti/mcu_plus_sdk_am243x_08_02_00_31/source/kernel/freertos/FreeRTOS-Kernel/include -IC:/ti/mcu_plus_sdk_am243x_08_02_00_31/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F -IC:/ti/mcu_plus_sdk_am243x_08_02_00_31/source/kernel/freertos/config/am243x/r5f -IC:/ti/mcu_plus_sdk_am243x_08_02_00_31/source -DSOC_AM243X -DKUNBUS_STACK_APPLICATION=1 -DBKHFSSC_EXPORTS -DPRUICSS_ETHERCAT_SUPPORT -MMD -o obj/am243x/ti-arm-clang/release/r5f/ethercat_slave_bkhfSsc//ssc.obj src/ssc.c, ...) failed.
make (e=2): The specified file could not be found.
makefile.am243x.r5f.ti-arm-clang:102: recipe for target 'ssc.obj' failed
gmake[1]: *** [ssc.obj] Error 2
makefile.am243x:398: recipe for target 'ethercat_slave_bkhfSsc_r5f.ti-arm-clang' failed
gmake: *** [ethercat_slave_bkhfSsc_r5f.ti-arm-clang] Error 2
C:\ti\mcu_plus_sdk_am243x_08_02_00_31>