TI中文支持网
TI专业的中文技术问题搜集分享网站

PROCESSOR-SDK-J721E: ti-processor-sdk-rtos-j721e-evm-08_01_00_13

Part Number:PROCESSOR-SDK-J721E

rtos SDK:ti-processor-sdk-rtos-j721e-evm-08_01_00_13

已加入#include <ti/drv/gpio/GPIO.h>该头文件

在vision_apps/platform/j721e/rtos/mcu3_0/main.c文件的appmain()函数中加入

GPIO_init();

GPIO_write(0, 1);

出现如下编译错误:

 undefined  first referenced                                                                                                                                     
  symbol        in file                                                                                                                                          ———  —————-                                                                                                                                     
 GPIO_init  /home/hezhu/code/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/vision_apps/out/J7/R5F/FREERTOS/release/module/platform.j721e.rtos.mcu3_0+linux/main.obj
 GPIO_write /home/hezhu/code/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/vision_apps/out/J7/R5F/FREERTOS/release/module/platform.j721e.rtos.mcu3_0+linux/main.obj

error: unresolved symbols remain
error: errors encountered during linking;
   "/home/hezhu/code/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/vision_apps/ou
   t/J7/R5F/FREERTOS/release/vx_app_rtos_linux_mcu3_0.out" not built
tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
concerto/finale.mak:212: recipe for target '/home/hezhu/code/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/vision_apps/out/J7/R5F/FREERTOS/release/vx_app_rtos_linux_mcu3_0.out' failed
make[1]: [/home/hezhu/code/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/vision_apps/out/J7/R5F/FREERTOS/release/vx_app_rtos_linux_mcu3_0.out] Error 1 (已忽略)

zhu he:

什么时候可以回复一下呢

,

Shine:

请看一下下面的帖子是否有帮助。https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1111175/tda4vm-drive-gpio-output-high-low-level-on-mcu-of-main-domain

,

zhu he:

这个我已经看过,问题根源可能不一样,帮忙分析一下

,

Shine:

我把您的问题转到英文e2e论坛了,请关注下面帖子的回复。https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1129908/tda4vm-build-error-for-gpio_init-and-gpio_write

,

Shine:

请看下面e2e工程师的回复。Please include GPIO libraries for the mcu3_0.

,

zhu he:

1.请问MCU3_0中的GPIO库在哪? 如何添加。

2.MCU中不能使用<ti/drv/gpio/GPIO.h>驱动吗?

3.现在我的问题是想在MCU3_0中使用GPIO驱动中的接口函数。麻烦帮忙指导下。

,

Shine:

已在e2e帖子更新您的问题,请关注帖子的回复,谢谢!

,

zhu he:

已根据TI工程师的修改,在 apps/basic_demos/app_tirtos/concerto_r5f_inc.mak文件中加入了对库的链接,但是编译还是报相同的错误,帮忙继续在分析一下。

,

zhu he:

帮忙更新一下

,

Shine:

能否贴一下您的concerto_r5f_inc.mak文件?

,

zhu he:

ifeq ($(TARGET_CPU),R5F)IDIRS+=$(VISION_APPS_PATH)/platform/$(SOC)/rtos/common
IDIRS+=$(VISION_APPS_PATH)/kernels/img_proc/include
IDIRS+=$(VISION_APPS_PATH)/kernels/fileio/include
IDIRS+=$(VISION_APPS_PATH)/kernels/srv/include
IDIRS+=$(VISION_APPS_PATH)/kernels/park_assist/include
IDIRS+=$(PTK_PATH)/include
IDIRS+=$(VISION_APPS_PATH)/kernels/stereo/include
IDIRS+=$(IMAGING_PATH)/kernels/include
IDIRS+=$(IMAGING_PATH)/sensor_drv/includeifeq ($(RTOS),SYSBIOS)LDIRS += $(PDK_PATH)/packages/ti/osal/lib/tirtos/$(SOC)/r5f/$(TARGET_BUILD)/
endif
ifeq ($(RTOS),FREERTOS)LDIRS += $(PDK_PATH)/packages/ti/osal/lib/freertos/$(SOC)/r5f/$(TARGET_BUILD)/
endif
LDIRS += $(PDK_PATH)/packages/ti/csl/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/board/lib/$(BUILD_PDK_BOARD)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/drv/uart/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/drv/gpio/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/drv/fvid2/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/drv/i2c/lib/$(SOC)/r5f/$(TARGET_BUILD)/LDIRS += $(PDK_PATH)/packages/ti/drv/enet/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/drv/pm/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/transport/timeSync/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/transport/timeSync/lib/r5f/$(TARGET_BUILD)/LDIRS += $(TIOVX_PATH)/lib/$(TARGET_PLATFORM)/$(TARGET_CPU)/$(TARGET_OS)/$(TARGET_BUILD)
LDIRS += $(IMAGING_PATH)/lib/$(TARGET_PLATFORM)/$(TARGET_CPU)/$(TARGET_OS)/$(TARGET_BUILD)STATIC_LIBS += app_utils_mem
STATIC_LIBS += app_utils_console_io
STATIC_LIBS += app_utils_ipc
STATIC_LIBS += app_utils_remote_service
STATIC_LIBS += app_utils_udma
STATIC_LIBS += app_utils_misc
STATIC_LIBS += app_utils_sensors
STATIC_LIBS += app_utils_perf_stats
STATIC_LIBS += app_utils_iss
STATIC_LIBS += app_utils_draw2d
STATIC_LIBS += app_utils_pcie_queue
STATIC_LIBS += vx_target_kernels_img_proc_r5fTIOVX_LIBS =
TIOVX_LIBS += vx_conformance_engine vx_conformance_tests vx_conformance_tests_testmodule
TIOVX_LIBS += vx_tiovx_tests vx_tutorial vx_utils
TIOVX_LIBS += vx_framework vx_vxu vx_platform_psdk_j7_rtos vx_kernels_target_utils
TIOVX_LIBS += vx_kernels_test_kernels_tests vx_kernels_test_kernels
TIOVX_LIBS += vx_target_kernels_source_sink
TIOVX_LIBS += vx_kernels_host_utils vx_kernels_openvx_core
TIOVX_LIBS += vx_kernels_hwa_tests vx_kernels_hwa
TIOVX_LIBS += vx_target_kernels_vpac_nf vx_target_kernels_vpac_viss
TIOVX_LIBS += vx_target_kernels_vpac_msc vx_target_kernels_vpac_ldc
TIOVX_LIBS += vx_target_kernels_dmpac_dof vx_target_kernels_dmpac_sde
TIOVX_LIBS += vx_target_kernels_display
TIOVX_LIBS += vx_target_kernels_capture
TIOVX_LIBS += vx_target_kernels_csitx
TIOVX_LIBS += vx_target_kernels_j7_arm
TIOVX_LIBS += vx_target_kernels_display_m2mIMAGING_LIBS= ti_imaging_awbalg
IMAGING_LIBS += ti_imaging_dcc
IMAGING_LIBS += vx_kernels_imaging
IMAGING_LIBS += vx_target_kernels_imaging_aewb
IMAGING_LIBS += ti_imaging_aealg
IMAGING_LIBS += ti_imaging_sensordrv
IMAGING_LIBS += ti_imaging_ittsrvrSYS_STATIC_LIBS += $(TIOVX_LIBS)
SYS_STATIC_LIBS += $(IMAGING_LIBS)ADDITIONAL_STATIC_LIBS += ti.board.aer5f
ADDITIONAL_STATIC_LIBS += ti.drv.uart.aer5f
ADDITIONAL_STATIC_LIBS += ti.drv.gpio.aer5f
ADDITIONAL_STATIC_LIBS += ipc.aer5f
ADDITIONAL_STATIC_LIBS += fvid2.aer5f
ADDITIONAL_STATIC_LIBS += udma.aer5f
ADDITIONAL_STATIC_LIBS += ti.drv.i2c.aer5fADDITIONAL_STATIC_LIBS += ti.osal.aer5fifeq ($(RTOS),FREERTOS)ADDITIONAL_STATIC_LIBS += ti.kernel.freertos.aer5f
endifADDITIONAL_STATIC_LIBS += ti.csl.aer5fifeq ($(RTOS),FREERTOS)ADDITIONAL_STATIC_LIBS += ti.csl.init.aer5f
endifendif

,

Shine:

已把您的问题更新到e2e帖子,因为和国外有时差,回复可能会晚一些。

,

Shine:

下面是工程师的回复。请确认是否在ccs工程属性里添加了ti.drv.gpio.aer5f library?Do you mean you are still getting same error? This is because GPIO_init is defined in the ti.drv.gpio.aer5f library, so once this is included, you should not see same linker error. 

,

zhu he:

确定已加入了ti.drv.gpio.aer5f library。 最新报错如下:

Linking /home/hezhu/code/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/vision_apps/out/J7/R5F/FREERTOS/release/vx_app_rtos_linux_mcu3_0.outundefinedfirst referencedsymbolin file-------------------------GPIO_v0_config /home/hezhu/code/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/pdk_jacinto_08_01_00_36/packages/ti/drv/gpio/lib/j721e/r5f/release/ti.drv.gpio.aer5f<GPIO_v0.oer5f>error: unresolved symbols remain
error: errors encountered during linking;"/home/hezhu/code/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/vision_apps/out/J7/R5F/FREERTOS/release/vx_app_rtos_linux_mcu3_0.out" not built
tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
concerto/finale.mak:212: recipe for target '/home/hezhu/code/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/vision_apps/out/J7/R5F/FREERTOS/release/vx_app_rtos_linux_mcu3_0.out' failed
make[1]: [/home/hezhu/code/ti-processor-sdk-rtos-j721e-evm-08_01_00_13/vision_apps/out/J7/R5F/FREERTOS/release/vx_app_rtos_linux_mcu3_0.out] Error 1 (已忽略)

,

Shine:

已把您的问题更新到e2e帖子,因为和国外有时差,回复可能会晚一些。

,

zhu he:

1.现在就是该问题是SDK的漏洞?

2.如果不升级该SDK,是否可以解决该问题。

3.或则有什么办法可以解决该问题?

,

Shine:

已把您的问题更新到e2e帖子,请关注帖子的回复。

,

zhu he:

是否有更新?

,

Shine:

抱歉,还没更新。我在帖子上催了一下。

,

Shine:

请看下面工程师的回复。

I used SDK8.4, because that's what i had. I dont think the method does not change for the SDK8.1 release. We just need to include GPIO libraries in the R5F concerto makefile.. 

,

zhu he:

vision_apps/platform/j721e/rtos/concerto_r5f_inc.mak文件中是肯定是加了的,不确定为什么还是无效。

concerto_r5f_inc.mak文件如下:

ifeq ($(TARGET_CPU),R5F)IDIRS+=$(VISION_APPS_PATH)/platform/$(SOC)/rtos/common
IDIRS+=$(VISION_APPS_PATH)/kernels/img_proc/include
IDIRS+=$(VISION_APPS_PATH)/kernels/fileio/include
IDIRS+=$(VISION_APPS_PATH)/kernels/srv/include
IDIRS+=$(VISION_APPS_PATH)/kernels/park_assist/include
IDIRS+=$(PTK_PATH)/include
IDIRS+=$(VISION_APPS_PATH)/kernels/stereo/include
IDIRS+=$(IMAGING_PATH)/kernels/include
IDIRS+=$(IMAGING_PATH)/sensor_drv/includeifeq ($(RTOS),SYSBIOS)LDIRS += $(PDK_PATH)/packages/ti/osal/lib/tirtos/$(SOC)/r5f/$(TARGET_BUILD)/
endif
ifeq ($(RTOS),FREERTOS)LDIRS += $(PDK_PATH)/packages/ti/osal/lib/freertos/$(SOC)/r5f/$(TARGET_BUILD)/
endif
LDIRS += $(PDK_PATH)/packages/ti/csl/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/board/lib/$(BUILD_PDK_BOARD)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/drv/uart/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/drv/gpio/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/drv/fvid2/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/drv/i2c/lib/$(SOC)/r5f/$(TARGET_BUILD)/LDIRS += $(PDK_PATH)/packages/ti/drv/enet/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/drv/pm/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/transport/timeSync/lib/$(SOC)/r5f/$(TARGET_BUILD)/
LDIRS += $(PDK_PATH)/packages/ti/transport/timeSync/lib/r5f/$(TARGET_BUILD)/LDIRS += $(TIOVX_PATH)/lib/$(TARGET_PLATFORM)/$(TARGET_CPU)/$(TARGET_OS)/$(TARGET_BUILD)
LDIRS += $(IMAGING_PATH)/lib/$(TARGET_PLATFORM)/$(TARGET_CPU)/$(TARGET_OS)/$(TARGET_BUILD)STATIC_LIBS += app_utils_mem
STATIC_LIBS += app_utils_console_io
STATIC_LIBS += app_utils_ipc
STATIC_LIBS += app_utils_remote_service
STATIC_LIBS += app_utils_udma
STATIC_LIBS += app_utils_misc
STATIC_LIBS += app_utils_sensors
STATIC_LIBS += app_utils_perf_stats
STATIC_LIBS += app_utils_iss
STATIC_LIBS += app_utils_draw2d
STATIC_LIBS += app_utils_pcie_queue
STATIC_LIBS += vx_target_kernels_img_proc_r5fTIOVX_LIBS =
TIOVX_LIBS += vx_conformance_engine vx_conformance_tests vx_conformance_tests_testmodule
TIOVX_LIBS += vx_tiovx_tests vx_tutorial vx_utils
TIOVX_LIBS += vx_framework vx_vxu vx_platform_psdk_j7_rtos vx_kernels_target_utils
TIOVX_LIBS += vx_kernels_test_kernels_tests vx_kernels_test_kernels
TIOVX_LIBS += vx_target_kernels_source_sink
TIOVX_LIBS += vx_kernels_host_utils vx_kernels_openvx_core
TIOVX_LIBS += vx_kernels_hwa_tests vx_kernels_hwa
TIOVX_LIBS += vx_target_kernels_vpac_nf vx_target_kernels_vpac_viss
TIOVX_LIBS += vx_target_kernels_vpac_msc vx_target_kernels_vpac_ldc
TIOVX_LIBS += vx_target_kernels_dmpac_dof vx_target_kernels_dmpac_sde
TIOVX_LIBS += vx_target_kernels_display
TIOVX_LIBS += vx_target_kernels_capture
TIOVX_LIBS += vx_target_kernels_csitx
TIOVX_LIBS += vx_target_kernels_j7_arm
TIOVX_LIBS += vx_target_kernels_display_m2mIMAGING_LIBS= ti_imaging_awbalg
IMAGING_LIBS += ti_imaging_dcc
IMAGING_LIBS += vx_kernels_imaging
IMAGING_LIBS += vx_target_kernels_imaging_aewb
IMAGING_LIBS += ti_imaging_aealg
IMAGING_LIBS += ti_imaging_sensordrv
IMAGING_LIBS += ti_imaging_ittsrvrSYS_STATIC_LIBS += $(TIOVX_LIBS)
SYS_STATIC_LIBS += $(IMAGING_LIBS)ADDITIONAL_STATIC_LIBS += ti.board.aer5f
ADDITIONAL_STATIC_LIBS += ti.drv.uart.aer5f
ADDITIONAL_STATIC_LIBS += ti.drv.gpio.aer5f
ADDITIONAL_STATIC_LIBS += ipc.aer5f
ADDITIONAL_STATIC_LIBS += fvid2.aer5f
ADDITIONAL_STATIC_LIBS += udma.aer5f
ADDITIONAL_STATIC_LIBS += ti.drv.i2c.aer5fADDITIONAL_STATIC_LIBS += ti.osal.aer5fifeq ($(RTOS),FREERTOS)ADDITIONAL_STATIC_LIBS += ti.kernel.freertos.aer5f
endifADDITIONAL_STATIC_LIBS += ti.csl.aer5fifeq ($(RTOS),FREERTOS)ADDITIONAL_STATIC_LIBS += ti.csl.init.aer5f
endifendif

,

Shine:

已把您的问题更新到e2e帖子,请关注帖子的回复。

,

Shine:

请看下面工程师的回复。While building SDK ,can you please add "SHOW_COMMANDS=1" in this command line like "make sdk SHOW_COMMANDS=1"and share the build log?

赞(0)
未经允许不得转载:TI中文支持网 » PROCESSOR-SDK-J721E: ti-processor-sdk-rtos-j721e-evm-08_01_00_13
分享到: 更多 (0)