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.

LP-AM243: IPC+ETHPHY Project Construction

Part Number: LP-AM243


Tool/software:

Hello TI team,
I am working on a multicore project (4core) using IPC and ether phy.

environment:
  CCS12.7.0
  AM243x MCU+SDK 09.02.01.05
  LP-AM2434

R5F 0-0 runs FreeRTOS applications.
R5F 0-1 does not use RTOS (NoRTOS). It mainly controls devices.

I would like to implement the sample code "mcu_plus_sdk_am243x_09_02_01_05\examples\networking\enet_loopback\enet_icssg_loopback\am243x-lp\r5fss0-0_nortos" in R5F 0-1.
What should I do?

Yesterday, after importing the IPC sample code, I modified example.syscfg using enet_icssg_loopback as a reference.
example.syscfg:
  MPU ArmV7: CONFIG_MPU_REGION5修正
  PRU(CSS)追加
  EEPROM追加
  ENet(ICSS)追加

I copied loopback_cfg.c, loopback_cfg.h, loopback_common.h,loopback_main.c,loopback_test.c into my project.

When I build it I get an error.
Please tell me how to fix this.

**** Build of configuration Debug for project ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang ****

"C:\\ti_am243x09020105\\ccs1270\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

Building file: "syscfg/ti_board_open_close.c"
Invoking: Arm Compiler
"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -I"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/include/c" -I"C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source" -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_board_open_close.d_raw" -MT"syscfg/ti_board_open_close.o" -I"C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg" -o"syscfg/ti_board_open_close.o" "syscfg/ti_board_open_close.c"
subdir_rules.mk:40: recipe for target 'syscfg/ti_board_open_close.o' failed
In file included from syscfg/ti_board_open_close.c:37:
In file included from C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg/ti_board_open_close.h:40:
In file included from C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg/ti_board_config.h:62:
C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source\networking/enet/utils/include/enet_board.h:48:10: fatal error: 'enet.h' file not found
#include <enet.h>
^~~~~~~~
1 error generated.
gmake: *** [syscfg/ti_board_open_close.o] Error 1
Building file: "syscfg/ti_enet_config.c"
Invoking: Arm Compiler
"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -I"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/include/c" -I"C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source" -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_enet_config.d_raw" -MT"syscfg/ti_enet_config.o" -I"C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg" -o"syscfg/ti_enet_config.o" "syscfg/ti_enet_config.c"
subdir_rules.mk:40: recipe for target 'syscfg/ti_enet_config.o' failed
syscfg/ti_enet_config.c:51:10: fatal error: 'enet.h' file not found
#include <enet.h>
^~~~~~~~
1 error generated.
gmake: *** [syscfg/ti_enet_config.o] Error 1
Building file: "syscfg/ti_board_config.c"
Invoking: Arm Compiler
"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -I"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/include/c" -I"C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source" -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_board_config.d_raw" -MT"syscfg/ti_board_config.o" -I"C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg" -o"syscfg/ti_board_config.o" "syscfg/ti_board_config.c"
subdir_rules.mk:40: recipe for target 'syscfg/ti_board_config.o' failed
In file included from syscfg/ti_board_config.c:35:
In file included from C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg/ti_board_config.h:62:
C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source\networking/enet/utils/include/enet_board.h:48:10: fatal error: 'enet.h' file not found
#include <enet.h>
^~~~~~~~
1 error generated.
gmake: *** [syscfg/ti_board_config.o] Error 1
Building file: "syscfg/ti_enet_open_close.c"
Invoking: Arm Compiler
"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -I"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/include/c" -I"C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source" -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_enet_open_close.d_raw" -MT"syscfg/ti_enet_open_close.o" -I"C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg" -o"syscfg/ti_enet_open_close.o" "syscfg/ti_enet_open_close.c"
subdir_rules.mk:40: recipe for target 'syscfg/ti_enet_open_close.o' failed
syscfg/ti_enet_open_close.c:49:10: fatal error: 'enet.h' file not found
#include <enet.h>
^~~~~~~~
1 error generated.
gmake: *** [syscfg/ti_enet_open_close.o] Error 1
Building file: "syscfg/ti_enet_soc.c"
Invoking: Arm Compiler
"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -I"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/include/c" -I"C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source" -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_enet_soc.d_raw" -MT"syscfg/ti_enet_soc.o" -I"C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg" -o"syscfg/ti_enet_soc.o" "syscfg/ti_enet_soc.c"
subdir_rules.mk:40: recipe for target 'syscfg/ti_enet_soc.o' failed
syscfg/ti_enet_soc.c:49:10: fatal error: 'hw_include/cslr_icss.h' file not found
#include <hw_include/cslr_icss.h>
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [syscfg/ti_enet_soc.o] Error 1
Building file: "../ipc_notify_echo.c"
Invoking: Arm Compiler
"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -I"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/include/c" -I"C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source" -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"ipc_notify_echo.d_raw" -MT"ipc_notify_echo.o" -I"C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg" -o"ipc_notify_echo.o" "../ipc_notify_echo.c"
subdir_rules.mk:47: recipe for target 'ipc_notify_echo.o' failed
In file included from ../ipc_notify_echo.c:38:
In file included from C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg\ti_board_open_close.h:40:
In file included from C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg/ti_board_config.h:62:
C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source\networking/enet/utils/include/enet_board.h:48:10: fatal error: 'enet.h' file not found
#include <enet.h>
^~~~~~~~
1 error generated.
gmake: *** [ipc_notify_echo.o] Error 1
Building file: "../loopback_cfg.c"
Invoking: Arm Compiler
"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -I"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/include/c" -I"C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source" -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"loopback_cfg.d_raw" -MT"loopback_cfg.o" -I"C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg" -o"loopback_cfg.o" "../loopback_cfg.c"
subdir_rules.mk:47: recipe for target 'loopback_cfg.o' failed
In file included from ../loopback_cfg.c:43:
../loopback_common.h:50:10: fatal error: 'include/core/enet_osal.h' file not found
#include <include/core/enet_osal.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [loopback_cfg.o] Error 1
Building file: "../loopback_main.c"
Invoking: Arm Compiler
"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -I"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/include/c" -I"C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source" -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"loopback_main.d_raw" -MT"loopback_main.o" -I"C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg" -o"loopback_main.o" "../loopback_main.c"
subdir_rules.mk:47: recipe for target 'loopback_main.o' failed
In file included from ../loopback_main.c:43:
../loopback_common.h:50:10: fatal error: 'include/core/enet_osal.h' file not found
#include <include/core/enet_osal.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [loopback_main.o] Error 1
Building file: "../loopback_test.c"
Invoking: Arm Compiler
"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -I"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/include/c" -I"C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source" -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"loopback_test.d_raw" -MT"loopback_test.o" -I"C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg" -o"loopback_test.o" "../loopback_test.c"
subdir_rules.mk:47: recipe for target 'loopback_test.o' failed
In file included from ../loopback_test.c:43:
../loopback_common.h:50:10: fatal error: 'include/core/enet_osal.h' file not found
#include <include/core/enet_osal.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [loopback_test.o] Error 1
Building file: "../main.c"
Invoking: Arm Compiler
"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -I"C:/ti_am243x09020105/ccs1270/ti_cgt_tiarmclang_3.2.2.LTS/include/c" -I"C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source" -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"main.d_raw" -MT"main.o" -I"C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg" -o"main.o" "../main.c"
subdir_rules.mk:47: recipe for target 'main.o' failed
In file included from ../main.c:35:
In file included from C:/ti_eval_eth/4core/loopback/ipc_notify_echo_am243x-lp_r5fss0-1_nortos_ti-arm-clang/Debug/syscfg\ti_board_config.h:62:
C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source\networking/enet/utils/include/enet_board.h:48:10: fatal error: 'enet.h' file not found
#include <enet.h>
^~~~~~~~
1 error generated.
gmake: *** [main.o] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Thank you and looking forward for your response.
Regards,
Yoshiki Koide

  • Hello Yoshiki,

    Just to confirm, are you looking to run generic Ethernet on the R5F0_1 core? Or are you looking for a different kind of networking?
    As an FYI, the industrial communication protocols (i.e., NOT generic Ethernet) are covered in this SDK that is separate from the MCU+ SDK: https://www.ti.com/tool/download/INDUSTRIAL-COMMUNICATIONS-SDK-AM243X

    Regards,

    Nick

  • Hi Yoshiki,

    fatal error: 'enet.h' file not found

    Please check if this file is included or not properly ?

    the sample code "mcu_plus_sdk_am243x_09_02_01_05\examples\networking\enet_loopback\enet_icssg_loopback\am243x-lp\r5fss0-0_nortos

    I am assuming you have successfully run this example on R5_0_0 and now porting it to R5F_0_1. correct ?

    Regards

    Ashwani 

  • Hello, Nick.

    I plan to check the industrial communication protocol at a later date.
    This time it's general-purpose Ethernet.

    Regards,
    Yoshiki Koide

  • Hello, Ashwani.

    > "I am assuming you have successfully run this example on R5_0_0 and now porting it to R5F_0_1. correct ?"

    Yes, I would like to port it to R5F_0_1.

    Regards,
    Yoshiki Koide

  • Yes, I would like to port it to R5F_0_1.

    Thanks for confirmation.

    From the logs, it looks like some header files are missing or not included/located properly.

    Can you please check and confirm ?

    syscfg/ti_enet_config.c:51:10: fatal error: 'enet.h' file not found

    C:/ti_am243x09020105/mcu_plus_sdk_am243x_09_02_01_05/source\networking/enet/utils/include/enet_board.h:48:10: fatal error: 'enet.h' file not found

    ../loopback_common.h:50:10: fatal error: 'include/core/enet_osal.h' file not found

    syscfg/ti_enet_open_close.c:49:10: fatal error: 'enet.h' file not found

    Regrads

    Ashwani

    Regards

    Ashwani

  • Hello, Ashwani

    > "it looks like some header files are missing or not included/located properly."
    Yes, that's right.

    The absolute path of enet.h is "<SDK installation folder>\source\networking\enet\core\include\enet.h".
    There is it in SDK installation folder or less. I think a build error to be settled if I can refer to h file in include sentence.

    I'm sure there are many other files that haven't been "included".


    I want to port enet_icssg_loopback_am243x-lp_r5fss0-0_nortos_ti-arm-clang to the R5F_0_1 folder of the IPC sample code environment.
    In my build environment, the source code of the examples\networking\enet_loopback environment is copied to the R5F_0_1 folder of the IPC sample code environment.
        loopback_cfg.c
        loopback_cfg.h
        loopback_common.h
        loopback_main.c
        loopback_test.c
    There are probably many .h files required by these files in the <SDK installation folder>.

    In order to understand the enet_icssg_loopback_am243x-lp_r5fss0-0_nortos_ti-arm-clang environment, I tried importing it into a research folder.
    You can see the existence of loopback_***.c in the CCS Project Explorer. Green rectangle

    loopback_***.c cannot be seen in Windows Explorer.

    When I checked the loopback_cfg.c property in the CCS Project Explorer, I found that it was located in the SDK installation folder.

    I would like to refer to the source code in the SDK installation folder, such as the enet_icssg_loopback_am243x-lp_r5fss0-0_nortos_ti-arm-clang environment, but the R5F0-1 environment does not exist in the SDK installation folder.
    Cannot be referenced.

    In my build environment I don't reference the SDK Folder and I get build errors.

    I want to refer to the SDK Foler, like the enet_icssg_loopback_am243x-lp_r5fss0-0_nortos_ti-arm-clang environment.
    How can I reference the SDK Foler in R5F 0-1?

  • enet_icssg_loopback_am243x-lp_r5fss0-0_nortos_ti-arm-clang environment, but the R5F0-1 environment does not exist in the SDK installation folder.

    Yes, we expect customer to port R5F_0_0 for R5F_0_1.

    How can I reference the SDK Foler in R5F 0-1?

    Can you help me with sequence you followed during porting?

    I will try to help you to point out missing part.

    I would suggest you to start with this example: C:\ti\mcu_plus_sdk_am243x_09_02_01_05\examples\empty\am243x-lp\r5fss0-1_nortos

    Regards

    Ashwani

  • Hello,

    C:\ti\mcu_plus_sdk_am243x_09_02_01_05\examples\empty\am243x-lp\r5fss0-1_nortos
    I imported this environment and checked it.
    I don't know how to reference the SDK Folder from the Work Folder.

    I want to create a project like this:

    In order to understand the enet_icssg_loopback_am243x-lp_r5fss0-0_nortos_ti-arm-clang environment, I tried importing it into a folder for investigation.
    In this sample, the SDK Folder is referenced from the Work Folder.
    If I change the CCS build settings, can I reference the SDK Folder?

  • If I change the CCS build settings, can I reference the SDK Folder?

    Not sure, I am getting your query correctly.

    1. You want to port "enet_icssg_loopback_am243x-lp_r5fss0-0_nortos_ti-arm-clang " for "R5F_0_1"
    2. For that you started with CCS 12.7 and SDK 9.2 installation
    3. open ccs and import "C:\ti\mcu_plus_sdk_am243x_09_02_01_05\examples\empty\am243x-lp\r5fss0-1_nortos" project
    4. Now you can refer "mcu_plus_sdk_am243x_09_02_01_05\examples\networking\enet_loopback\enet_icssg_loopback\am243x-lp\r5fss0-0_nortos" project and change settings of your current project (in step 3)

    CCS project ==> Right_Click==> Property ==> Include_option

    Regards

    Ashwani

  • Hello,Ashwani
    Thank you for your response. I will check it out.

  • Thanks .

    Waiting for the results.

    Regards

    Ashwani