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.

[参考译文] TMDS64EVM:有关不带 MMCSD 的 SBL_DFU_uniflash。

Guru**** 2390755 points
Other Parts Discussed in Thread: UNIFLASH, AM6422, SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1499757/tmds64evm-regarding-sbl_dfu_uniflash-without-mmcsd

器件型号:TMDS64EVM
Thread 中讨论的其他器件:UNIFLASHAM6422SYSCONFIG

工具/软件:

您好、TI 支持团队。

我正在使用 sbl_dfu_uniflash_am64x-evm_r5fss0-0_nortos_ti-arm-clang。
SDK 为 MCU_PLUS_SDK_am64x_09_01_00_41。

内部设计的 AM6422电路板没有 eMMC、因此我使用 SysConfig 删除了 SBL_DFU_uniflash 的 MMCSD、
但构建失败、如下所示。

makefile:152: recipe for target 'sbl_dfu_uniflash_am64x-evm_r5fss0-0_nortos_ti-arm-clang.out' failed
 
 undefined       first referenced                                                                                              
  symbol             in file                                                                                                   
 ---------       ----------------                                                                                              
 gMmcsdConfig    C:/ti/mcu_plus_sdk_am64x_09_01_00_41/source/drivers/lib/drivers.am64x.r5f.ti-arm-clang.debug.lib<mmcsd_v0.obj>
 gMmcsdConfigNum C:/ti/mcu_plus_sdk_am64x_09_01_00_41/source/drivers/lib/drivers.am64x.r5f.ti-arm-clang.debug.lib<mmcsd_v0.obj>
 
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "sbl_dfu_uniflash_am64x-evm_r5fss0-0_nortos_ti-arm-clang.out" not built
tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [sbl_dfu_uniflash_am64x-evm_r5fss0-0_nortos_ti-arm-clang.out] Error 1
gmake: *** [all] Error 2
makefile:148: recipe for target 'all' failed

**** Build Finished ****

如何使 sbl_dfu_uniflash 编译成功?

此致、
今泉清正。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Kiyosama-San:

    请应用以下补丁来解决此问题:

    diff --git a/examples/drivers/boot/sbl_dfu_uniflash/am64x-evm/r5fss0-0_nortos/main.c b/examples/drivers/boot/sbl_dfu_uniflash/am64x-evm/r5fss0-0_nortos/main.c
    index 01d6fd26..99b07d79 100644
    --- a/examples/drivers/boot/sbl_dfu_uniflash/am64x-evm/r5fss0-0_nortos/main.c
    +++ b/examples/drivers/boot/sbl_dfu_uniflash/am64x-evm/r5fss0-0_nortos/main.c
    @@ -46,6 +46,12 @@
     #include <usb/cdn/include/usb_init.h>
     #include "tusb.h"
     
    +#include <drivers/mmcsd.h>
    +
    +#define CONFIG_MMCSD_NUM_INSTANCES 0
    +MMCSD_Config gMmcsdConfig[CONFIG_MMCSD_NUM_INSTANCES];
    +uint32_t gMmcsdConfigNum = CONFIG_MMCSD_NUM_INSTANCES;
    +
     #define BOOTLOADER_UNIFLASH_MAX_FILE_SIZE (0x150000) /* This has to match the size of MSRAM_2 section in linker.cmd */
     uint8_t gUniflashFileBuf[BOOTLOADER_UNIFLASH_MAX_FILE_SIZE] __attribute__((aligned(128), section(".bss.filebuf")));

    此致、

    会面。